CVE-2025-37989
Linux Kernel vulnerability analysis and mitigation

Overview

A memory leak vulnerability (CVE-2025-37989) was discovered in the Linux kernel's PHY LED trigger code, disclosed on May 20, 2025. The vulnerability affects the network subsystem, specifically the PHY LED trigger code implementation. The issue was initially identified during a network restart test on a router that led to an out-of-memory condition (NVD, Wiz).

Technical details

The vulnerability stems from misuse of the devm API in the PHY LED trigger code. The registration function (phyledtriggersregister) is called from phyattachdirect instead of phyprobe, while the unregister function (phyledtriggersunregister) is called from phydetach instead of phy_remove. This implementation allows the register and unregister functions to be called multiple times for the same PHY device, but devm-allocated memory is not freed until the driver is unbound. The issue is further complicated because the devm API internally stores the allocated pointer, preventing kmemleak from detecting the leak. According to Red Hat's assessment, this vulnerability has been assigned a CVSS v3.1 score of 5.5 (Moderate) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (RedHat).

Impact

The vulnerability can lead to memory leaks during network operations, potentially resulting in out-of-memory conditions on affected systems. This can impact system stability and performance, particularly in scenarios involving frequent network restarts or sustained network operations (NVD, Wiz).

Mitigation and workarounds

The fix involves replacing devmkzalloc/devmkcalloc with standard kzalloc/kcalloc and adding corresponding kfree calls in the unregister path. This ensures proper memory management and prevents the accumulation of leaked memory (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-gcp-5.15
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-raspi
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules
NoYesNov 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management