Bug 2298195 (CVE-2022-48854) - CVE-2022-48854 kernel: net: arc_emac: Fix use after free in arc_mdio_probe()
Summary: CVE-2022-48854 kernel: net: arc_emac: Fix use after free in arc_mdio_probe()
Keywords:
Status: NEW
Alias: CVE-2022-48854
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-16 13:25 UTC by OSIDB Bzimport
Modified: 2024-09-22 23:18 UTC (History)
4 users (show)

Fixed In Version: kernel 5.16.15, kernel 5.17
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-16 13:25:15 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.