# CVE-2024-26856: net: sparx5: Fix use after free inside sparx5\_del\_mact\_entry

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-04-17T10:17:18.475Z
- **Modified:** 2026-08-05T11:27:50.303Z

## Who should check

- Anyone running Linux \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< e46274df1100fb0c06704195bfff5bfbd418bf64; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 0de693d68b0a18d5e256556c7c62d92cca35ad52; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< e83bebb718fd1f42549358730e1206164e0861d6; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 71809805b95052ff551922f11660008fb3666025; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 89d72d4125e94aa3c2140fedd97ce07ba9e37674
- Anyone running Linux 5.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: sparx5: Fix use after free inside sparx5\_del\_mact\_entry

Based on the static analyzis of the code it looks like when an entry
from the MAC table was removed, the entry was still used after being
freed. More precise the vid of the mac\_entry was used after calling
devm\_kfree on the mac\_entry.
The fix consists in first using the vid of the mac\_entry to delete the
entry from the HW and after that to free it.

## Affected and fixed versions

- Linux: \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< e46274df1100fb0c06704195bfff5bfbd418bf64; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 0de693d68b0a18d5e256556c7c62d92cca35ad52; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< e83bebb718fd1f42549358730e1206164e0861d6; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 71809805b95052ff551922f11660008fb3666025; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 89d72d4125e94aa3c2140fedd97ce07ba9e37674 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 89d72d4125e94aa3c2140fedd97ce07ba9e37674 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26856.md
Affected: Linux >= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, < e46274df1100fb0c06704195bfff5bfbd418bf64; >= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, < 0de693d68b0a18d5e256556c7c62d92cca35ad52; >= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, < e83bebb718fd1f42549358730e1206164e0861d6; >= b37a1bae742f92cc9b1f777…
Fixed in: Linux 0de693d68b0a18d5e256556c7c62d92cca35ad52, Linux 71809805b95052ff551922f11660008fb3666025, Linux 89d72d4125e94aa3c2140fedd97ce07ba9e37674

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-26856 being exploited?

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

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

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< e46274df1100fb0c06704195bfff5bfbd418bf64; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 0de693d68b0a18d5e256556c7c62d92cca35ad52; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< e83bebb718fd1f42549358730e1206164e0861d6; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 71809805b95052ff551922f11660008fb3666025; \>= b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2, \< 89d72d4125e94aa3c2140fedd97ce07ba9e37674; Linux 5.14.

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

Yes. Fixed in Linux 0de693d68b0a18d5e256556c7c62d92cca35ad52, Linux 71809805b95052ff551922f11660008fb3666025, Linux 89d72d4125e94aa3c2140fedd97ce07ba9e37674. Upgrade Linux to 89d72d4125e94aa3c2140fedd97ce07ba9e37674 or later.

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

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/e46274df1100fb0c06704195bfff5bfbd418bf64>
- patch: <https://git.kernel.org/stable/c/0de693d68b0a18d5e256556c7c62d92cca35ad52>
- patch: <https://git.kernel.org/stable/c/e83bebb718fd1f42549358730e1206164e0861d6>
- patch: <https://git.kernel.org/stable/c/71809805b95052ff551922f11660008fb3666025>
- patch: <https://git.kernel.org/stable/c/89d72d4125e94aa3c2140fedd97ce07ba9e37674>

## 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-26856>

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