CVE-2026-139190: net: usb: lan78xx: avoid NULL PHY dereference in WoL setup

Published Nov 30, 2026
·
Updated

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, lan78xxsetwol() unconditionally passes netdev->phydev to phyethtoolsetwol(), 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 lan78xxsetwol() 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 dummyhcd in QEMU. An ETHTOOLSWOL 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

Which systems are exposed to the crash?

Systems using the Linux lan78xx USB network driver for a LAN7801 device configured with a fixed link and no attached PHY are affected. Devices with an attached PHY continue to use the existing phylib Wake-on-LAN handling.

2

What is required to trigger the issue?

A userspace Wake-on-LAN configuration request must reach the driver, such as an ETHTOOL_SWOL ioctl. On a PHY-less fixed-link configuration, the driver dereferences the absent netdev PHY pointer and can cause a kernel Oops.

3

Does a PHY-less configuration support Wake-on-LAN after the fix?

No. The fixed behavior reports no Wake-on-LAN capabilities when no PHY is attached and rejects Wake-on-LAN setup with -EOPNOTSUPP before changing wakeup configuration.

4

What can be done before applying the fix?

Avoid issuing userspace Wake-on-LAN setup requests against LAN7801 interfaces configured without an attached PHY. This prevents the vulnerable lan78xx Wake-on-LAN setup path from being invoked.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203