← CVE Intelligence

CVE-2024-26856

net: sparx5: Fix use after free inside sparx5_del_mact_entry PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before e46274df1100fb0c06704195bfff5bfbd418bf64; affected b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 0de693d68b0a18d5e256556c7c62d92cca35ad52; affected b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before e83bebb718fd1f42549358730e1206164e0861d6; affected b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 71809805b95052ff551922f11660008fb3666025; affected b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 89d72d4125e94aa3c2140fedd97ce07ba9e37674
Linux / Linuxaffected 5.14; unaffected 0 before 5.14; unaffected 5.15.152 through 5.15.*; unaffected 6.1.82 through 6.1.*; unaffected 6.6.22 through 6.6.*; unaffected 6.7.10 through 6.7.*; unaffected 6.8 through *

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.