CVE-2024-35853
published medium CVSS 3.1 · 6.4mlxsw: spectrum_acl_tcam: Fix memory leak during rehash
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux843500518509128a935edab96bd8efef7c54669e to < c6f3fa7f5a748bf6e5c4eb742686d6952f854e76 · 843500518509128a935edab96bd8efef7c54669e to < 617e98ba4c50f4547c9eb0946b1cfc26937d70d1 · 843500518509128a935edab96bd8efef7c54669e to < 413a01886c3958d4b8aac23a3bff3d430b92093e · 843500518509128a935edab96bd8efef7c54669e to < b822644fd90992ee362c5e0c8d2556efc8856c76 · 843500518509128a935edab96bd8efef7c54669e to < 0ae8ff7b6d42e33943af462910bdcfa2ec0cb8cf · 843500518509128a935edab96bd8efef7c54669e to < b3fd51f684a0711504f82de510da109ae639722d · 843500518509128a935edab96bd8efef7c54669e to < 8ca3f7a7b61393804c46f170743c3b839df13977 · 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 |
| linux | — | linux_kernel843500518509 to < c6f3fa7f5a74 · 843500518509 to < 617e98ba4c50 · 843500518509 to < 413a01886c39 · 843500518509 to < b822644fd909 · 843500518509 to < 0ae8ff7b6d42 · 843500518509 to < b3fd51f684a0 · 843500518509 to < 8ca3f7a7b613 · Other versions: affected | Affected | Not stated | CISA-ADP |
| 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 |
| 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 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| 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 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-corex86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-cross-headersaarch64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-cross-headersx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-debugx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-debug-corex86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-debug-develx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-debug-modulesx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-debug-modules-extrax86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-develx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-docx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-headersaarch64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-headersx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-modulesx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-modules-extrax86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-toolsaarch64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-toolsx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-tools-libsaarch64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-tools-libsx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-tools-libs-develaarch64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | kernel-tools-libs-develx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | perfaarch64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | perfx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | python3-perfaarch64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 8 | python3-perfx86_64 | Advisory build | 0:4.18.0-553.8.1.el8_10 | ELSA-2024-4211 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.4.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.4.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | libperfaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | perfaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
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 during rehash The rehash delayed work migrates filters from one region to another. This is done by iterating over all chunks (all the filters with the same priority) in the region and in each chunk iterating over all the filters. If the migration fails, the code tries to migrate the filters back to the old region. However, the rollback itself can also fail in which case another migration will be erroneously performed. Besides the fact that this ping pong is not a very good idea, it also creates a problem. Each virtual chunk references two chunks: The currently used one ('vchunk->chunk') and a backup ('vchunk->chunk2'). During migration the first holds the chunk we want to migrate filters to and the second holds the chunk we are migrating filters from. The code currently assumes - but does not verify - that the backup chunk does not exist (NULL) if the currently used chunk does not reference the target region. This assumption breaks when we are trying to rollback a rollback, resulting in the backup chunk being overwritten and leaked [1]. Fix by not rolling back a failed rollback and add a warning to avoid future cases. [1] WARNING: CPU: 5 PID: 1063 at lib/parman.c:291 parman_destroy+0x17/0x20 Modules linked in: CPU: 5 PID: 1063 Comm: kworker/5:11 Tainted: G W 6.9.0-rc2-custom-00784-gc6a05c468a0b #14 Hardware name: Mellanox Technologies Ltd. MSN3700/VMOD0005, BIOS 5.11 01/06/2019 Workqueue: mlxsw_core mlxsw_sp_acl_tcam_vregion_rehash_work RIP: 0010:parman_destroy+0x17/0x20 [...] Call Trace: <TASK> mlxsw_sp_acl_atcam_region_fini+0x19/0x60 mlxsw_sp_acl_tcam_region_destroy+0x49/0xf0 mlxsw_sp_acl_tcam_vregion_rehash_work+0x1f1/0x470 process_one_work+0x151/0x370 worker_thread+0x2cb/0x3e0 kthread+0xd0/0x100 ret_from_fork+0x34/0x50 ret_from_fork_asm+0x1a/0x30 </TASK>
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 843500518509128a935edab96bd8efef7c54669e to < c6f3fa7f5a748bf6e5c4eb742686d6952f854e76 (affected · git)843500518509128a935edab96bd8efef7c54669e to < 617e98ba4c50f4547c9eb0946b1cfc26937d70d1 (affected · git)843500518509128a935edab96bd8efef7c54669e to < 413a01886c3958d4b8aac23a3bff3d430b92093e (affected · git)843500518509128a935edab96bd8efef7c54669e to < b822644fd90992ee362c5e0c8d2556efc8856c76 (affected · git)843500518509128a935edab96bd8efef7c54669e to < 0ae8ff7b6d42e33943af462910bdcfa2ec0cb8cf (affected · git)843500518509128a935edab96bd8efef7c54669e to < b3fd51f684a0711504f82de510da109ae639722d (affected · git)843500518509128a935edab96bd8efef7c54669e to < 8ca3f7a7b61393804c46f170743c3b839df13977 (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 |
| linux | linux_kernel | 843500518509 to < c6f3fa7f5a74 (affected · git)843500518509 to < 617e98ba4c50 (affected · git)843500518509 to < 413a01886c39 (affected · git)843500518509 to < b822644fd909 (affected · git)843500518509 to < 0ae8ff7b6d42 (affected · git)843500518509 to < b3fd51f684a0 (affected · git)843500518509 to < 8ca3f7a7b613 (affected · git)Default: affected | CISA-ADP · adp |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0ae8ff7b6d42e33943af462910bdcfa2ec0cb8cf
- https://git.kernel.org/stable/c/413a01886c3958d4b8aac23a3bff3d430b92093e
- https://git.kernel.org/stable/c/617e98ba4c50f4547c9eb0946b1cfc26937d70d1
- https://git.kernel.org/stable/c/8ca3f7a7b61393804c46f170743c3b839df13977
- https://git.kernel.org/stable/c/b3fd51f684a0711504f82de510da109ae639722d
- https://git.kernel.org/stable/c/b822644fd90992ee362c5e0c8d2556efc8856c76
- https://git.kernel.org/stable/c/c6f3fa7f5a748bf6e5c4eb742686d6952f854e76
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
Provider assertions
3Linux · cna
mlxsw: spectrum_acl_tcam: Fix memory leak during rehash
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1340ba77237cbbe7800466d3c5c309429c07c2821203bfd120246e491d4d68e9
- Ingested
- 23 Sep 2026, 08:23:51 UTC
- Source record
- Official CVE record