CVE-2025-38422: net: lan743x: Modify the EEPROM and OTP size for PCI1xxxx devices
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: lan743x: Modify the EEPROM and OTP size for PCI1xxxx devices
Maximum OTP and EEPROM size for hearthstone PCI1xxxx devices are 8 Kb and 64 Kb respectively. Adjust max size definitions and return correct EEPROM length based on device. Also prevent out-of-bound read/write.
The Linux kernel CVE team has assigned CVE-2025-38422 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.142 with commit 6b4201d74d0a49af2123abf2c9d142e59566714b Fixed in 6.6.95 with commit 088279ff18cdc437d6fac5890e0c52c624f78a5b Fixed in 6.12.35 with commit 51318d644c993b3f7a60b8616a6a5adc1e967cd2 Fixed in 6.15.4 with commit 9c41d2a2aa3817946eb613522200cab55513ddaa Fixed in 6.16-rc1 with commit 3b9935586a9b54d2da27901b830d3cf46ad66a1e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-38422
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/microchip/lan743x_ethtool.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/6b4201d74d0a49af2123abf2c9d142e59566714b https://git.kernel.org/stable/c/088279ff18cdc437d6fac5890e0c52c624f78a5b https://git.kernel.org/stable/c/51318d644c993b3f7a60b8616a6a5adc1e967cd2 https://git.kernel.org/stable/c/9c41d2a2aa3817946eb613522200cab55513ddaa https://git.kernel.org/stable/c/3b9935586a9b54d2da27901b830d3cf46ad66a1e