CVE-2026-98835: iio: accel: kionix-kx022a: Fix array boundary check
In the Linux kernel, the following vulnerability has been resolved:
iio: accel: kionix-kx022a: Fix array boundary check
The driver performs a sanity check for an array size, when converting a register value to an array index. The check incorrectly accepts the sizeof(array) as a last index, when last valid index should be sizeof(array) - 1.
Fix the check by bailing out when index >= sizeof(array).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Fix the sanity check to bail out when index >= sizeof(array), because sizeof(array) is not a valid last index.
Linux kernel iio: accel: kionix-kx022a driver array index bounds check = index >= sizeof(array)