# CVE-2025-40189: net: usb: lan78xx: Fix lost EEPROM read timeout error(-ETIMEDOUT) in lan78xx\_read\_raw\_eeprom

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-11-12T21:56:30.575Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4, \< a72a7c4f675080a324d4c2167bd2314d968279f1; \>= 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4, \< 49bdb63ff64469a6de8ea901aef123c75be9bbe7
- Anyone running Linux 6.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: usb: lan78xx: Fix lost EEPROM read timeout error(-ETIMEDOUT) in lan78xx\_read\_raw\_eeprom

Syzbot reported read of uninitialized variable BUG with following call stack.

lan78xx 8-1:1.0 (unnamed net\_device) (uninitialized): EEPROM read operation timeout
=====================================================
BUG: KMSAN: uninit-value in lan78xx\_read\_eeprom drivers/net/usb/lan78xx.c:1095 \[inline\]
BUG: KMSAN: uninit-value in lan78xx\_init\_mac\_address drivers/net/usb/lan78xx.c:1937 \[inline\]
BUG: KMSAN: uninit-value in lan78xx\_reset+0x999/0x2cd0 drivers/net/usb/lan78xx.c:3241
 lan78xx\_read\_eeprom drivers/net/usb/lan78xx.c:1095 \[inline\]
 lan78xx\_init\_mac\_address drivers/net/usb/lan78xx.c:1937 \[inline\]
 lan78xx\_reset+0x999/0x2cd0 drivers/net/usb/lan78xx.c:3241
 lan78xx\_bind+0x711/0x1690 drivers/net/usb/lan78xx.c:3766
 lan78xx\_probe+0x225c/0x3310 drivers/net/usb/lan78xx.c:4707

Local variable sig.i.i created at:
 lan78xx\_read\_eeprom drivers/net/usb/lan78xx.c:1092 \[inline\]
 lan78xx\_init\_mac\_address drivers/net/usb/lan78xx.c:1937 \[inline\]
 lan78xx\_reset+0x77e/0x2cd0 drivers/net/usb/lan78xx.c:3241
 lan78xx\_bind+0x711/0x1690 drivers/net/usb/lan78xx.c:3766

The function lan78xx\_read\_raw\_eeprom failed to properly propagate EEPROM
read timeout errors (-ETIMEDOUT). In the fallthrough path, it first
attempted to restore the pin configuration for LED outputs and then
returned only the status of that restore operation, discarding the
original timeout error.

As a result, callers could mistakenly treat the data buffer as valid
even though the EEPROM read had actually timed out with no data or partial
data.

To fix this, handle errors in restoring the LED pin configuration separately.
If the restore succeeds, return any prior EEPROM timeout error correctly
to the caller.

## Affected and fixed versions

- Linux: \>= 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4, \< a72a7c4f675080a324d4c2167bd2314d968279f1; \>= 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4, \< 49bdb63ff64469a6de8ea901aef123c75be9bbe7 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 49bdb63ff64469a6de8ea901aef123c75be9bbe7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40189. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40189.md
Affected: Linux >= 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4, < a72a7c4f675080a324d4c2167bd2314d968279f1; >= 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4, < 49bdb63ff64469a6de8ea901aef123c75be9bbe7; Linux 6.14
Fixed in: Linux 49bdb63ff64469a6de8ea901aef123c75be9bbe7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40189 being exploited?

There is no confirmed exploitation: CVE-2025-40189 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40189?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40189?

Linux \>= 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4, \< a72a7c4f675080a324d4c2167bd2314d968279f1; \>= 8b1b2ca83b200fa46fdfb81e80ad5fe34537e6d4, \< 49bdb63ff64469a6de8ea901aef123c75be9bbe7; Linux 6.14.

### Is there a fix for CVE-2025-40189?

Yes. Fixed in Linux 49bdb63ff64469a6de8ea901aef123c75be9bbe7. Upgrade Linux to 49bdb63ff64469a6de8ea901aef123c75be9bbe7 or later.

### How do I check if I'm affected by CVE-2025-40189?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/a72a7c4f675080a324d4c2167bd2314d968279f1>
- other: <https://git.kernel.org/stable/c/49bdb63ff64469a6de8ea901aef123c75be9bbe7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40189>

HTML: <https://flawdb.com/CVE-2025-40189> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40189>
