cbcvebase.
CVE-2024-46828
published 2024-09-27

CVE-2024-46828: In the Linux kernel, the following vulnerability has been resolved: sched: sch_cake: fix bulk flow accounting logic for host fairness In sch_cake, we keep…

PriorityP339high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.25%
16.4th percentile
In the Linux kernel, the following vulnerability has been resolved: sched: sch_cake: fix bulk flow accounting logic for host fairness In sch_cake, we keep track of the count of active bulk flows per host, when running in dst/src host fairness mode, which is used as the round-robin weight when iterating through flows. The count of active bulk flows is updated whenever a flow changes state. This has a peculiar interaction with the hash collision handling: when a hash collision occurs (after the set-associative hashing), the state of the hash bucket is simply updated to match the new packet that collided, and if host fairness is enabled, that also means assigning new per-host state to the flow. For this reason, the bulk flow counters of the host(s) assigned to the flow are decremented, before new state is assigned (and the counters, which may not belong to the same host anymore, are incremented again). Back when this code was introduced, the host fairness mode was always enabled, so the decrement was unconditional. When the configuration flags were introduced the *increment* was made conditional, but the *decrement* was not. Which of course can lead to a spurious decrement (and associated wrap-around to U16_MAX). AFAICT, when host fairness is disabled, the decrement and wrap-around happens as soon as a hash collision occurs (which is not that common in itself, due to the set-associative hashing). However, in most cases this is harmless, as the value is only used when host fairness mode is enabled. So in order to trigger an array overflow, sch_cake has to first be configured with host fairness disabled, and while running in this mode, a hash collision has to occur to cause the overflow. Then, the qdisc has to be reconfigured to enable host fairness, which leads to the array out-of-bounds because the wrapped-around value is retained and used as an array index. It seems that syzbot managed to trigger this, which is quite impressive in its own right. This patch fixes

Affected

24 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.112-1 (bookworm)linux 6.1.112-1 (bookworm)
debianlinux-6.1< linux 6.1.112-1 (bookworm)linux 6.1.112-1 (bookworm)
linuxlinux
linuxlinux>= 712639929912c5eefb09facccb48d55b3f72c9f8 < 4a4eeefa514db570be025ab46d779af180e2c9bb4a4eeefa514db570be025ab46d779af180e2c9bb
linuxlinux>= 712639929912c5eefb09facccb48d55b3f72c9f8 < 7725152b54d295b7da5e34c2f419539b30d017bd7725152b54d295b7da5e34c2f419539b30d017bd
linuxlinux>= 712639929912c5eefb09facccb48d55b3f72c9f8 < cde71a5677971f4f1b69b25e854891dbe78066a4cde71a5677971f4f1b69b25e854891dbe78066a4
linuxlinux>= 712639929912c5eefb09facccb48d55b3f72c9f8 < 549e407569e08459d16122341d332cb508024094549e407569e08459d16122341d332cb508024094
linuxlinux>= 712639929912c5eefb09facccb48d55b3f72c9f8 < d4a9039a7b3d8005b90c7b1a55a306444f0e5447d4a9039a7b3d8005b90c7b1a55a306444f0e5447
linuxlinux>= 712639929912c5eefb09facccb48d55b3f72c9f8 < d7c01c0714c04431b5e18cf17a9ea68a553d1c3cd7c01c0714c04431b5e18cf17a9ea68a553d1c3c
linuxlinux>= 712639929912c5eefb09facccb48d55b3f72c9f8 < 546ea84d07e3e324644025e2aae2d12ea4c5896e546ea84d07e3e324644025e2aae2d12ea4c5896e
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.226-15.10.226-1
linuxlinux_kernel>= 0 < 6.1.112-16.1.112-1
linuxlinux_kernel>= 0 < 6.10.11-16.10.11-1
linuxlinux_kernel>= 0 < 6.10.11-16.10.11-1
linuxlinux_kernel>= 0 < 5.4.0-200.2205.4.0-200.220
linuxlinux_kernel>= 0 < 5.15.0-125.1355.15.0-125.135
linuxlinux_kernel>= 0 < 6.8.0-50.516.8.0-50.51
linuxlinux_kernel>= 5.1 < 5.4.2845.4.284
linuxlinux_kernel>= 5.10 < 5.10.2265.10.226
linuxlinux_kernel>= 5.15 < 5.15.1675.15.167
linuxlinux_kernel>= 6.1 < 6.1.1106.1.110
linuxlinux_kernel>= 6.10 < 6.10.106.10.10
linuxlinux_kernel>= 6.6 < 6.6.516.6.51

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_ubuntu8.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.