Instituto Nacional de ciberseguridad. Sección Incibe
Instituto Nacional de Ciberseguridad. Sección INCIBE-CERT

CVE-2025-39805

Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
16/09/2025
Última modificación:
16/09/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 &amp;#39;attached_dev&amp;#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