net: txgbe: fix heap overflow when reading module EEPROM
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: txgbe: fix heap overflow when reading module EEPROM
txgbe_read_eeprom_hostif() always copies round_up(length, 4) bytes into the caller buffer, which ethtool allocates with exactly 'length' bytes. A non-4-aligned length therefore causes an out-of-bounds write. Copy only the remaining bytes on the final dword instead.
From the CVE record · Linux
The Linux kernel's txgbe EEPROM read function can write past an ethtool-allocated buffer when the requested length is not a multiple of four. This can cause a heap overflow during a module EEPROM read; the input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with the txgbe driver should check whether their kernel includes the fix; affected versions are not specified.