CVE-2025-37989: fallo en Linux
net: phy: leds: fix memory leak
Publicada el · Actualizada el
3Vexday Risk Score
Sin señal de explotación. Ningún artefacto público de explotación conocido hasta ahora.
ssvc Trackepss 0.2%
probabilidad de explotación
0.2%top 91% de las CVE
explotación observada
noninguna fuente lo reporta
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.
Productos afectados
Linux · LinuxCVEs relacionadas — Linux
En el mismo producto, de las más peligrosas a las menos.
CVE-2024-53197HIGHALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devicesEPSS 4.1%KEVCVE-2026-31431HIGHcrypto: algif_aead - Revert to operating out-of-placeEPSS 3.4%KEVCVE-2024-53104HIGHmedia: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in uvc_parse_formatEPSS 3.4%KEVCVE-2025-39682CRITICALtls: fix handling of zero-length records on the rx_listEPSS 2.9%KEVCVE-2024-36971HIGHnet: fix __dst_negative_advice() raceEPSS 2.7%KEVCVE-2025-39964HIGHcrypto: af_alg - Disallow concurrent writes in af_alg_sendmsgEPSS 1.4%KEV
Referencias
https://git.kernel.org/stable/c/41143e71052a00d654c15dc924fda50c1e7357d0https://git.kernel.org/stable/c/618541a6cc1511064dfa58c89b3445e21844092fhttps://git.kernel.org/stable/c/663c3da86e807c6c07ed48f911c7526fad6fe1ffhttps://git.kernel.org/stable/c/7f3d5880800f962c347777c4f8358f29f5fc403chttps://git.kernel.org/stable/c/95bed65cc0eb2a610550abf849a8b94374da80a7https://git.kernel.org/stable/c/966d6494e2ed9be9052fcd9815afba830896aaf8https://git.kernel.org/stable/c/b7f0ee992adf601aa00c252418266177eb7ac2bchttps://git.kernel.org/stable/c/f41f097f68a33d392579885426d0734a81219501https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html