CVE-2025-37989
Last modified
CVE-2025-37989 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: phy: leds: fix memory leak A network restart test on a router led to an out-of-memory condition, which was traced to a memory leak in the PHY LED trigger code. The root cause is misuse of the devm API. The registration function (phy_led_triggers_register) is called from phy_attach_direct, not phy_probe, and the unregister function (phy_led_triggers_unregister) is called from phy_detach, not phy_remove. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: phy: leds: fix memory leak A network restart test on a router led to an out-of-memory condition, which was traced to a memory leak in the PHY LED trigger code. The root cause is misuse of the devm API. The registration function (phy_led_triggers_register) is called from phy_attach_direct, not phy_probe, and the unregister function (phy_led_triggers_unregister) is called from phy_detach, not phy_remove. This means the register and unregister functions can be called multiple times for the same PHY device, but devm-allocated memory is not freed until the driver is unbound. This also prevents kmemleak from detecting the leak, as the devm API internally stores the allocated pointer. Fix this by replacing devm_kzalloc/devm_kcalloc with standard kzalloc/kcalloc, and add the corresponding kfree calls in the unregister path.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.10, < 5.4.293 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.237 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.181 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.136 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.89 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.26 | — |
| Linux | Linux Kernel | >= 6.13, < 6.14.5 | — |
| Linux | Linux Kernel | 6.15 | Rc1 |
| Debian | Debian Linux | 11.0 | — |
References
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-37989?
How severe is CVE-2025-37989?
How do I fix CVE-2025-37989?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-37983In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37984In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37985In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-37986In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37987In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37988In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-3799A vulnerability, which was classified as critical, was found…9.8
- CVE-2025-37990In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37991In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-37992In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37993In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37994In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-37989?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
