CVE-2022-48854

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
16/07/2024
Last modified:
23/07/2024

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> net: arc_emac: Fix use after free in arc_mdio_probe()<br /> <br /> If bus-&gt;state is equal to MDIOBUS_ALLOCATED, mdiobus_free(bus) will free<br /> the "bus". But bus-&gt;name is still used in the next line, which will lead<br /> to a use after free.<br /> <br /> We can fix it by putting the name in a local variable and make the<br /> bus-&gt;name point to the rodata section "name",then use the name in the<br /> error message without referring to bus to avoid the uaf.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 5.16.15 (excluding)