CVE-2024-26856

net: sparx5: Fix use after free inside sparx5_del_mact_entry

HIGH
7.8
CVSS Score
Published: April 17, 2024 at 10:17 AM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.14 ≤ v < 5.15.1525.14 ≤ v < 6.1.825.14 ≤ v < 6.6.225.14 ≤ v < 6.7.105.14 ≤ v < 6.85.16 ≤ v < 6.1.826.2 ≤ v < 6.6.226.7 ≤ v < 6.7.106.8 rc16.8 rc26.8 rc36.8 rc46.8 rc56.8 rc6b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2
Vendor states this is fixed in 0de693d68b0a18d5e256556c7c62d92cca35ad52 (fixed)
Vendor states this is fixed in 71809805b95052ff551922f11660008fb3666025 (fixed)
Vendor states this is fixed in 89d72d4125e94aa3c2140fedd97ce07ba9e37674 (fixed)
Vendor states this is fixed in e46274df1100fb0c06704195bfff5bfbd418bf64 (fixed)
Vendor states this is fixed in e83bebb718fd1f42549358730e1206164e0861d6 (fixed)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.152 (unaffected)
Vendor states this is fixed in 6.1.82 (unaffected)
Vendor states this is fixed in 6.6.22 (unaffected)
Vendor states this is fixed in 6.7.10 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (5)

Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0de693d68b0a18d5e256556c7c62d92cca35ad52
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/71809805b95052ff551922f11660008fb3666025
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/89d72d4125e94aa3c2140fedd97ce07ba9e37674
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e46274df1100fb0c06704195bfff5bfbd418bf64
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e83bebb718fd1f42549358730e1206164e0861d6

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card