hwmon: (tps53679) Fix array access with zero-length block 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 79b7e588399bb55f4c10bea6ca41b6c3b944d2bb, Kernel 6.19.12, Kernel 6999b4769e2a61c463158927102e8c07e3f69ba2 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: hwmon: (tps53679) Fix array access with zero-length block read i2c_smbus_read_block_data() can return 0, indicating a zero-length read. When this happens, tps53679_identify_chip() accesses buf[ret - 1] which is buf[-1], reading one byte before the buffer on the stack. Fix by changing the check from "ret < 0" to "ret <= 0", treating a zero-length read as an error (-EIO), which prevents the out-of-bounds array access. Also fix a typo in the adjacent comment: "if present" instead of duplicate "if".
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=75ca1e5875fe3f0b9d0e8615c69f49bc2c7fb65d <79b7e588399bb55f4c10bea6ca41b6c3b944d2bb, >=6.19 <6.19.12, =6.17, =7.0, >=75ca1e5875fe3f0b9d0e8615c69f49bc2c7fb65d <6999b4769e2a61c463158927102e8c07e3f69ba2, >=6.17.1 <6.18.22, >=75ca1e5875fe3f0b9d0e8615c69f49bc2c7fb65d <0e211f6aaa6a00fd0ee0c1eea5498f168c6725e6 | 79b7e588399bb55f4c10bea6ca41b6c3b944d2bb, 6.19.12, 6999b4769e2a61c463158927102e8c07e3f69ba2, 6.18.22, 0e211f6aaa6a00fd0ee0c1eea5498f168c6725e6 |
| linux-kernel: Kernel | >=6.17.0 <6.18.22, >=6.19.0 <6.19.12 | 6.18.22, 6.19.12 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket