net: usb: lan78xx: avoid NULL PHY dereference in WoL setup
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
net: usb: lan78xx: avoid NULL PHY dereference in WoL setup
LAN7801 supports fixed-link configurations without an attached PHY. However, lan78xx_set_wol() unconditionally passes netdev->phydev to phy_ethtool_set_wol(), causing a NULL pointer dereference when a userspace WoL request reaches this path.
Report no WoL capabilities when no PHY is attached, and return -EOPNOTSUPP from lan78xx_set_wol() before modifying the wakeup configuration. Keep the existing phylib WoL handling for devices with an attached PHY.
The issue was reproduced using USB Raw Gadget and dummy_hcd in QEMU. An ETHTOOL_SWOL ioctl triggered a kernel Oops with the original driver. With this change, the PHY-less configuration no longer advertises unsupported WoL operations, avoiding the crash.
| Product | Versions |
|---|---|
| Linux Linux | e110bc82589752909e283ba5cbc160e0ab56c085 to before 0c25305c29f1d1d50775b939be7b0527c95bf40a Affectede110bc82589752909e283ba5cbc160e0ab56c085 to before 08280c4a2a03b3423d3639a5beb165f17d963cc5 Affectede110bc82589752909e283ba5cbc160e0ab56c085 to before dacb77e32e2bba78f90a8637fd27e13e2c9775dd Affected |
| Linux Linux | 6.17 Affectedbefore 6.17 Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.