CVE-2024-35852
publishedmlxsw: spectrum_acl_tcam: Fix memory leak when canceling rehash work
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc9c9af91f1d9a636aecc55302c792538e549a430 to < 51cefc9da400b953fee749c9e5d26cd4a2b5d758 · c9c9af91f1d9a636aecc55302c792538e549a430 to < 857ed800133ffcfcee28582090b63b0cbb8ba59d · c9c9af91f1d9a636aecc55302c792538e549a430 to < 63d814d93c5cce4c18284adc810028f28dca493f · c9c9af91f1d9a636aecc55302c792538e549a430 to < 5bfe7bf9656ed2633718388f12b7c38b86414a04 · c9c9af91f1d9a636aecc55302c792538e549a430 to < de1aaefa75be9d0ec19c9a3e0e2f9696de20c6ab · c9c9af91f1d9a636aecc55302c792538e549a430 to < d72dd6fcd7886d0523afbab8b4a4b22d17addd7d · c9c9af91f1d9a636aecc55302c792538e549a430 to < fb4e2b70a7194b209fc7320bbf33b375f7114bd5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.1 (affected) · 0 to < 5.1 (unaffected · semver) · 5.4.275 through 5.4.* (unaffected · semver) · 5.10.216 through 5.10.* (unaffected · semver) · 5.15.158 through 5.15.* (unaffected · semver) · 6.1.90 through 6.1.* (unaffected · semver) · 6.6.30 through 6.6.* (unaffected · semver) · 6.8.9 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-067 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2024-078 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| Debian | buster | linux-5.10 | Advisory build | 5.10.216-1~deb10u1 | DLA-3842-1 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-debug-kvm | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-kvm | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.8.1.rt7.349.el8_10 | ALSA-2024:4352 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.8.1.el8_10 | ALSA-2024:4211 |
| AlmaLinux | 9 | bpftool | Advisory build | 7.3.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-427.31.1.el9_4 | ALSA-2024:5363 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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): [<00000000cf8cfab3>] kmalloc_trace+0x23f/0x2a0 [<000000004d9a1ad9>] objagg_hints_get+0x42/0x390 [<000000000b143cf3>] mlxsw_sp_acl_erp_rehash_hints_get+0xca/0x400 [<0000000059bdb60a>] mlxsw_sp_acl_tcam_vregion_rehash_work+0x868/0x1160 [<00000000e81fd734>] process_one_work+0x59c/0xf20 [<00000000ceee9e81>] worker_thread+0x799/0x12c0 [<00000000bda6fe39>] kthread+0x246/0x300 [<0000000070056d23>] ret_from_fork+0x34/0x70 [<00000000dea2b93e>] ret_from_fork_asm+0x1a/0x30
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c9c9af91f1d9a636aecc55302c792538e549a430 to < 51cefc9da400b953fee749c9e5d26cd4a2b5d758 (affected · git)c9c9af91f1d9a636aecc55302c792538e549a430 to < 857ed800133ffcfcee28582090b63b0cbb8ba59d (affected · git)c9c9af91f1d9a636aecc55302c792538e549a430 to < 63d814d93c5cce4c18284adc810028f28dca493f (affected · git)c9c9af91f1d9a636aecc55302c792538e549a430 to < 5bfe7bf9656ed2633718388f12b7c38b86414a04 (affected · git)c9c9af91f1d9a636aecc55302c792538e549a430 to < de1aaefa75be9d0ec19c9a3e0e2f9696de20c6ab (affected · git)c9c9af91f1d9a636aecc55302c792538e549a430 to < d72dd6fcd7886d0523afbab8b4a4b22d17addd7d (affected · git)c9c9af91f1d9a636aecc55302c792538e549a430 to < fb4e2b70a7194b209fc7320bbf33b375f7114bd5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.1 (affected)0 to < 5.1 (unaffected · semver)5.4.275 through 5.4.* (unaffected · semver)5.10.216 through 5.10.* (unaffected · semver)5.15.158 through 5.15.* (unaffected · semver)6.1.90 through 6.1.* (unaffected · semver)6.6.30 through 6.6.* (unaffected · semver)6.8.9 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/51cefc9da400b953fee749c9e5d26cd4a2b5d758
- https://git.kernel.org/stable/c/5bfe7bf9656ed2633718388f12b7c38b86414a04
- https://git.kernel.org/stable/c/63d814d93c5cce4c18284adc810028f28dca493f
- https://git.kernel.org/stable/c/857ed800133ffcfcee28582090b63b0cbb8ba59d
- https://git.kernel.org/stable/c/d72dd6fcd7886d0523afbab8b4a4b22d17addd7d
- https://git.kernel.org/stable/c/de1aaefa75be9d0ec19c9a3e0e2f9696de20c6ab
- https://git.kernel.org/stable/c/fb4e2b70a7194b209fc7320bbf33b375f7114bd5
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
Provider assertions
3Linux · cna
mlxsw: spectrum_acl_tcam: Fix memory leak when canceling rehash work
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b42136dc86c7146c887033eb1fe520f7a75b71548c9b791ddf6e6d56325e32dd
- Ingested
- 23 Sep 2026, 08:23:51 UTC
- Source record
- Official CVE record