Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-35852

MEDIUM 5.5EPSS 17%

mlxsw: spectrum_acl_tcam: Fix memory leak when canceling rehash work

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= c9c9af91f1d9a636aecc55302c792538e549a430, < 51cefc9da400b953fee749c9e5d26cd4a2b5d758; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 857ed800133ffcfcee28582090b63b0cbb8ba59d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 63d814d93c5cce4c18284adc810028f28dca493f; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 5bfe7bf9656ed2633718388f12b7c38b86414a04; >= c9c9af91f1d9a636aecc55302c792538e549a430, < de1aaefa75be9d0ec19c9a3e0e2f9696de20c6ab; >= c9c9af91f1d9a636aecc55302c792538e549a430, < d72dd6fcd7886d0523afbab8b4a4b22d17addd7d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < fb4e2b70a7194b209fc7320bbf33b375f7114bd5
  • Anyone running Linux 5.1

Vulnerability facts

Affected
Linux >= c9c9af91f1d9a636aecc55302c792538e549a430, < 51cefc9da400b953fee749c9e5d26cd4a2b5d758; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 857ed800133ffcfcee28582090b63b0cbb8ba59d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 63d814d93c5cce4c18284adc810028f28dca493f; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 5bfe7bf9656ed2633718388f12b7c38b86414a04; >= c9c9af91f1d9a636aecc55302c792538e549a430, < de1aaefa75be9d0ec19c9a3e0e2f9696de20c6ab; >= c9c9af91f1d9a636aecc55302c792538e549a430, < d72dd6fcd7886d0523afbab8b4a4b22d17addd7d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < fb4e2b70a7194b209fc7320bbf33b375f7114bd5; Linux 5.1
Fixed in
Linux 51cefc9da400b953fee749c9e5d26cd4a2b5d758, Linux 857ed800133ffcfcee28582090b63b0cbb8ba59d, Linux 63d814d93c5cce4c18284adc810028f28dca493f, Linux 5bfe7bf9656ed2633718388f12b7c38b86414a04
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
CWE
CWE-401
Published
Modified

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

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= c9c9af91f1d9a636aecc55302c792538e549a430, < 51cefc9da400b953fee749c9e5d26cd4a2b5d758; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 857ed800133ffcfcee28582090b63b0cbb8ba59d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 63d814d93c5cce4c18284adc810028f28dca493f; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 5bfe7bf9656ed2633718388f12b7c38b86414a04; >= c9c9af91f1d9a636aecc55302c792538e549a430, < de1aaefa75be9d0ec19c9a3e0e2f9696de20c6ab; >= c9c9af91f1d9a636aecc55302c792538e549a430, < d72dd6fcd7886d0523afbab8b4a4b22d17addd7d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < fb4e2b70a7194b209fc7320bbf33b375f7114bd5—cvelist
Linux5.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-35852. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35852.md
Affected: Linux >= c9c9af91f1d9a636aecc55302c792538e549a430, < 51cefc9da400b953fee749c9e5d26cd4a2b5d758; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 857ed800133ffcfcee28582090b63b0cbb8ba59d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 63d814d93c5cce4c18284adc810028f28dca493f; >= c9c9af91f1d9a636aecc553…
Fixed in: Linux 51cefc9da400b953fee749c9e5d26cd4a2b5d758, Linux 857ed800133ffcfcee28582090b63b0cbb8ba59d, Linux 63d814d93c5cce4c18284adc810028f28dca493f, Linux 5bfe7bf9656ed2633718388f12b7c38b86414a04

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-35852 being exploited?

There is no confirmed exploitation: CVE-2024-35852 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-35852?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-35852?

Linux >= c9c9af91f1d9a636aecc55302c792538e549a430, < 51cefc9da400b953fee749c9e5d26cd4a2b5d758; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 857ed800133ffcfcee28582090b63b0cbb8ba59d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 63d814d93c5cce4c18284adc810028f28dca493f; >= c9c9af91f1d9a636aecc55302c792538e549a430, < 5bfe7bf9656ed2633718388f12b7c38b86414a04; >= c9c9af91f1d9a636aecc55302c792538e549a430, < de1aaefa75be9d0ec19c9a3e0e2f9696de20c6ab; >= c9c9af91f1d9a636aecc55302c792538e549a430, < d72dd6fcd7886d0523afbab8b4a4b22d17addd7d; >= c9c9af91f1d9a636aecc55302c792538e549a430, < fb4e2b70a7194b209fc7320bbf33b375f7114bd5; Linux 5.1.

Is there a fix for CVE-2024-35852?

Yes. Fixed in Linux 51cefc9da400b953fee749c9e5d26cd4a2b5d758, Linux 857ed800133ffcfcee28582090b63b0cbb8ba59d, Linux 63d814d93c5cce4c18284adc810028f28dca493f, Linux 5bfe7bf9656ed2633718388f12b7c38b86414a04. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2024-35852?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors