iio: accel: mma8452: handle I2C read error(s) in mma8452_read()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f9ec3f3e9cf27dd06cd3725eeaa44e3ce46be893, Kernel 1cddef80a180af74c33d2f26c962ce92b60fded4, Kernel 5bdff291d20c31b365d9ddfe9c426fbfb41da5bb and 12 more.
In the Linux kernel, the following vulnerability has been resolved: iio: accel: mma8452: handle I2C read error(s) in mma8452_read() Currently, If i2c_smbus_read_i2c_block_data() fails but mma8452_set_runtime_pm_state() succeeds, mma8452_read() returns 0. As a result, the caller mma8452_read_raw() assumes the read was successful and proceeds to use a buffer containing uninitialized stack memory. Add proper checking of the I2C read return value and propagate errors to the caller.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8 <f9ec3f3e9cf27dd06cd3725eeaa44e3ce46be893, >=96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8 <1cddef80a180af74c33d2f26c962ce92b60fded4, >=96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8 <5bdff291d20c31b365d9ddfe9c426fbfb41da5bb, >=96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8 <b488055e81d9faaaf2f8aaff45f9944040ac4493, >=96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8 <b4932fc325e84a3233413daf230b043818c8a824, >=96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8 <eed69f8a10b82989ad732ace0fb43a9fb4e7fe35, >=96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8 <f3d413e701c5e54bef736b638967724dda880365, >=96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8 <f3d905ea1e4996d933074481e80d96ecd74a9904, =4.7 | f9ec3f3e9cf27dd06cd3725eeaa44e3ce46be893, 1cddef80a180af74c33d2f26c962ce92b60fded4, 5bdff291d20c31b365d9ddfe9c426fbfb41da5bb, b488055e81d9faaaf2f8aaff45f9944040ac4493, b4932fc325e84a3233413daf230b043818c8a824, eed69f8a10b82989ad732ace0fb43a9fb4e7fe35, f3d413e701c5e54bef736b638967724dda880365, f3d905ea1e4996d933074481e80d96ecd74a9904 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=4.7.0 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket