CVE-2022-48961
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
21/10/2024
Last modified:
24/10/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: mdio: fix unbalanced fwnode reference count in mdio_device_release()<br />
<br />
There is warning report about of_node refcount leak<br />
while probing mdio device:<br />
<br />
OF: ERROR: memory leak, expected refcount 1 instead of 2,<br />
of_node_get()/of_node_put() unbalanced - destroy cset entry:<br />
attach overlay node /spi/soc@0/mdio@710700c0/ethernet@4<br />
<br />
In of_mdiobus_register_device(), we increase fwnode refcount<br />
by fwnode_handle_get() before associating the of_node with<br />
mdio device, but it has never been decreased in normal path.<br />
Since that, in mdio_device_release(), it needs to call<br />
fwnode_handle_put() in addition instead of calling kfree()<br />
directly.<br />
<br />
After above, just calling mdio_device_free() in the error handle<br />
path of of_mdiobus_register_device() is enough to keep the<br />
refcount balanced.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.5 (including) | 5.15.83 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.0.13 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.1:rc6:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.1:rc7:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.1:rc8:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



