{"id":"CVE-2022-49016","published":"2024-10-21T20:06:25Z","modified":"2026-05-11T18:51:34Z","title":"net: mdiobus: fix unbalanced node reference count","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mdiobus: fix unbalanced node reference count\n\nI got the following report while doing device(mscc-miim) load test\nwith CONFIG_OF_UNITTEST and CONFIG_OF_DYNAMIC enabled:\n\n  OF: ERROR: memory leak, expected refcount 1 instead of 2,\n  of_node_get()/of_node_put() unbalanced - destroy cset entry:\n  attach overlay node /spi/soc@0/mdio@7107009c/ethernet-phy@0\n\nIf the 'fwnode' is not an acpi node, the refcount is get in\nfwnode_mdiobus_phy_device_register(), but it has never been\nput when the device is freed in the normal path. So call\nfwnode_handle_put() in phy_device_release() to avoid leak.\n\nIf it's an acpi node, it has never been get, but it's put\nin the error path, so call fwnode_handle_get() before\nphy_device_register() to keep get/put operation balanced.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00245,"percentile":0.16101,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/543d917f691ab06885ee779c862065899eaa4251","tags":[]},{"url":"https://git.kernel.org/stable/c/2708b357440427d6a9fee667eb7b8307f4625adc","tags":[]},{"url":"https://git.kernel.org/stable/c/cdde1560118f82498fc9e9a7c1ef7f0ef7755891","tags":[]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":3.22}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bc1bee3b87ee48bd97ef7fd306445132ba2041b0, < 543d917f691ab06885ee779c862065899eaa4251",">= bc1bee3b87ee48bd97ef7fd306445132ba2041b0, < 2708b357440427d6a9fee667eb7b8307f4625adc",">= bc1bee3b87ee48bd97ef7fd306445132ba2041b0, < cdde1560118f82498fc9e9a7c1ef7f0ef7755891"]},{"vendor":"Linux","product":"Linux","versions":["5.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:13:13.450914Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53900","exploited":false,"provenance":"source"}}