CVE-2025-37989 net: phy: leds: fix memory leak
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
11 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux kernel(Azure Linux 3.0) | < 6.6.92.2-1 | 6.6.92.2-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.137-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +35 more | 6.1.137-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.27-1 | 6.12.27-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.27-1 | 6.12.27-1 | Fixed |
| Linux kernel | < 5.4.293; < 5.10.237; < 5.15.181; < 6.1.136 +23 more | 5.4.293, 5.10.237, 5.15.181, 6.1.136, 6.6.89, 6.12.26, 6.14.5, 6.15, 7f3d5880800f962c347777c4f8358f29f5fc403c, 95bed65cc0eb2a610550abf849a8b94374da80a7, 663c3da86e807c6c07ed48f911c7526fad6fe1ff, 966d6494e2ed9be9052fcd9815afba830896aaf8, 41143e71052a00d654c15dc924fda50c1e7357d0, 618541a6cc1511064dfa58c89b3445e21844092f, b7f0ee992adf601aa00c252418266177eb7ac2bc, f41f097f68a33d392579885426d0734a81219501 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-144.157 | 5.15.0-144.157 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-100.100 | 6.8.0-100.100 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1084.89 | 5.15.0-1084.89 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1083.86 | 5.15.0-1083.86 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux kernel(Azure Linux:3.0) | < 6.6.92.2-1 | 6.6.92.2-1 |
| debian/linux(Debian:12) | < 6.1.137-1 | 6.1.137-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.135-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
Show 50 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.27-1 | 6.12.27-1 |
| debian/linux(Debian:14) | < 6.12.27-1 | 6.12.27-1 |
| Linux kernel | >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 966d6494e2ed9be9052fcd9815afba830896aaf8 | 966d6494e2ed9be9052fcd9815afba830896aaf8 |
| Linux kernel | >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 95bed65cc0eb2a610550abf849a8b94374da80a7 | 95bed65cc0eb2a610550abf849a8b94374da80a7 |
| Linux kernel | >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 663c3da86e807c6c07ed48f911c7526fad6fe1ff | 663c3da86e807c6c07ed48f911c7526fad6fe1ff |
| Linux kernel | >= 2e0bc452f4721520502575362a9cd3c1248d2337, < f41f097f68a33d392579885426d0734a81219501 | f41f097f68a33d392579885426d0734a81219501 |
| Linux kernel | >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 618541a6cc1511064dfa58c89b3445e21844092f | 618541a6cc1511064dfa58c89b3445e21844092f |
| Linux kernel | >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 41143e71052a00d654c15dc924fda50c1e7357d0 | 41143e71052a00d654c15dc924fda50c1e7357d0 |
| Linux kernel | >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 7f3d5880800f962c347777c4f8358f29f5fc403c | 7f3d5880800f962c347777c4f8358f29f5fc403c |
| Linux kernel | >= 2e0bc452f4721520502575362a9cd3c1248d2337, < b7f0ee992adf601aa00c252418266177eb7ac2bc | b7f0ee992adf601aa00c252418266177eb7ac2bc |
| Linux kernel | = 4.10 | No fix listed |
| Linux kernel | < 5.4.293 | 5.4.293 |
| Linux kernel | < 5.10.237 | 5.10.237 |
| Linux kernel | < 5.15.181 | 5.15.181 |
| Linux kernel | < 6.1.136 | 6.1.136 |
| Linux kernel | < 6.6.89 | 6.6.89 |
| Linux kernel | < 6.12.26 | 6.12.26 |
| Linux kernel | < 6.14.5 | 6.14.5 |
| Linux kernel | < 6.15 | 6.15 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-144.157 | 5.15.0-144.157 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1084.89 | 5.15.0-1084.89 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1083.86 | 5.15.0-1083.86 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-100.100 | 6.8.0-100.100 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 |
| Linux kernel | >= 4.10, < 5.4.293 | 5.4.293 |
| Linux kernel | >= 5.5, < 5.10.237 | 5.10.237 |
| Linux kernel | >= 5.11, < 5.15.181 | 5.15.181 |
| Linux kernel | >= 5.16, < 6.1.136 | 6.1.136 |
| Linux kernel | >= 6.2, < 6.6.89 | 6.6.89 |
| Linux kernel | >= 6.7, < 6.12.26 | 6.12.26 |
| Linux kernel | >= 6.13, < 6.14.5 | 6.14.5 |
| Linux kernel | = 6.15-rc1 | No fix listed |
| Linux kernel | = 6.15-rc2 | No fix listed |
| Linux kernel | = 6.15-rc3 | No fix listed |
| debian linux | = 11.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-37989 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7594-1 vendor-advisory
- USN-7594-2 vendor-advisory
- USN-7594-3 vendor-advisory
- USN-7654-1 vendor-advisory
- USN-7654-2 vendor-advisory
- USN-7654-3 vendor-advisory
- USN-7655-1 vendor-advisory
- USN-7654-4 vendor-advisory
- USN-7654-5 vendor-advisory
- USN-7686-1 vendor-advisory
- USN-7711-1 vendor-advisory
- USN-7712-1 vendor-advisory
- USN-7712-2 vendor-advisory
- USN-8028-1 vendor-advisory
- USN-8028-2 vendor-advisory
- USN-8031-1 vendor-advisory
- USN-8028-3 vendor-advisory
- USN-8028-4 vendor-advisory
- USN-8028-5 vendor-advisory
- USN-8031-2 vendor-advisory
- USN-8028-6 vendor-advisory
- USN-8031-3 vendor-advisory
- USN-8052-1 vendor-advisory
- USN-8028-7 vendor-advisory
- USN-8028-8 vendor-advisory
- USN-8052-2 vendor-advisory
- USN-8074-1 vendor-advisory
- USN-8074-2 vendor-advisory
- USN-8126-1 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-15876 third-party-advisory