cbcvebase.
CVE-2024-35852
published 2024-05-17

CVE-2024-35852: In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_tcam: Fix memory leak when canceling rehash work The rehash delayed…

PriorityP419medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.26%
17.2th percentile
In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_tcam: Fix memory leak when canceling rehash work The rehash delayed work is rescheduled with a delay if the number of credits at end of the work is not negative as supposedly it means that the migration ended. Otherwise, it is rescheduled immediately. After "mlxsw: spectrum_acl_tcam: Fix possible use-after-free during rehash" the above is no longer accurate as a non-negative number of credits is no longer indicative of the migration being done. It can also happen if the work encountered an error in which case the migration will resume the next time the work is scheduled. The significance of the above is that it is possible for the work to be pending and associated with hints that were allocated when the migration started. This leads to the hints being leaked [1] when the work is canceled while pending as part of ACL region dismantle. Fix by freeing the hints if hints are associated with a work that was canceled while pending. Blame the original commit since the reliance on not having a pending work associated with hints is fragile. [1] unreferenced object 0xffff88810e7c3000 (size 256): comm "kworker/0:16", pid 176, jiffies 4295460353 hex dump (first 32 bytes): 00 30 95 11 81 88 ff ff 61 00 00 00 00 00 00 80 .0......a....... 00 00 61 00 40 00 00 00 00 00 00 00 04 00 00 00 ..a.@........... backtrace (crc 2544ddb9): [] kmalloc_trace+0x23f/0x2a0 [] objagg_hints_get+0x42/0x390 [] mlxsw_sp_acl_erp_rehash_hints_get+0xca/0x400 [] mlxsw_sp_acl_tcam_vregion_rehash_work+0x868/0x1160 [] process_one_work+0x59c/0xf20 [] worker_thread+0x799/0x12c0 [] kthread+0x246/0x300 [] ret_from_fork+0x34/0x70 [] ret_from_fork_asm+0x1a/0x30

Affected

27 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.90-1 (bookworm)linux 6.1.90-1 (bookworm)
linuxlinux
linuxlinux>= c9c9af91f1d9a636aecc55302c792538e549a430 < 51cefc9da400b953fee749c9e5d26cd4a2b5d75851cefc9da400b953fee749c9e5d26cd4a2b5d758
linuxlinux>= c9c9af91f1d9a636aecc55302c792538e549a430 < 857ed800133ffcfcee28582090b63b0cbb8ba59d857ed800133ffcfcee28582090b63b0cbb8ba59d
linuxlinux>= c9c9af91f1d9a636aecc55302c792538e549a430 < 63d814d93c5cce4c18284adc810028f28dca493f63d814d93c5cce4c18284adc810028f28dca493f
linuxlinux>= c9c9af91f1d9a636aecc55302c792538e549a430 < 5bfe7bf9656ed2633718388f12b7c38b86414a045bfe7bf9656ed2633718388f12b7c38b86414a04
linuxlinux>= c9c9af91f1d9a636aecc55302c792538e549a430 < de1aaefa75be9d0ec19c9a3e0e2f9696de20c6abde1aaefa75be9d0ec19c9a3e0e2f9696de20c6ab
linuxlinux>= c9c9af91f1d9a636aecc55302c792538e549a430 < d72dd6fcd7886d0523afbab8b4a4b22d17addd7dd72dd6fcd7886d0523afbab8b4a4b22d17addd7d
linuxlinux>= c9c9af91f1d9a636aecc55302c792538e549a430 < fb4e2b70a7194b209fc7320bbf33b375f7114bd5fb4e2b70a7194b209fc7320bbf33b375f7114bd5
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.216-15.10.216-1
linuxlinux_kernel>= 0 < 6.1.90-16.1.90-1
linuxlinux_kernel>= 0 < 6.8.9-16.8.9-1
linuxlinux_kernel>= 0 < 6.8.9-16.8.9-1
linuxlinux_kernel>= 0 < 5.4.0-189.2095.4.0-189.209
linuxlinux_kernel>= 0 < 5.15.0-116.1265.15.0-116.126
linuxlinux_kernel>= 0 < 6.8.0-40.406.8.0-40.40
linuxlinux_kernel>= 5.1 < 5.4.2755.4.275
linuxlinux_kernel>= 5.11 < 5.15.1585.15.158
linuxlinux_kernel>= 5.16 < 6.1.906.1.90
linuxlinux_kernel>= 5.5 < 5.10.2165.10.216
linuxlinux_kernel>= 6.2 < 6.6.306.6.30
linuxlinux_kernel>= 6.7 < 6.8.96.8.9
msrcazl3_hyperv-daemons_6.6.29.1-1_on_azure_linux_3.0
msrcazl3_hyperv-daemons_6.6.35.1-1_on_azure_linux_3.0

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv7.0HIGH
vendor_ubuntu7.0HIGH
vendor_debian5.5MEDIUM
vendor_msrc5.5MEDIUM
vendor_redhat5.5MEDIUM
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.