CVE-2022-48961: net: mdio: fix unbalanced fwnode reference count in mdio_device_release()

Published Oct 21, 2024
·
Updated

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

net: mdio: fix unbalanced fwnode reference count in mdiodevicerelease()

There is warning report about ofnode refcount leak while probing mdio device:

OF: ERROR: memory leak, expected refcount 1 instead of 2, ofnodeget()/ofnodeput() unbalanced - destroy cset entry: attach overlay node /spi/soc@0/mdio@710700c0/ethernet@4

In ofmdiobusregisterdevice(), we increase fwnode refcount by fwnodehandleget() before associating the ofnode with mdio device, but it has never been decreased in normal path. Since that, in mdiodevicerelease(), it needs to call fwnodehandleput() in addition instead of calling kfree() directly.

After above, just calling mdiodevicefree() in the error handle path of ofmdiobusregisterdevice() is enough to keep the refcount balanced.

Affected Software

10 affected components
Linux Linux kernel>=4.5<5.15.83
Linux Linux kernel>=5.16<6.0.13
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4
Linux Linux kernel=6.1-rc5
Linux Linux kernel=6.1-rc6
Linux Linux kernel=6.1-rc7
Linux Linux kernel=6.1-rc8

Event History

Oct 21, 2024
CVE Published
via MITRE·08:05 PM
Data Sourced
via MITRE·08:05 PM
Description
Data Sourced
via NVD·08:15 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2022-48961?

CVE-2022-48961 has been flagged for its potential to cause a memory refcount leak within the Linux kernel.

2

How do I fix CVE-2022-48961?

To fix CVE-2022-48961, update your Linux kernel to a version that has patched this vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2022-48961?

CVE-2022-48961 affects Linux kernel versions from 4.5 up to 5.15.83, and versions from 5.16 up to 6.1-rc8.

4

What are the potential risks associated with CVE-2022-48961?

The risks of CVE-2022-48961 include potential system instability and crashes due to memory management issues.

5

Is CVE-2022-48961 likely to be exploited in the wild?

While CVE-2022-48961 is a serious vulnerability, its exploitability would depend on specific configurations and exposure of the affected systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203