{"id":"CVE-2024-36006","revision":"6dae68a9c2074d58a219ac7c5177816d","records":[{"revision":"6dae68a9c2074d58a219ac7c5177816d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-36006","aliases":[],"title":"mlxsw: spectrum_acl_tcam: Fix incorrect list API usage","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: spectrum_acl_tcam: Fix incorrect list API usage\n\nBoth the function that migrates all the chunks within a region and the\nfunction that migrates all the entries within a chunk call\nlist_first_entry() on the respective lists without checking that the\nlists are not empty. This is incorrect usage of the API, which leads to\nthe following warning [1].\n\nFix by returning if the lists are empty as there is nothing to migrate\nin this case.\n\n[1]\nWARNING: CPU: 0 PID: 6437 at drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c:1266 mlxsw_sp_acl_tcam_vchunk_migrate_all+0x1f1/0>\nModules linked in:\nCPU: 0 PID: 6437 Comm: kworker/0:37 Not tainted 6.9.0-rc3-custom-00883-g94a65f079ef6 #39\nHardware name: Mellanox Technologies Ltd. MSN3700/VMOD0005, BIOS 5.11 01/06/2019\nWorkqueue: mlxsw_core mlxsw_sp_acl_tcam_vregion_rehash_work\nRIP: 0010:mlxsw_sp_acl_tcam_vchunk_migrate_all+0x1f1/0x2c0\n[...]\nCall Trace:\n <TASK>\n mlxsw_sp_acl_tcam_vregion_rehash_work+0x6c/0x4a0\n process_one_work+0x151/0x370\n worker_thread+0x2cb/0x3e0\n kthread+0xd0/0x100\n ret_from_fork+0x34/0x50\n ret_from_fork_asm+0x1a/0x30\n </TASK>","state":0,"publishedAt":"2024-05-20T09:48:06.278+00:00","modifiedAt":"2026-10-15T00:42:10.207+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf\",\n                            \"lessThan\": \"0b2c13b670b168e324e1cf109e67056a20fd610a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf\",\n                            \"lessThan\": \"09846c2309b150b8ce4e0ce96f058197598fc530\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf\",\n                            \"lessThan\": \"64435b64e43d8ee60faa46c0cd04e323e8b2a7b0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf\",\n                            \"lessThan\": \"4526a56e02da3725db979358964df9cd9c567154\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf\",\n                            \"lessThan\": \"ab4ecfb627338e440ae11def004c524a00d93e40\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf\",\n                            \"lessThan\": \"af8b593c3dd9df82cb199be65863af004b09fd97\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6f9579d4e3021b17b0a4cde6b04a6c94c9575cdf\",\n                            \"lessThan\": \"b377add0f0117409c418ddd6504bd682ebe0bf79\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.1\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.4.275\",\n                            \"lessThanOrEqual\": \"5.4.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.216\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.158\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.90\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.30\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.8.9\",\n                            \"lessThanOrEqual\": \"6.8.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.9\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/0b2c13b670b168e324e1cf109e67056a20fd610a","https://git.kernel.org/stable/c/09846c2309b150b8ce4e0ce96f058197598fc530","https://git.kernel.org/stable/c/64435b64e43d8ee60faa46c0cd04e323e8b2a7b0","https://git.kernel.org/stable/c/4526a56e02da3725db979358964df9cd9c567154","https://git.kernel.org/stable/c/ab4ecfb627338e440ae11def004c524a00d93e40","https://git.kernel.org/stable/c/af8b593c3dd9df82cb199be65863af004b09fd97","https://git.kernel.org/stable/c/b377add0f0117409c418ddd6504bd682ebe0bf79"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-36006","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-36006","identifiers":["CVE-2024-36006"]},"retained":false,"historicalAffected":[]}],"coverage":[]}