CVE-2024-44971
MEDIUMLinux Kernel - Use-After-Free in bcm_sf2_mdio_register
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: net: dsa: bcm_sf2: Fix a possible memory leak in bcm_sf2_mdio_register() bcm_sf2_mdio_register() calls of_phy_find_device() and then phy_device_remove() in a loop to remove existing PHY devices. of_phy_find_device() eventually calls bus_find_device(), which calls get_device() on the returned struct device * to increment the refcount. The current implementation does not decrement the refcount, which causes memory leak. This commit adds the missing phy_device_free() call to decrement the refcount via put_device() to balance the refcount.
References (8)
Core 8
Core References
Scores
CVSS v3
5.5
EPSS
0.0021
EPSS Percentile
11.2%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-401
Status
published
Products (21)
linux/Kernel
5.10.0 - 5.10.224linux
linux/Kernel
5.11.0 - 5.15.165linux
linux/Kernel
5.16.0 - 6.1.105linux
linux/Kernel
6.2.0 - 6.6.46linux
linux/Kernel
6.7.0 - 6.10.5linux
Linux/Linux
< 5.10
Linux/Linux
5.10
Linux/Linux
5.10.224 - 5.10.*
Linux/Linux
5.15.165 - 5.15.*
Linux/Linux
6.1.105 - 6.1.*
... and 11 more
Published
Sep 04, 2024
Tracked Since
Feb 18, 2026