# CVE-2025-37989: net: phy: leds: fix memory leak

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 10, 2026-12-01)
- **CWE:** CWE-401
- **Published:** 2025-05-20T17:09:21.419Z
- **Modified:** 2026-11-05T21:18:01.253Z

## Who should check

- Anyone running Linux \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 966d6494e2ed9be9052fcd9815afba830896aaf8; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 95bed65cc0eb2a610550abf849a8b94374da80a7; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 663c3da86e807c6c07ed48f911c7526fad6fe1ff; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< f41f097f68a33d392579885426d0734a81219501; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 618541a6cc1511064dfa58c89b3445e21844092f; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 41143e71052a00d654c15dc924fda50c1e7357d0; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 7f3d5880800f962c347777c4f8358f29f5fc403c; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< b7f0ee992adf601aa00c252418266177eb7ac2bc
- Anyone running Linux 4.10

## 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.

## Affected and fixed versions

- Linux: \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 966d6494e2ed9be9052fcd9815afba830896aaf8; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 95bed65cc0eb2a610550abf849a8b94374da80a7; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 663c3da86e807c6c07ed48f911c7526fad6fe1ff; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< f41f097f68a33d392579885426d0734a81219501; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 618541a6cc1511064dfa58c89b3445e21844092f; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 41143e71052a00d654c15dc924fda50c1e7357d0; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 7f3d5880800f962c347777c4f8358f29f5fc403c; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< b7f0ee992adf601aa00c252418266177eb7ac2bc (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37989. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37989.md
Affected: Linux >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 966d6494e2ed9be9052fcd9815afba830896aaf8; >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 95bed65cc0eb2a610550abf849a8b94374da80a7; >= 2e0bc452f4721520502575362a9cd3c1248d2337, < 663c3da86e807c6c07ed48f911c7526fad6fe1ff; >= 2e0bc452f47215205025753…
Fixed in: Linux 966d6494e2ed9be9052fcd9815afba830896aaf8, Linux 95bed65cc0eb2a610550abf849a8b94374da80a7, Linux 663c3da86e807c6c07ed48f911c7526fad6fe1ff, Linux 618541a6cc1511064dfa58c89b3445e21844092f, Linux 41143e71052a00d654c15dc924fda50c1e7357d0, Linux 7f3d5880800f962c347777c4f8358f29f5fc403c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37989 being exploited?

There is no confirmed exploitation: CVE-2025-37989 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-12-01).

### How serious is CVE-2025-37989?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37989?

Linux \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 966d6494e2ed9be9052fcd9815afba830896aaf8; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 95bed65cc0eb2a610550abf849a8b94374da80a7; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 663c3da86e807c6c07ed48f911c7526fad6fe1ff; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< f41f097f68a33d392579885426d0734a81219501; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 618541a6cc1511064dfa58c89b3445e21844092f; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 41143e71052a00d654c15dc924fda50c1e7357d0; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< 7f3d5880800f962c347777c4f8358f29f5fc403c; \>= 2e0bc452f4721520502575362a9cd3c1248d2337, \< b7f0ee992adf601aa00c252418266177eb7ac2bc; Linux 4.10.

### Is there a fix for CVE-2025-37989?

Yes. Fixed in Linux 966d6494e2ed9be9052fcd9815afba830896aaf8, Linux 95bed65cc0eb2a610550abf849a8b94374da80a7, Linux 663c3da86e807c6c07ed48f911c7526fad6fe1ff, Linux 618541a6cc1511064dfa58c89b3445e21844092f, Linux 41143e71052a00d654c15dc924fda50c1e7357d0, Linux 7f3d5880800f962c347777c4f8358f29f5fc403c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-37989?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/966d6494e2ed9be9052fcd9815afba830896aaf8>
- patch: <https://git.kernel.org/stable/c/95bed65cc0eb2a610550abf849a8b94374da80a7>
- patch: <https://git.kernel.org/stable/c/663c3da86e807c6c07ed48f911c7526fad6fe1ff>
- patch: <https://git.kernel.org/stable/c/f41f097f68a33d392579885426d0734a81219501>
- patch: <https://git.kernel.org/stable/c/618541a6cc1511064dfa58c89b3445e21844092f>
- patch: <https://git.kernel.org/stable/c/41143e71052a00d654c15dc924fda50c1e7357d0>
- patch: <https://git.kernel.org/stable/c/7f3d5880800f962c347777c4f8358f29f5fc403c>
- patch: <https://git.kernel.org/stable/c/b7f0ee992adf601aa00c252418266177eb7ac2bc>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37989>

HTML: <https://flawdb.com/CVE-2025-37989> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37989>
