CVE-2025-37989 json
net: phy: leds: fix memory leak
published last yr. modified 4d ago also EUVD-2025-15876
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 9%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.4.293, 5.10.237, 5.15.181, 6.1.136, 6.6.89, 6.12.26, 6.14.5, 6.15
- linux Debian 12 6.1.137-1
- linux Debian 14, Debian 13 6.12.27-1
debian advisories DEBIAN-CVE-2025-37989
- linux Ubuntu 22.04 LTS 5.15.0-144.157
- linux Ubuntu 24.04 LTS 6.8.0-100.100
- linux-aws Ubuntu 22.04 LTS 5.15.0-1088.95
- linux-aws Ubuntu 24.04 LTS 6.8.0-1046.49
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1087.96
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1047.50
- linux-gke Ubuntu 22.04 LTS 5.15.0-1085.91
- linux-gke Ubuntu 24.04 LTS 6.8.0-1043.48
ubuntu advisories UBUNTU-CVE-2025-37989
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-syms-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-coco_debug SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-source-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-syms-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-source-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.6.1
suse advisories SUSE-SU-2025:02923-1SUSE-SU-2025:02333-1SUSE-SU-2025:02307-1SUSE-SU-2025:02254-1SUSE-SU-2025:02000-1SUSE-SU-2025:01983-1
- git.kernel.org/stable/c/966d6494e2ed9be9052fcd9815afba830896aaf8 commit
- git.kernel.org/stable/c/95bed65cc0eb2a610550abf849a8b94374da80a7 commit
- git.kernel.org/stable/c/663c3da86e807c6c07ed48f911c7526fad6fe1ff commit
- git.kernel.org/stable/c/f41f097f68a33d392579885426d0734a81219501 commit
- git.kernel.org/stable/c/618541a6cc1511064dfa58c89b3445e21844092f commit
- git.kernel.org/stable/c/41143e71052a00d654c15dc924fda50c1e7357d0 commit
- git.kernel.org/stable/c/7f3d5880800f962c347777c4f8358f29f5fc403c commit
- git.kernel.org/stable/c/b7f0ee992adf601aa00c252418266177eb7ac2bc commit
Is CVE-2025-37989 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-37989 updated cvss 6.1
kernel: net: phy: leds: fix memory leak
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: no fix available
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 4d ago
Exploit prediction
0.20% chance of exploitation in the next 30 days, higher than 9% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-401 Missing Release of Memory after Effective Lifetime
- Technology feeds
References
-
git.kernel.org
/stable/c/966d6494e2ed9be9052fcd9815afba830896aaf8
patch
-
git.kernel.org
/stable/c/95bed65cc0eb2a610550abf849a8b94374da80a7
patch
-
git.kernel.org
/stable/c/663c3da86e807c6c07ed48f911c7526fad6fe1ff
patch
-
git.kernel.org
/stable/c/f41f097f68a33d392579885426d0734a81219501
patch
-
git.kernel.org
/stable/c/618541a6cc1511064dfa58c89b3445e21844092f
patch
-
git.kernel.org
/stable/c/41143e71052a00d654c15dc924fda50c1e7357d0
patch
-
git.kernel.org
/stable/c/7f3d5880800f962c347777c4f8358f29f5fc403c
patch
-
git.kernel.org
/stable/c/b7f0ee992adf601aa00c252418266177eb7ac2bc
patch
-
lists.debian.org
/debian-lts-announce/2025/05/msg00045.html
third-party-advisory
Sources
- CVE List CVE-2025-37989
- NVD CVE-2025-37989
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.