{"id":"CVE-2026-139190","state":"PUBLISHED","title":"net: usb: lan78xx: avoid NULL PHY dereference in WoL setup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: usb: lan78xx: avoid NULL PHY dereference in WoL setup\n\nLAN7801 supports fixed-link configurations without an attached PHY.\nHowever, lan78xx_set_wol() unconditionally passes netdev->phydev\nto phy_ethtool_set_wol(), causing a NULL pointer dereference when\na userspace WoL request reaches this path.\n\nReport no WoL capabilities when no PHY is attached, and return\n-EOPNOTSUPP from lan78xx_set_wol() before modifying the wakeup\nconfiguration. Keep the existing phylib WoL handling for devices\nwith an attached PHY.\n\nThe issue was reproduced using USB Raw Gadget and dummy_hcd in QEMU.\nAn ETHTOOL_SWOL ioctl triggered a kernel Oops with the original\ndriver. With this change, the PHY-less configuration no longer\nadvertises unsupported WoL operations, avoiding the crash.","publishedAt":"2026-11-30T13:32:24.784Z","updatedAt":"2026-11-30T13:32:24.784Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e110bc82589752909e283ba5cbc160e0ab56c085","status":"affected","lessThan":"0c25305c29f1d1d50775b939be7b0527c95bf40a","versionType":"git"},{"version":"e110bc82589752909e283ba5cbc160e0ab56c085","status":"affected","lessThan":"08280c4a2a03b3423d3639a5beb165f17d963cc5","versionType":"git"},{"version":"e110bc82589752909e283ba5cbc160e0ab56c085","status":"affected","lessThan":"dacb77e32e2bba78f90a8637fd27e13e2c9775dd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/usb/lan78xx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/usb/lan78xx.c"]}],"references":["https://git.kernel.org/stable/c/0c25305c29f1d1d50775b939be7b0527c95bf40a","https://git.kernel.org/stable/c/08280c4a2a03b3423d3639a5beb165f17d963cc5","https://git.kernel.org/stable/c/dacb77e32e2bba78f90a8637fd27e13e2c9775dd"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139190.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139190","state":"PUBLISHED","datePublished":"2026-11-30T13:32:24.784Z","dateUpdated":"2026-11-30T13:32:24.784Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.919Z"},"containers":{"cna":{"title":"net: usb: lan78xx: avoid NULL PHY dereference in WoL setup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: usb: lan78xx: avoid NULL PHY dereference in WoL setup\n\nLAN7801 supports fixed-link configurations without an attached PHY.\nHowever, lan78xx_set_wol() unconditionally passes netdev->phydev\nto phy_ethtool_set_wol(), causing a NULL pointer dereference when\na userspace WoL request reaches this path.\n\nReport no WoL capabilities when no PHY is attached, and return\n-EOPNOTSUPP from lan78xx_set_wol() before modifying the wakeup\nconfiguration. Keep the existing phylib WoL handling for devices\nwith an attached PHY.\n\nThe issue was reproduced using USB Raw Gadget and dummy_hcd in QEMU.\nAn ETHTOOL_SWOL ioctl triggered a kernel Oops with the original\ndriver. With this change, the PHY-less configuration no longer\nadvertises unsupported WoL operations, avoiding the crash."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e110bc82589752909e283ba5cbc160e0ab56c085","status":"affected","lessThan":"0c25305c29f1d1d50775b939be7b0527c95bf40a","versionType":"git"},{"version":"e110bc82589752909e283ba5cbc160e0ab56c085","status":"affected","lessThan":"08280c4a2a03b3423d3639a5beb165f17d963cc5","versionType":"git"},{"version":"e110bc82589752909e283ba5cbc160e0ab56c085","status":"affected","lessThan":"dacb77e32e2bba78f90a8637fd27e13e2c9775dd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/usb/lan78xx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/usb/lan78xx.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0c25305c29f1d1d50775b939be7b0527c95bf40a"},{"url":"https://git.kernel.org/stable/c/08280c4a2a03b3423d3639a5beb165f17d963cc5"},{"url":"https://git.kernel.org/stable/c/dacb77e32e2bba78f90a8637fd27e13e2c9775dd"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:24.784Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}