CVE-2022-48806

MEDIUM

Linux kernel - Integer Overflow in ee1004 EEPROM Read via i2c_smbus_read_i2c_block_data_or_emulated

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: eeprom: ee1004: limit i2c reads to I2C_SMBUS_BLOCK_MAX Commit effa453168a7 ("i2c: i801: Don't silently correct invalid transfer size") revealed that ee1004_eeprom_read() did not properly limit how many bytes to read at once. In particular, i2c_smbus_read_i2c_block_data_or_emulated() takes the length to read as an u8. If count == 256 after taking into account the offset and page boundary, the cast to u8 overflows. And this is common when user space tries to read the entire EEPROM at once. To fix it, limit each read to I2C_SMBUS_BLOCK_MAX (32) bytes, already the maximum length i2c_smbus_read_i2c_block_data_or_emulated() allows.

Scores

CVSS v3 5.5
EPSS 0.0028
EPSS Percentile 19.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-190
Status published
Products (19)
Linux/Linux 07d9beb6e3c2e852e884113d6803ea4b3643ae38 - 9443ddeb3754e9e382a396b50adc1961301713ce
Linux/Linux 202d0e22fe512df0f1cb6253d40ce1058e373247
Linux/Linux 25714ad6bf5e98025579fa4c08ff2041a663910c - a37960df7eac3cc8094bd1ab84864e9e32c91345
Linux/Linux 4.14.263 - 4.15
Linux/Linux 4.19.226 - 4.20
Linux/Linux 4.4.300 - 4.5
Linux/Linux 4.9.298 - 4.10
Linux/Linux 5.10.94 - 5.10.101
Linux/Linux 5.15.17 - 5.15.24
Linux/Linux 5.16.3 - 5.16.10
... and 9 more
Published Jul 16, 2024
Tracked Since Feb 18, 2026