Linux
ethtool: eeprom: add more safeties to EEPROM Netlink fallback
In the Linux kernel, the following vulnerability has been resolved: ethtool: eeprom: add more safeties to EEPROM Netlink fallback The Netlink fallback path for reading module EEPROM (fallback_set_params()) validates that offset < eeprom_len, but does not check that offset + length stays within eeprom_len. The ioctl equivalent (ethtool_get_any_eeprom() in ioctl.c) has always enforced both bounds: if (eeprom.offset + eeprom.len > total_len) return -EINVAL; This could lead to surprises in both drivers and device FW. Add the missing offset + length validation to fallback_set_params(), mirroring the ioctl. Similarly - ethtool core in general, and ethtool_get_any_eeprom() in particular tries to zero-init all buffers passed to the drivers to avoid any extra work of zeroing things out. eeprom_fallback() uses a plain kmalloc(), change it to zalloc.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 96d971e307cc0e434f96329b42bbd98cfbca07d2, < 0e182689831277faf2ef683573a60474c208f690
- >= 96d971e307cc0e434f96329b42bbd98cfbca07d2, < 6ed7ebe22e9c3e3e946b6973c1ce43d3c38aeac1
- >= 96d971e307cc0e434f96329b42bbd98cfbca07d2, < 65674d2489a12b8efd2ca0effb3de1d12224b596
- >= 96d971e307cc0e434f96329b42bbd98cfbca07d2, < d81376053a00865c70b8d8506a1cb93f2943d413
- >= 96d971e307cc0e434f96329b42bbd98cfbca07d2, < fd0de51c54fa8474a0ddeedd71c65ad09fada390
- >= 96d971e307cc0e434f96329b42bbd98cfbca07d2, < 4fe1bc4b3603f621240d5b401742f302190db769
- >= 96d971e307cc0e434f96329b42bbd98cfbca07d2, < 67cfdd9210b99f260b3e0afeb9525e0acc7be31e
Fixed in 0e182689831277faf2ef683573a60474c208f690, 6ed7ebe22e9c3e3e946b6973c1ce43d3c38aeac1, 65674d2489a12b8efd2ca0effb3de1d12224b596, d81376053a00865c70b8d8506a1cb93f2943d413, fd0de51c54fa8474a0ddeedd71c65ad09fada390, 4fe1bc4b3603f621240d5b401742f302190db769, 67cfdd9210b99f260b3e0afeb9525e0acc7be31e
- 5.13
Fixed in 0, 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12, 7.1
Mitigation
Upgrade Linux to 0e182689831277faf2ef683573a60474c208f690 or 6ed7ebe22e9c3e3e946b6973c1ce43d3c38aeac1 or 65674d2489a12b8efd2ca0effb3de1d12224b596 or d81376053a00865c70b8d8506a1cb93f2943d413 or fd0de51c54fa8474a0ddeedd71c65ad09fada390 or 4fe1bc4b3603f621240d5b401742f302190db769 or 67cfdd9210b99f260b3e0afeb9525e0acc7be31e or later.
Upgrade Linux to 0 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.93 or 6.18.35 or 7.0.12 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.