# CVE-2022-49016: net: mdiobus: fix unbalanced node reference count

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.24%, higher than 16% of CVEs (2026-12-02)
- Published: 2024-10-21T20:06:25.294Z
- Modified: 2026-06-17T05:16:51.450Z
- Weaknesses: CWE-401
- 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: mdiobus: fix unbalanced node reference count

I got the following report while doing device(mscc-miim) load test
with CONFIG_OF_UNITTEST and CONFIG_OF_DYNAMIC enabled:

  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@7107009c/ethernet-phy@0

If the 'fwnode' is not an acpi node, the refcount is get in
fwnode_mdiobus_phy_device_register(), but it has never been
put when the device is freed in the normal path. So call
fwnode_handle_put() in phy_device_release() to avoid leak.

If it's an acpi node, it has never been get, but it's put
in the error path, so call fwnode_handle_get() before
phy_device_register() to keep get/put operation balanced.

(As written by CVE List.)

## Affected

- Linux Linux: from bc1bee3b87ee48bd97ef7fd306445132ba2041b0 before 543d917f691ab06885ee779c862065899eaa4251; from bc1bee3b87ee48bd97ef7fd306445132ba2041b0 before 2708b357440427d6a9fee667eb7b8307f4625adc; from bc1bee3b87ee48bd97ef7fd306445132ba2041b0 before cdde1560118f82498fc9e9a7c1ef7f0ef7755891; 5.14 (not affected: before 5.14; from 5.15.82 up to 5.15.*; from 6.0.12 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.14 before 5.15.82; from 5.16 before 6.0.12; 6.1

## References

- <https://git.kernel.org/stable/c/543d917f691ab06885ee779c862065899eaa4251> (patch)
- <https://git.kernel.org/stable/c/2708b357440427d6a9fee667eb7b8307f4625adc> (patch)
- <https://git.kernel.org/stable/c/cdde1560118f82498fc9e9a7c1ef7f0ef7755891> (patch)

## Sources

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

---

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