CVE-2026-46232: HID: playstation: Clamp num_touch_reports
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
HID: playstation: Clamp num_touch_reports
A device would never lie about the number of touch reports would it?
If it does the loop in dualshock4_parse_report will read off the end of the touch_reports array, up to about 2 KiB for the maximum number of 256 loop iteraions. The data that is read is emitted via evdev if the DS4_TOUCH_POINT_INACTIVE bit happens to be set. Protect against this by clamping the num_touch_reports value provided by the device to the maximum size of the touch_reports array.
The Linux kernel CVE team has assigned CVE-2026-46232 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 752038248808a7ff176bbdb668f19ae7d2a9816b and fixed in 6.6.140 with commit 0bc4cf1a6ba00fb8c074531b179bc7b97502fbc4 Issue introduced in 6.2 with commit 752038248808a7ff176bbdb668f19ae7d2a9816b and fixed in 6.12.90 with commit 9c031b24aed6733b6dcc5d98527875b8654a04e9 Issue introduced in 6.2 with commit 752038248808a7ff176bbdb668f19ae7d2a9816b and fixed in 6.18.32 with commit 7812694752a5f295eaa05a093b90a2c332666051 Issue introduced in 6.2 with commit 752038248808a7ff176bbdb668f19ae7d2a9816b and fixed in 7.0.9 with commit 208f6d5b1dfd6399bc6af9e11f27f1f496243ed0 Issue introduced in 6.2 with commit 752038248808a7ff176bbdb668f19ae7d2a9816b and fixed in 7.1-rc4 with commit cac61b58a3b6340c52afa06bb15eac033158db2f
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-46232
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/hid/hid-playstation.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/0bc4cf1a6ba00fb8c074531b179bc7b97502fbc4 https://git.kernel.org/stable/c/9c031b24aed6733b6dcc5d98527875b8654a04e9 https://git.kernel.org/stable/c/7812694752a5f295eaa05a093b90a2c332666051 https://git.kernel.org/stable/c/208f6d5b1dfd6399bc6af9e11f27f1f496243ed0 https://git.kernel.org/stable/c/cac61b58a3b6340c52afa06bb15eac033158db2f