CVE-2024-26595: mlxsw: spectrum_acl_tcam: Fix NULL pointer dereference in error path
In the Linux kernel, the following vulnerability has been resolved:
mlxsw: spectrum_acl_tcam: Fix NULL pointer dereference in error path
When calling mlxsw_sp_acl_tcam_region_destroy() from an error path after
failing to attach the region to an ACL group, we hit a NULL pointer
dereference upon 'region->group->tcam' [1].
Fix by retrieving the 'tcam' pointer using mlxsw_sp_acl_to_tcam().
[1]
BUG: kernel NULL pointer dereference, address: 0000000000000000
[...]
RIP: 0010:mlxsw_sp_acl_tcam_region_destroy+0xa0/0xd0
[...]
Call Trace:
mlxsw_sp_acl_tcam_vchunk_get+0x88b/0xa20
mlxsw_sp_acl_tcam_ventry_add+0x25/0xe0
mlxsw_sp_acl_rule_add+0x47/0x240
mlxsw_sp_flower_replace+0x1a9/0x1d0
tc_setup_cb_add+0xdc/0x1c0
fl_hw_replace_filter+0x146/0x1f0
fl_change+0xc17/0x1360
tc_new_tfilter+0x472/0xb90
rtnetlink_rcv_msg+0x313/0x3b0
netlink_rcv_skb+0x58/0x100
netlink_unicast+0x244/0x390
netlink_sendmsg+0x1e4/0x440
____sys_sendmsg+0x164/0x260
___sys_sendmsg+0x9a/0xe0
__sys_sendmsg+0x7a/0xc0
do_syscall_64+0x40/0xe0
entry_SYSCALL_64_after_hwframe+0x63/0x6b
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel bug in the Mellanox Spectrum ACL TCAM code. In a specific error path, the kernel can dereference a NULL pointer and crash. The business risk is mainly availability loss on systems using this networking driver path, not confirmed data theft or remote compromise.
Executive priority
Treat as a targeted kernel availability risk. It is not known exploited, but affected network infrastructure could crash under the vulnerable error path. Prioritize patching where Mellanox Spectrum hardware or switch-like Linux networking roles are present.
Technical view
The flaw is in mlxsw spectrum_acl_tcam. If attaching a region to an ACL group fails, mlxsw_sp_acl_tcam_region_destroy() can access region->group->tcam when group is NULL. The recorded trace reaches this through traffic-control flower filter replacement and rtnetlink handling. The upstream fix retrieves the TCAM pointer through mlxsw_sp_acl_to_tcam().
Likely exposure
Exposure appears limited to Linux systems using the mlxsw Spectrum networking driver and ACL TCAM traffic-control offload paths. General Linux systems without this driver, hardware, or configuration path are less likely affected. The bundle lists Linux kernel version ranges but does not provide CVSS or full product packaging details.
Exploitation context
The bundle shows a kernel NULL pointer dereference and marks KEV as false. No cited source confirms active exploitation, public weaponization, or a complete attacker model. The stack trace suggests the vulnerable path is tied to traffic-control filter changes, but the source does not define required privileges.
Researcher notes
Evidence supports a NULL pointer dereference in an error path, with upstream stable commits referenced. Severity, CVSS, CWE, privilege requirements, and exploitability are not provided in the bundle. Avoid broad Linux-wide urgency unless local inventory confirms the mlxsw Spectrum ACL path is in use.
Mitigation direction
Update affected Linux kernels using vendor or distribution guidance.
Prioritize systems using Mellanox Spectrum mlxsw networking features.
Review Debian LTS and other distribution kernel advisories.
Limit unnecessary access to network traffic-control administration until patched.
Monitor kernel logs for mlxsw_sp_acl_tcam_region_destroy crashes.
Validation and detection
Inventory kernels and identify systems with mlxsw Spectrum hardware or modules.
Compare installed kernel packages against vendor fixed versions or stable commits.
Check whether traffic-control flower offload features are enabled.
Review crash logs for NULL pointer dereferences in mlxsw_sp_acl_tcam_region_destroy.
Track distro advisories for backported fixes and reboot requirements.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-26595 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.