Linux
HID: playstation: Clamp num_touch_reports
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 752038248808a7ff176bbdb668f19ae7d2a9816b, < 0bc4cf1a6ba00fb8c074531b179bc7b97502fbc4
- >= 752038248808a7ff176bbdb668f19ae7d2a9816b, < 9c031b24aed6733b6dcc5d98527875b8654a04e9
- >= 752038248808a7ff176bbdb668f19ae7d2a9816b, < 7812694752a5f295eaa05a093b90a2c332666051
- >= 752038248808a7ff176bbdb668f19ae7d2a9816b, < 208f6d5b1dfd6399bc6af9e11f27f1f496243ed0
- >= 752038248808a7ff176bbdb668f19ae7d2a9816b, < cac61b58a3b6340c52afa06bb15eac033158db2f
Fixed in 0bc4cf1a6ba00fb8c074531b179bc7b97502fbc4, 9c031b24aed6733b6dcc5d98527875b8654a04e9, 7812694752a5f295eaa05a093b90a2c332666051, 208f6d5b1dfd6399bc6af9e11f27f1f496243ed0, cac61b58a3b6340c52afa06bb15eac033158db2f
- 6.2
Fixed in 0, 6.6.140, 6.12.90, 6.18.32, 7.0.9, 7.1
Mitigation
Upgrade Linux to 0bc4cf1a6ba00fb8c074531b179bc7b97502fbc4 or 9c031b24aed6733b6dcc5d98527875b8654a04e9 or 7812694752a5f295eaa05a093b90a2c332666051 or 208f6d5b1dfd6399bc6af9e11f27f1f496243ed0 or cac61b58a3b6340c52afa06bb15eac033158db2f or later.
Upgrade Linux to 0 or 6.6.140 or 6.12.90 or 6.18.32 or 7.0.9 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.