CVE-2026-43005: hwmon: (tps53679) Fix array access with zero-length block read
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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".
The Linux kernel CVE team has assigned CVE-2026-43005 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.17 with commit 75ca1e5875fe3f0b9d0e8615c69f49bc2c7fb65d and fixed in 6.18.22 with commit 79b7e588399bb55f4c10bea6ca41b6c3b944d2bb Issue introduced in 6.17 with commit 75ca1e5875fe3f0b9d0e8615c69f49bc2c7fb65d and fixed in 6.19.12 with commit 6999b4769e2a61c463158927102e8c07e3f69ba2 Issue introduced in 6.17 with commit 75ca1e5875fe3f0b9d0e8615c69f49bc2c7fb65d and fixed in 7.0 with commit 0e211f6aaa6a00fd0ee0c1eea5498f168c6725e6
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-43005
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/hwmon/pmbus/tps53679.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/79b7e588399bb55f4c10bea6ca41b6c3b944d2bb https://git.kernel.org/stable/c/6999b4769e2a61c463158927102e8c07e3f69ba2 https://git.kernel.org/stable/c/0e211f6aaa6a00fd0ee0c1eea5498f168c6725e6