parisc: eisa_enumerator: Fix out-of-bounds reads of the EEPROM buffer
- CVE-2026-142827
- GHSA-prm9-3phw-64p5
- EUVD-2026-142077
Description
In the Linux kernel, the following vulnerability has been resolved: parisc: eisa_enumerator: Fix out-of-bounds reads of the EEPROM buffer eisa_enumerator() 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 HPEE_SLOT_INFO(i) = 20 + 48*i within the fixed-size eeprom_buf (HPEE_MAX_LENGTH, 8192 bytes) without any bound check. As struct eeprom_eisa_slot_info is 48 bytes, only 170 records fit into the buffer, but num_slots 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 + 48*254 = 12212). parse_slot_config() has the same kind of problem: it clamps config_data_length against HPEE_MAX_LENGTH but does not take config_data_offset 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 parse_slot_config() and bound the parse by it.
Text from the CVE.org record.
Recommendation
Linux
- If you run a version before 7.3.4update to 7.3.4 or later
- If you run a version before 6.18.63update to 6.18.63 or later
- If you run a version before 6.12.117update to 6.12.117 or later
- If you run a version before 6.6.163update to 6.6.163 or later
- If you run a version before 6.1.193update to 6.1.193 or later
- If you run a version before 5.15.226update to 5.15.226 or later
- If you run a version before 5.10.275update to 5.10.275 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in before 7.3.4 7.3.4 before 6.18.63 6.18.63 before 6.12.117 6.12.117 before 6.6.163 6.6.163 before 6.1.193 6.1.193 before 5.15.226 5.15.226 before 5.10.275 5.10.275 from 5.10.275 up to 5.10.*: not affected none stated and 7 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.