# CVE-2024-26856: net: sparx5: Fix use after free inside sparx5_del_mact_entry

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2024-04-17T10:17:18.475Z
- Modified: 2026-08-05T11:27:50.303Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before e46274df1100fb0c06704195bfff5bfbd418bf64; from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 0de693d68b0a18d5e256556c7c62d92cca35ad52; from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before e83bebb718fd1f42549358730e1206164e0861d6; from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 71809805b95052ff551922f11660008fb3666025; from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 89d72d4125e94aa3c2140fedd97ce07ba9e37674; 5.14 (not affected: before 5.14; from 5.15.152 up to 5.15.*; from 6.1.82 up to 6.1.*; from 6.6.22 up to 6.6.*; from 6.7.10 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 5.14 before 5.15.152; from 5.16 before 6.1.82; from 6.2 before 6.6.22; from 6.7 before 6.7.10; 6.8

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/e46274df1100fb0c06704195bfff5bfbd418bf64> (mailing-list, patch)
- <https://git.kernel.org/stable/c/0de693d68b0a18d5e256556c7c62d92cca35ad52> (mailing-list, patch)
- <https://git.kernel.org/stable/c/e83bebb718fd1f42549358730e1206164e0861d6> (mailing-list, patch)
- <https://git.kernel.org/stable/c/71809805b95052ff551922f11660008fb3666025> (mailing-list, patch)
- <https://git.kernel.org/stable/c/89d72d4125e94aa3c2140fedd97ce07ba9e37674> (mailing-list, patch)

## Sources

- CVE List: [CVE-2024-26856](https://www.cve.org/CVERecord?id=CVE-2024-26856), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26856](https://nvd.nist.gov/vuln/detail/CVE-2024-26856), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26856 · Whole record: https://cve.day/CVE-2024-26856.json · Rebuilt by cve.day 2026-11-25T22:58:39.359Z
