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.
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-tools-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-toolsUpgrade bpftool-debuginfoUpgrade bpftoolUpgrade python-perfUpgrade kernel-headersUpgrade perf-debuginfoUpgrade kernel-livepatch-5.15.86-53.137Upgrade kernelUpgrade kernel-tools-develUpgrade perfUpgrade python-perf-debuginfoUpgrade kernel-debuginfoUpgrade kernel-develUpgrade kernel-debuginfo-common-aarch64 | Mar 14, 2025 | Oct 21, 2024 |
| Debian | — | Upgrade linux | Oct 23, 2024 | Oct 23, 2024 |
| Ubuntu | — | Upgrade linux-azure-fde-5.15Upgrade linux-oracleUpgrade linux-azure-5.15Upgrade linux-ibmUpgrade linux-oracle-5.15Upgrade linux-lowlatencyUpgrade linux-nvidiaUpgrade linux-gkeopUpgrade linux-intel-iot-realtimeUpgrade linuxUpgrade linux-gkeUpgrade linux-realtimeUpgrade linux-azureUpgrade linux-hwe-5.15Upgrade linux-intel-iotgUpgrade linux-intel-iotg-5.15Upgrade linux-aws-5.15Upgrade linux-bluefieldUpgrade linux-lowlatency-hwe-5.15Upgrade linux-awsUpgrade linux-azure-fdeUpgrade linux-gcpUpgrade linux-gkeop-5.15Upgrade linux-gcp-5.15Upgrade linux-kvmUpgrade linux-riscv-5.15Upgrade linux-raspi | Nov 19, 2024 | Oct 21, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub