# CVE-2024-26595: mlxsw: spectrum\_acl\_tcam: Fix NULL pointer dereference in error path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-02-23T14:46:24.767Z
- **Modified:** 2026-06-17T07:17:51.137Z

## Who should check

- Anyone running Linux \>= 22a677661f5624539d394f681276171f92d714df, \< 75fa2d8b3c0175b519c99ace54ab8474cfd0077e; \>= 22a677661f5624539d394f681276171f92d714df, \< 817840d125a370626895df269c50c923b79b0a39; \>= 22a677661f5624539d394f681276171f92d714df, \< d0a1efe417c97a1e9b914056ee6b86f1ef75fe1f; \>= 22a677661f5624539d394f681276171f92d714df, \< efeb7dfea8ee10cdec11b6b6ba4e405edbe75809
- Anyone running Linux 4.11

## Description

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

## Affected and fixed versions

- Linux: \>= 22a677661f5624539d394f681276171f92d714df, \< 75fa2d8b3c0175b519c99ace54ab8474cfd0077e; \>= 22a677661f5624539d394f681276171f92d714df, \< 817840d125a370626895df269c50c923b79b0a39; \>= 22a677661f5624539d394f681276171f92d714df, \< d0a1efe417c97a1e9b914056ee6b86f1ef75fe1f; \>= 22a677661f5624539d394f681276171f92d714df, \< efeb7dfea8ee10cdec11b6b6ba4e405edbe75809 (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26595.md
Affected: Linux >= 22a677661f5624539d394f681276171f92d714df, < 75fa2d8b3c0175b519c99ace54ab8474cfd0077e; >= 22a677661f5624539d394f681276171f92d714df, < 817840d125a370626895df269c50c923b79b0a39; >= 22a677661f5624539d394f681276171f92d714df, < d0a1efe417c97a1e9b914056ee6b86f1ef75fe1f; >= 22a677661f5624539d394f6…
Fixed in: Linux 75fa2d8b3c0175b519c99ace54ab8474cfd0077e, Linux 817840d125a370626895df269c50c923b79b0a39

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.
```

## FAQ

### Is CVE-2024-26595 being exploited?

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

### How serious is CVE-2024-26595?

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

### Which versions are affected by CVE-2024-26595?

Linux \>= 22a677661f5624539d394f681276171f92d714df, \< 75fa2d8b3c0175b519c99ace54ab8474cfd0077e; \>= 22a677661f5624539d394f681276171f92d714df, \< 817840d125a370626895df269c50c923b79b0a39; \>= 22a677661f5624539d394f681276171f92d714df, \< d0a1efe417c97a1e9b914056ee6b86f1ef75fe1f; \>= 22a677661f5624539d394f681276171f92d714df, \< efeb7dfea8ee10cdec11b6b6ba4e405edbe75809; Linux 4.11.

### Is there a fix for CVE-2024-26595?

Yes. Fixed in Linux 75fa2d8b3c0175b519c99ace54ab8474cfd0077e, Linux 817840d125a370626895df269c50c923b79b0a39. No fix listed yet: follow the vendor advisory.

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

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.

## References

- patch: <https://git.kernel.org/stable/c/817840d125a370626895df269c50c923b79b0a39>
- patch: <https://git.kernel.org/stable/c/d0a1efe417c97a1e9b914056ee6b86f1ef75fe1f>
- patch: <https://git.kernel.org/stable/c/efeb7dfea8ee10cdec11b6b6ba4e405edbe75809>
- other: <https://git.kernel.org/stable/c/75fa2d8b3c0175b519c99ace54ab8474cfd0077e>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26595>

HTML: <https://flawdb.com/CVE-2024-26595> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26595>
