i2c: s3c24xx: check the size of the SMBUS message before using it
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 85747311ecb6167c989093c64a13807366fdd3a9 · < 377fae22a137b6b89f3f32399a58c52cf2325416| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i2c: s3c24xx: check the size of the SMBUS message before using it
The first byte of an i2c SMBUS message is the size, and it should be verified to ensure that it is in the range of 0..I2C_SMBUS_BLOCK_MAX before processing it.
This is the same logic that was added in commit a6e04f05ce0b ("i2c: tegra: check msg length in SMBUS block read") to the i2c tegra driver.
From the CVE record · Linux
The Linux kernel's s3c24xx I2C driver does not check that the size byte of an SMBus message is within the permitted range before processing it. An attacker who can supply such a message could cause the driver to process an out-of-range size. The input does not specify whether this requires local access, authentication, or user interaction.
Engineers running Linux kernels that include the s3c24xx I2C driver should check their versions; affected versions are not specified.