CVE-2022-48806

Medium

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedJul 16, 2024
First seenJul 16, 2024

How to fix

Update
  • linux linux_kernel4.5, 4.10, 4.15, 4.20, 5.4.180, 5.10.101, 5.15.24, 5.16.10 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel4.4.300 ≤ v < 4.5, 4.9.298 ≤ v < 4.10, 4.14.263 ≤ v < 4.15, 4.19.226 ≤ v < 4.20, 5.4.174 ≤ v < 5.4.180, 5.10.94 ≤ v < 5.10.101, 5.15.17 ≤ v < 5.15.24, 5.16.3 ≤ v < 5.16.10, 5.174.5, 4.10, 4.15, 4.20, 5.4.180, 5.10.101, 5.15.24, 5.16.10

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2022-48806 · Linux Kernel · Dark Radar