CVE-2025-39805
Gravedad CVSS v3.1:
MEDIA
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
16/09/2025
Última modificación:
06/12/2025
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: macb: fix unregister_netdev call order in macb_remove()<br />
<br />
When removing a macb device, the driver calls phy_exit() before<br />
unregister_netdev(). This leads to a WARN from kernfs:<br />
<br />
------------[ cut here ]------------<br />
kernfs: can not remove &#39;attached_dev&#39;, no directory<br />
WARNING: CPU: 1 PID: 27146 at fs/kernfs/dir.c:1683<br />
Call trace:<br />
kernfs_remove_by_name_ns+0xd8/0xf0<br />
sysfs_remove_link+0x24/0x58<br />
phy_detach+0x5c/0x168<br />
phy_disconnect+0x4c/0x70<br />
phylink_disconnect_phy+0x6c/0xc0 [phylink]<br />
macb_close+0x6c/0x170 [macb]<br />
...<br />
macb_remove+0x60/0x168 [macb]<br />
platform_remove+0x5c/0x80<br />
...<br />
<br />
The warning happens because the PHY is being exited while the netdev<br />
is still registered. The correct order is to unregister the netdev<br />
before shutting down the PHY and cleaning up the MDIO bus.<br />
<br />
Fix this by moving unregister_netdev() ahead of phy_exit() in<br />
macb_remove().
Impacto
Puntuación base 3.x
5.50
Gravedad 3.x
MEDIA
Productos y versiones vulnerables
| CPE | Desde | Hasta |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.18 (incluyendo) | 6.12.45 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (incluyendo) | 6.16.5 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* |
Para consultar la lista completa de nombres de CPE con productos y versiones, ver esta página
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/01b9128c5db1b470575d07b05b67ffa3cb02ebf1
- https://git.kernel.org/stable/c/2b9719ccad38dffad7dbdd2f39896f723f9b9011
- https://git.kernel.org/stable/c/7351782f2fc8ac31ced52e3d4e6fa120f819a7ab
- https://git.kernel.org/stable/c/775fe690fd4a3337ad2115de2adb41b227d4dae7
- https://git.kernel.org/stable/c/ff0d3bad32108b57265e5b48f15327549af771d3



