CVE-2024-44971

Source
https://cve.org/CVERecord?id=CVE-2024-44971
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-44971.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-44971
Downstream
Related
Published
2024-09-04T18:56:47.475Z
Modified
2026-05-28T03:54:21.384815523Z
Summary
net: dsa: bcm_sf2: Fix a possible memory leak in bcm_sf2_mdio_register()
Details

In the Linux kernel, the following vulnerability has been resolved:

net: dsa: bcmsf2: Fix a possible memory leak in bcmsf2mdioregister()

bcmsf2mdioregister() calls ofphyfinddevice() and then phydeviceremove() in a loop to remove existing PHY devices. ofphyfinddevice() eventually calls busfinddevice(), which calls getdevice() 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 phydevicefree() call to decrement the refcount via put_device() to balance the refcount.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/44xxx/CVE-2024-44971.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
771089c2a485958e423f305e974303760167b45c
Fixed
b7b8d9f5e679af60c94251fd6728dde34be69a71
Fixed
c05516c072903f6fb9134b8e7e1ad4bffcdc4819
Fixed
7feef10768ea71d468d9bbc1e0d14c461876768c
Fixed
a7d2808d67570e6acae45c2a96e0d59986888e4c
Fixed
f3d5efe18a11f94150fee8b3fda9d62079af640a
Fixed
e3862093ee93fcfbdadcb7957f5f8974fffa806a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-44971.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
5.10.224
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.165
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.105
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.46
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-44971.json"