In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_hfsc: fix divide-by-zero in rtsc_min() m2sm() converts a u32 slope to a u64 scaled value. For large inputs (e.g. m1=4000000000), the result can reach 2^32. rtsc_min() stores the difference of two such u64 values in a u32 variable `dsm` and uses it as a divisor. When the difference is exactly 2^32 the truncation yields zero, causing a divide-by-zero oops in the concave-curve intersection path: Oops: divide error: 0000 RIP: 0010:rtsc_min (net/sched/sch_hfsc.c:601) Call Trace: init_ed (net/sched/sch_hfsc.c:629) hfsc_enqueue (net/sched/sch_hfsc.c:1569) [...] Widen `dsm` to u64 and replace do_div() with div64_u64() so the full difference is preserved.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | LOW |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | NONE |
| Integrity Impact | NONE |
| Availability Impact | HIGH |
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
CWE-369
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23bea66700> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23a59fe9c0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23a59fd940> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d24246c0200> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23bea65280> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d24246c0180> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23bea89d00> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x7d23a59ff500> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x7d23a59fec80> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x7d24246c1e00> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x7d23a59fdc00> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x7d23a59fd080> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23a59fd780> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23a6665a40> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23a59fd680> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d24246c30c0> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23a59ff5c0> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23a59fecc0> | Operating System |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:-:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:* |