{"id":"CVE-2022-48961","published":"2024-10-21T20:05:45Z","modified":"2026-05-11T18:50:30Z","title":"net: mdio: fix unbalanced fwnode reference count in mdio_device_release()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mdio: fix unbalanced fwnode reference count in mdio_device_release()\n\nThere is warning report about of_node refcount leak\nwhile probing mdio device:\n\nOF: ERROR: memory leak, expected refcount 1 instead of 2,\nof_node_get()/of_node_put() unbalanced - destroy cset entry:\nattach overlay node /spi/soc@0/mdio@710700c0/ethernet@4\n\nIn of_mdiobus_register_device(), we increase fwnode refcount\nby fwnode_handle_get() before associating the of_node with\nmdio device, but it has never been decreased in normal path.\nSince that, in mdio_device_release(), it needs to call\nfwnode_handle_put() in addition instead of calling kfree()\ndirectly.\n\nAfter above, just calling mdio_device_free() in the error handle\npath of of_mdiobus_register_device() is enough to keep the\nrefcount balanced.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.003,"percentile":0.15087,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/16854177745a5648f8ec322353b432e18460f43a","tags":[]},{"url":"https://git.kernel.org/stable/c/a5c6de1a6656b8cc6bce7cb3d9874dd7df4968c3","tags":[]},{"url":"https://git.kernel.org/stable/c/cb37617687f2bfa5b675df7779f869147c9002bd","tags":[]}],"priority":{"score":3.0,"factors":[{"name":"EPSS percentile","points":3.02}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a9049e0c513c4521dbfaa302af8ed08b3366b41f, < 16854177745a5648f8ec322353b432e18460f43a",">= a9049e0c513c4521dbfaa302af8ed08b3366b41f, < a5c6de1a6656b8cc6bce7cb3d9874dd7df4968c3",">= a9049e0c513c4521dbfaa302af8ed08b3366b41f, < cb37617687f2bfa5b675df7779f869147c9002bd"]},{"vendor":"Linux","product":"Linux","versions":["4.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:20:22.871299Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53840","exploited":false,"provenance":"source"}}