What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.152, 6.1.82, 6.6.22, 6.7.10. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-26856 or the next vulnerability affects your stack