CVE-2025-37989
net: phy: leds: fix memory leak
Check your servers for CVE-2025-37989
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-37989 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.1% of all scored CVEs. Scores of 2 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2e0bc452f4721520502575362a9cd3c1248d2337, before 966d6494e2ed9be9052fcd9815afba830896aaf8 affected from 2e0bc452f4721520502575362a9cd3c1248d2337, before 95bed65cc0eb2a610550abf849a8b94374da80a7 affected from 2e0bc452f4721520502575362a9cd3c1248d2337, before 663c3da86e807c6c07ed48f911c7526fad6fe1ff affected from 2e0bc452f4721520502575362a9cd3c1248d2337, before f41f097f68a33d392579885426d0734a81219501 affected from 2e0bc452f4721520502575362a9cd3c1248d2337, before 618541a6cc1511064dfa58c89b3445e21844092f affected from 2e0bc452f4721520502575362a9cd3c1248d2337, before 41143e71052a00d654c15dc924fda50c1e7357d0 affected from 2e0bc452f4721520502575362a9cd3c1248d2337, before 7f3d5880800f962c347777c4f8358f29f5fc403c affected from 2e0bc452f4721520502575362a9cd3c1248d2337, before b7f0ee992adf601aa00c252418266177eb7ac2bc
Other versions: unaffected
|
| Linux |
affected 4.10 unaffected before 4.10 unaffected from 5.4.293 up to and including 5.4.* unaffected from 5.10.237 up to and including 5.10.* unaffected from 5.15.181 up to and including 5.15.* unaffected from 6.1.136 up to and including 6.1.* unaffected from 6.6.89 up to and including 6.6.* unaffected from 6.12.26 up to and including 6.12.* unaffected from 6.14.5 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-37989 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37989
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-37989
trivy image --scanners vuln IMAGE | grep CVE-2025-37989
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/966d6494e2ed9be9052fcd9815afba830896aaf8 git.kernel.org
- https://git.kernel.org/stable/c/95bed65cc0eb2a610550abf849a8b94374da80a7 git.kernel.org
- https://git.kernel.org/stable/c/663c3da86e807c6c07ed48f911c7526fad6fe1ff git.kernel.org
- https://git.kernel.org/stable/c/f41f097f68a33d392579885426d0734a81219501 git.kernel.org
- https://git.kernel.org/stable/c/618541a6cc1511064dfa58c89b3445e21844092f git.kernel.org
- https://git.kernel.org/stable/c/41143e71052a00d654c15dc924fda50c1e7357d0 git.kernel.org
- https://git.kernel.org/stable/c/7f3d5880800f962c347777c4f8358f29f5fc403c git.kernel.org
- https://git.kernel.org/stable/c/b7f0ee992adf601aa00c252418266177eb7ac2bc git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html lists.debian.org
Source: the record CVE-2025-37989 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse