# CVE-2022-48854: net: arc_emac: Fix use after free in arc_mdio_probe()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-02)
- Published: 2024-07-16T12:25:20.477Z
- Modified: 2026-06-17T05:16:23.283Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: arc_emac: Fix use after free in arc_mdio_probe()

If bus->state is equal to MDIOBUS_ALLOCATED, mdiobus_free(bus) will free
the "bus". But bus->name is still used in the next line, which will lead
to a use after free.

We can fix it by putting the name in a local variable and make the
bus->name point to the rodata section "name",then use the name in the
error message without referring to bus to avoid the uaf.

(As written by CVE List.)

## Affected

- Linux Linux: from 95b5fc03c189e4ea5c63785274cc0b77fcc3a818 before 84c831803785c2c3bec5c28c0e8a0b72f6b41d4d; from 95b5fc03c189e4ea5c63785274cc0b77fcc3a818 before bc0e610a6eb0d46e4123fafdbe5e6141d9fff3be; 5.16 (not affected: before 5.16; from 5.16.15 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 5.16 before 5.16.15

## References

- <https://git.kernel.org/stable/c/84c831803785c2c3bec5c28c0e8a0b72f6b41d4d> (patch)
- <https://git.kernel.org/stable/c/bc0e610a6eb0d46e4123fafdbe5e6141d9fff3be> (patch)

## Sources

- CVE List: [CVE-2022-48854](https://www.cve.org/CVERecord?id=CVE-2022-48854), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48854](https://nvd.nist.gov/vuln/detail/CVE-2022-48854), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48854 · Whole record: https://cve.day/CVE-2022-48854.json · Rebuilt by cve.day 2026-11-25T22:58:19.919Z
