CVE-2024-44971
MEDIUMLinux kernel - Memory Corruption
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)
Scores
CVSS v3
5.5
EPSS
0.0002
EPSS Percentile
3.6%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Classification
CWE
CWE-401
Status
published
Affected Products (8)
linux/linux_kernel
< 5.10.224
linux/linux_kernel
linux/linux_kernel
linux/Kernel
< 5.10.224linux
linux/Kernel
< 5.15.165linux
linux/Kernel
< 6.1.105linux
linux/Kernel
< 6.6.46linux
linux/Kernel
< 6.10.5linux
Timeline
Published
Sep 04, 2024
Tracked Since
Feb 18, 2026