CVE-2024-36006 mlxsw: spectrum_acl_tcam: Fix incorrect list API usage
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
mlxsw: spectrum_acl_tcam: Fix incorrect list API usage
Both the function that migrates all the chunks within a region and the
function that migrates all the entries within a chunk call
list_first_entry() on the respective lists without checking that the
lists are not empty. This is incorrect usage of the API, which leads to
the following warning [1].
Fix by returning if the lists are empty as there is nothing to migrate
in this case.
[1]
WARNING: CPU: 0 PID: 6437 at drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c:1266 mlxsw_sp_acl_tcam_vchunk_migrate_all+0x1f1/0>
Modules linked in:
CPU: 0 PID: 6437 Comm: kworker/0:37 Not tainted 6.9.0-rc3-custom-00883-g94a65f079ef6 #39
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:mlxsw_sp_acl_tcam_vchunk_migrate_all+0x1f1/0x2c0
[...]
Call Trace:
<TASK>
mlxsw_sp_acl_tcam_vregion_rehash_work+0x6c/0x4a0
process_one_work+0x151/0x370
worker_thread+0x2cb/0x3e0
kthread+0xd0/0x100
ret_from_fork+0x34/0x50
ret_from_fork_asm+0x1a/0x30
</TASK>
Upgrade path
13 packages: 12 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.90-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +18 more | 6.1.90-1 | Fixed |
| debian/linux(Debian 13) | < 6.8.9-1 | 6.8.9-1 | Fixed |
| debian/linux(Debian 14) | < 6.8.9-1 | 6.8.9-1 | Fixed |
| Linux kernel | < 5.4.275; < 5.10.216; < 5.15.158; < 6.1.90 +22 more | 0b2c13b670b168e324e1cf109e67056a20fd610a, 5.4.275, 5.10.216, 5.15.158, 6.1.90, 6.6.30, 6.8.9, 6.9, 4526a56e02da3725db979358964df9cd9c567154, 09846c2309b150b8ce4e0ce96f058197598fc530, 64435b64e43d8ee60faa46c0cd04e323e8b2a7b0, ab4ecfb627338e440ae11def004c524a00d93e40, af8b593c3dd9df82cb199be65863af004b09fd97, b377add0f0117409c418ddd6504bd682ebe0bf79 | Fixed |
| Siemens RUGGEDCOM RST2428P | < V3.1 | V3.1 | Fixed |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.1 | V3.1 | Fixed |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-116.126 | 5.15.0-116.126 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-40.40 | 6.8.0-40.40 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1062.67 | 5.15.0-1062.67 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1058.61 | 5.15.0-1058.61 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | < 6.1.90-1 | 6.1.90-1 |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:13) | < 6.8.9-1 | 6.8.9-1 |
| debian/linux(Debian:14) | < 6.8.9-1 | 6.8.9-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-116.126 | 5.15.0-116.126 |
Show 34 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1062.67 | 5.15.0-1062.67 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1058.61 | 5.15.0-1058.61 |
| Linux kernel | >= 6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf, < 0b2c13b670b168e324e1cf109e67056a20fd610a | 0b2c13b670b168e324e1cf109e67056a20fd610a |
| Linux kernel | >= 6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf, < 09846c2309b150b8ce4e0ce96f058197598fc530 | 09846c2309b150b8ce4e0ce96f058197598fc530 |
| Linux kernel | >= 6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf, < 64435b64e43d8ee60faa46c0cd04e323e8b2a7b0 | 64435b64e43d8ee60faa46c0cd04e323e8b2a7b0 |
| Linux kernel | >= 6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf, < 4526a56e02da3725db979358964df9cd9c567154 | 4526a56e02da3725db979358964df9cd9c567154 |
| Linux kernel | >= 6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf, < ab4ecfb627338e440ae11def004c524a00d93e40 | ab4ecfb627338e440ae11def004c524a00d93e40 |
| Linux kernel | >= 6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf, < af8b593c3dd9df82cb199be65863af004b09fd97 | af8b593c3dd9df82cb199be65863af004b09fd97 |
| Linux kernel | >= 6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf, < b377add0f0117409c418ddd6504bd682ebe0bf79 | b377add0f0117409c418ddd6504bd682ebe0bf79 |
| Linux kernel | = 5.1 | No fix listed |
| Linux kernel | < 5.4.275 | 5.4.275 |
| Linux kernel | < 5.10.216 | 5.10.216 |
| Linux kernel | < 5.15.158 | 5.15.158 |
| Linux kernel | < 6.1.90 | 6.1.90 |
| Linux kernel | < 6.6.30 | 6.6.30 |
| Linux kernel | < 6.8.9 | 6.8.9 |
| Linux kernel | < 6.9 | 6.9 |
| Siemens RUGGEDCOM RST2428P | < V3.1 | V3.1 |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.1 | V3.1 |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-40.40 | 6.8.0-40.40 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 |
| Linux kernel | >= 5.1, < 5.4.275 | 5.4.275 |
| Linux kernel | >= 5.5, < 5.10.216 | 5.10.216 |
| Linux kernel | >= 5.11, < 5.15.158 | 5.15.158 |
| Linux kernel | >= 5.16, < 6.1.90 | 6.1.90 |
| Linux kernel | >= 6.2, < 6.6.30 | 6.6.30 |
| Linux kernel | >= 6.7, < 6.8.9 | 6.8.9 |
| Linux kernel | = 6.9-rc1 | No fix listed |
| Linux kernel | = 6.9-rc2 | No fix listed |
| Linux kernel | = 6.9-rc3 | No fix listed |
| Linux kernel | = 6.9-rc4 | No fix listed |
| Linux kernel | = 6.9-rc5 | No fix listed |
| debian linux | = 10.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-36006 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6896-1 vendor-advisory
- USN-6898-1 vendor-advisory
- USN-6896-2 vendor-advisory
- USN-6898-2 vendor-advisory
- USN-6896-3 vendor-advisory
- USN-6898-3 vendor-advisory
- USN-6896-4 vendor-advisory
- USN-6896-5 vendor-advisory
- USN-6898-4 vendor-advisory
- USN-6917-1 vendor-advisory
- USN-6919-1 vendor-advisory
- USN-6927-1 vendor-advisory
- USN-6949-1 vendor-advisory
- USN-6952-1 vendor-advisory
- USN-6955-1 vendor-advisory
- USN-6949-2 vendor-advisory
- USN-6952-2 vendor-advisory
- USN-7019-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list third-party-advisory
- cert-portal.siemens.com
- cert-portal.siemens.com
- ENISA EUVD EUVD-2024-35816 third-party-advisory