CVE-2026-53386: iio: adc: ti-ads1298: add bounds check to pga_settings index
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ti-ads1298: add bounds check to pga_settings index
ads1298_pga_settings has 7 elements but ADS1298_MASK_CH_PGA can yield values 0-7. If it yields a value >= 7, this causes an out-of-bounds array access. Add a bounds check and return -EINVAL if the index is out of range.
Note that the remaining value b111 is reserved so should not be seen in a correctly functioning system.
The Linux kernel CVE team has assigned CVE-2026-53386 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.95 with commit d5793975fc3b1780ba576812158ef22e3104e60e Fixed in 6.18.37 with commit d08d82d83ed45fd8c001a9df66ad7ebb86c9d6c6 Fixed in 7.0.14 with commit abe0854e356b1bb814393ca884cb42b3eb12ce10 Fixed in 7.1.2 with commit abd776ded3e256889610595290f6ca46cb6e91ab Fixed in 7.2-rc1 with commit 95e8a48d7a85d4226934020e57815a3316d3a14b
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-53386
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/iio/adc/ti-ads1298.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/d5793975fc3b1780ba576812158ef22e3104e60e https://git.kernel.org/stable/c/d08d82d83ed45fd8c001a9df66ad7ebb86c9d6c6 https://git.kernel.org/stable/c/abe0854e356b1bb814393ca884cb42b3eb12ce10 https://git.kernel.org/stable/c/abd776ded3e256889610595290f6ca46cb6e91ab https://git.kernel.org/stable/c/95e8a48d7a85d4226934020e57815a3316d3a14b