CVE-2024-26856
JSON

8.8high

net: sparx5: Fix use after free inside sparx5_del_mact_entry

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.32% (higher than 27% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before e46274df1100fb0c06704195bfff5bfbd418bf64, from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 0de693d68b0a18d5e256556c7c62d92cca35ad52, from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before e83bebb718fd1f42549358730e1206164e0861d6, from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 71809805b95052ff551922f11660008fb3666025, from b37a1bae742f92cc9b1f777d54e04ee3d86bbfc2 before 89d72d4125e94aa3c2140fedd97ce07ba9e37674, 5.14
Not affected: before 5.14, from 5.15.152 up to 5.15.*, from 6.1.82 up to 6.1.*, from 6.6.22 up to 6.6.*, from 6.7.10 up to 6.7.*, from 6.8 up to *
CVE List
linux linux_kernelfrom 5.14 before 5.15.152, from 5.16 before 6.1.82, from 6.2 before 6.6.22, from 6.7 before 6.7.10, 6.8NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: sparx5: corrige el use after free dentro de sparx5_del_mact_entry Según el análisis estático del código, parece que cuando se eliminó una entrada de la tabla MAC, la entrada todavía se usó después de ser liberado. Más precisamente, el video de mac_entry se usó después de llamar a devm_kfree en mac_entry. La solución consiste en utilizar primero el vid de mac_entry para eliminar la entrada del HW y luego liberarla.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26856 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-26856 changed 2026-08-04Public domain