CVE-2022-48961
Last modified
CVE-2022-48961 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: mdio: fix unbalanced fwnode reference count in mdio_device_release() There is warning report about of_node refcount leak while probing mdio device: OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /spi/soc@0/mdio@710700c0/ethernet@4 In of_mdiobus_register_device(), we increase fwnode refcount by fwnode_handle_get() before associating the of_node with mdio device, but it has never been decreased in normal path. Since that, in mdio_device_release(), it needs to call fwnode_handle_put() in addition instead of calling kfree() directly. After above, just calling mdio_device_free() in the error handle path of of_mdiobus_register_device() is enough to keep the refcount balanced.. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: mdio: fix unbalanced fwnode reference count in mdio_device_release() There is warning report about of_node refcount leak while probing mdio device: OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /spi/soc@0/mdio@710700c0/ethernet@4 In of_mdiobus_register_device(), we increase fwnode refcount by fwnode_handle_get() before associating the of_node with mdio device, but it has never been decreased in normal path. Since that, in mdio_device_release(), it needs to call fwnode_handle_put() in addition instead of calling kfree() directly. After above, just calling mdio_device_free() in the error handle path of of_mdiobus_register_device() is enough to keep the refcount balanced.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.5, < 5.15.83 | — |
| Linux | Linux Kernel | >= 5.16, < 6.0.13 | — |
| Linux | Linux Kernel | 6.1 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2022-48961?
How severe is CVE-2022-48961?
How do I fix CVE-2022-48961?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-48956In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-48957In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48958In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48959In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-4896Cyber Control, in its 1.650 version, is affected by a vulner…7.5
- CVE-2022-48960In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-48962In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-48963In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48964In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-48965In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48966In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2022-48967In the Linux kernel, the following vulnerability has been re…7.1
Are you affected by CVE-2022-48961?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
