CVE-2024-44971: net: dsa: bcm_sf2: Fix a possible memory leak in bcm_sf2_mdio_register()

Published Sep 4, 2024
·
Updated

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 putdevice() to balance the refcount.

Affected Software

9 affected componentsFixes available
Linux Linux kernel>=5.10<5.10.224
Linux Linux kernel>=5.11<5.15.165
Linux Linux kernel>=5.16<6.1.105
Linux Linux kernel>=6.2<6.6.46
Linux Linux kernel>=6.7<6.10.5
Linux Linux kernel=6.11-rc1
Linux Linux kernel=6.11-rc2
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1

Event History

Sep 4, 2024
CVE Published
via MITRE·06:56 PM
Data Sourced
via MITRE·06:56 PM
Description
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 29, 2025
Data Sourced
via Ubuntu·06:23 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-44971?

CVE-2024-44971 is classified as a moderate severity vulnerability in the Linux kernel.

2

What versions of the Linux kernel are affected by CVE-2024-44971?

CVE-2024-44971 affects various versions of the Linux kernel from 5.10 to 6.11-rc2.

3

How do I fix CVE-2024-44971?

To fix CVE-2024-44971, upgrade to the patched versions of the Linux kernel such as 5.10.226-1, 6.1.123-1, or higher.

4

What type of vulnerability is CVE-2024-44971?

CVE-2024-44971 is a vulnerability related to a possible memory leak in the bcm_sf2_mdio_register function.

5

Is there a workaround for CVE-2024-44971?

There are no widely recommended workarounds for CVE-2024-44971; applying the update is the best approach.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203