CVE-2024-26856: net: sparx5: Fix use after free inside sparx5_del_mact_entry
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.
Security readout for executives and security teams
Plain-English summary
A Linux Sparx5 network-driver flaw can use MAC-table data after that memory has been freed. The supplied CVSS score is 8.8, reflecting potentially serious confidentiality, integrity, and availability consequences. Exposure depends on running affected kernel code and using the relevant driver path.
Executive priority
Treat as a high-priority kernel maintenance issue where Sparx5 networking is used, particularly near untrusted adjacent networks. Validate actual driver exposure before emergency action, but schedule supported kernel updates promptly because the modeled impact spans data confidentiality, integrity, and availability.
Technical view
During sparx5_del_mact_entry, the code freed a MAC-table entry before using its VLAN identifier to remove the corresponding hardware entry. The referenced fix reverses that order: delete the hardware entry using the identifier first, then free the memory.
Likely exposure
Likely exposure is limited to systems running an affected Linux kernel with the Sparx5 driver present and the vulnerable MAC-entry deletion path reachable. The bundle lists 5.14, 5.15.152, 6.1.82, 6.6.22, 6.7.10, and 6.8 as affected, alongside an anomalous version entry of โ0.โ
Exploitation context
The CVE is not listed as KEV, and the supplied sources do not report active exploitation or a public exploit. CVSS models adjacent-network access, low complexity, no privileges, and no user interaction. The description is based on static analysis, so practical exploitability is not established here.
Researcher notes
The source identifies a use-after-free ordering defect involving mac_entry->vid and devm_kfree. No CWE is assigned. Evidence establishes the defective sequence and correction, but not demonstrated exploitation, trigger reliability, or affected hardware configurations. The unusual affected-version metadata warrants confirmation against distribution advisories and kernel commit history.
Mitigation direction
Update to a vendor-supported kernel containing the applicable referenced stable fix.
If immediate updating is impossible, consult distribution or kernel-vendor guidance; no temporary mitigation is supplied.
After updating, reboot into the corrected kernel and verify the running version.
Prioritize affected systems reachable from adjacent, less-trusted network segments.
Validation and detection
Inventory running kernel versions and compare them with vendor-specific advisories and fixed packages.
Check whether the Sparx5 networking driver is built, loaded, or actively used.
Verify the installed kernel source or package includes the applicable referenced fix.
Review driver fault logs, while recognizing that no observed crash does not establish safety.
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-26856 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.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.