CVE-2026-63908: Input: atmel_mxt_ts - fix boundary check in mxt_prepare_cfg_mem
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Input: atmel_mxt_ts - fix boundary check in mxt_prepare_cfg_mem
When a configuration file provides an object size that is larger than the driver's known mxt_obj_size(object), the driver intends to discard the extra bytes.
The loop iterates using for (i = 0; i < size; i++). Inside the loop, the condition to skip processing extra bytes is:
if (i > mxt_obj_size(object))
continue;
Since i is a 0-based index, the valid indices for the object are 0 through mxt_obj_size(object) - 1.
When i == mxt_obj_size(object), the condition evaluates to false, and the code processes the byte instead of discarding it.
This causes the code to calculate byte_offset = reg + i - cfg->start_ofs and writes the byte there, overwriting exactly one byte of the adjacent instance or object.
Update the boundary check to skip extra bytes correctly by using >=.
The Linux kernel CVE team has assigned CVE-2026-63908 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.17 with commit 50a77c658b80e7e3303e3bcec195b30e2b62d513 and fixed in 5.10.259 with commit 862a1a32b5190241fce7a7d20229539a3926f31e Issue introduced in 3.17 with commit 50a77c658b80e7e3303e3bcec195b30e2b62d513 and fixed in 5.15.210 with commit 5c3681c3abc35cfac6b702251382312c60d96bc2 Issue introduced in 3.17 with commit 50a77c658b80e7e3303e3bcec195b30e2b62d513 and fixed in 6.1.176 with commit 1017e1c6c6c49cccbcda9bbcfa49e50b0b6dad39 Issue introduced in 3.17 with commit 50a77c658b80e7e3303e3bcec195b30e2b62d513 and fixed in 6.6.143 with commit e9b62996ba537774f68fecfd7eecb5aec1713952 Issue introduced in 3.17 with commit 50a77c658b80e7e3303e3bcec195b30e2b62d513 and fixed in 6.12.93 with commit ae92e334544263a02d9f99e18385e718c44392c9 Issue introduced in 3.17 with commit 50a77c658b80e7e3303e3bcec195b30e2b62d513 and fixed in 6.18.35 with commit 7f95f4792c0dc767fcb8e405391e779ab419d55a Issue introduced in 3.17 with commit 50a77c658b80e7e3303e3bcec195b30e2b62d513 and fixed in 7.0.12 with commit 6c6b989b4ebf22b086fdfcac2163b5cb55e34d8f Issue introduced in 3.17 with commit 50a77c658b80e7e3303e3bcec195b30e2b62d513 and fixed in 7.1 with commit baa0210fb6a9dc3882509a9411b6d284d88fe30e
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-63908
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/input/touchscreen/atmel_mxt_ts.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/862a1a32b5190241fce7a7d20229539a3926f31e https://git.kernel.org/stable/c/5c3681c3abc35cfac6b702251382312c60d96bc2 https://git.kernel.org/stable/c/1017e1c6c6c49cccbcda9bbcfa49e50b0b6dad39 https://git.kernel.org/stable/c/e9b62996ba537774f68fecfd7eecb5aec1713952 https://git.kernel.org/stable/c/ae92e334544263a02d9f99e18385e718c44392c9 https://git.kernel.org/stable/c/7f95f4792c0dc767fcb8e405391e779ab419d55a https://git.kernel.org/stable/c/6c6b989b4ebf22b086fdfcac2163b5cb55e34d8f https://git.kernel.org/stable/c/baa0210fb6a9dc3882509a9411b6d284d88fe30e