CVE-2026-142827: parisc: eisa_enumerator: Fix out-of-bounds reads of the EEPROM buffer
In the Linux kernel, the following vulnerability has been resolved:
parisc: eisaenumerator: Fix out-of-bounds reads of the EEPROM buffer
eisaenumerator() trusts the contents of the EISA EEPROM. The number of slots is read from the EEPROM header and used to access the slot records at HPEESLOTINFO(i) = 20 + 48i within the fixed-size eeprombuf (HPEEMAXLENGTH, 8192 bytes) without any bound check. As struct eepromeisaslotinfo is 48 bytes, only 170 records fit into the buffer, but numslots is a u8 and may be up to 255, so a corrupted EEPROM makes the code read up to about 4 kB past the end of the buffer (e.g. record 254 is accessed at offset 20 + 48254 = 12212).
parseslotconfig() has the same kind of problem: it clamps configdatalength against HPEEMAXLENGTH but does not take configdataoffset into account, so the parser can walk past the end of the buffer even when the offset itself is valid.
Clamp the number of slots so that all slot records fit into the buffer, and hand the number of bytes actually available to parseslotconfig() and bound the parse by it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Compensating control
In the Linux kernel parisc EISA enumerator, clamp the slot count so all slot records fit in the EEPROM buffer, and bound parse_slot_config() by the bytes actually available, passing that byte count to the parser.
Event History
Frequently Asked Questions
What must be present for this issue to be triggered?
The EISA EEPROM must contain corrupted or malformed data. A slot count greater than the number of records that fit in the fixed 8192-byte EEPROM buffer, or configuration data whose offset and length extend beyond the available buffer, can cause out-of-bounds reads.
Which systems are affected in practice?
The affected code is the parisc EISA enumerator in the Linux kernel. Systems that do not use this enumerator are not described as exposed by the available information.