CVE-2024-26856 net: sparx5: Fix use after free inside sparx5_del_mact_entry
A use-after-free flaw in the Sparx5 network driver allows attackers to potentially execute code or cause a system crash.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-26856?
CVE-2024-26856 is a high-severity use after free vulnerability in Linux kernel, published on 17 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2024-26856?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-26856?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-26856 being exploited?
There is no known exploitation of CVE-2024-26856 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-26856, DEBIAN-CVE-2024-26856, GHSA-j23x-qww2-jxhh, UBUNTU-CVE-2024-26856.