CVE-2025-39805
Last modified
CVE-2025-39805 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: macb: fix unregister_netdev call order in macb_remove() When removing a macb device, the driver calls phy_exit() before unregister_netdev(). This leads to a WARN from kernfs: ------------[ cut here ]------------ kernfs: can not remove 'attached_dev', no directory WARNING: CPU: 1 PID: 27146 at fs/kernfs/dir.c:1683 Call trace: kernfs_remove_by_name_ns+0xd8/0xf0 sysfs_remove_link+0x24/0x58 phy_detach+0x5c/0x168 phy_disconnect+0x4c/0x70 phylink_disconnect_phy+0x6c/0xc0 [phylink] macb_close+0x6c/0x170 [macb] ... macb_remove+0x60/0x168 [macb] platform_remove+0x5c/0x80 ... The warning happens because the PHY is being exited while the netdev is still registered. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: macb: fix unregister_netdev call order in macb_remove() When removing a macb device, the driver calls phy_exit() before unregister_netdev(). This leads to a WARN from kernfs: ------------[ cut here ]------------ kernfs: can not remove 'attached_dev', no directory WARNING: CPU: 1 PID: 27146 at fs/kernfs/dir.c:1683 Call trace: kernfs_remove_by_name_ns+0xd8/0xf0 sysfs_remove_link+0x24/0x58 phy_detach+0x5c/0x168 phy_disconnect+0x4c/0x70 phylink_disconnect_phy+0x6c/0xc0 [phylink] macb_close+0x6c/0x170 [macb] ... macb_remove+0x60/0x168 [macb] platform_remove+0x5c/0x80 ... The warning happens because the PHY is being exited while the netdev is still registered. The correct order is to unregister the netdev before shutting down the PHY and cleaning up the MDIO bus. Fix this by moving unregister_netdev() ahead of phy_exit() in macb_remove().
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.18, < 6.12.45 | — |
| Linux | Linux Kernel | >= 6.13, < 6.16.5 | — |
| Linux | Linux Kernel | 6.17 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-39805?
How severe is CVE-2025-39805?
How do I fix CVE-2025-39805?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-3980A vulnerability classified as problematic was found in wowjo…5.3
- CVE-2025-39800In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39801In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39802In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39803In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39804In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39806In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-39807In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39808In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39809In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-3981A vulnerability, which was classified as problematic, has be…5.3
- CVE-2025-39810In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2025-39805?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
