milos-linux/drivers
T.J. Mercier cac61b58a3 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.

Fixes: 7520382488 ("HID: playstation: add DualShock4 touchpad support.")
Cc: stable@vger.kernel.org
Reported-by: Xingyu Jin <xingyuj@google.com>
Signed-off-by: T.J. Mercier <tjmercier@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
2026-05-12 17:54:48 +02:00
..
accel drm for v7.1-rc1 2026-04-15 08:45:00 -07:00
accessibility
acpi arm64 updates for 7.1: 2026-04-14 16:48:56 -07:00
amba
android mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
ata ata changes for 7.1-rc1 2026-04-15 15:03:01 -07:00
atm
auxdisplay
base regmap: Updates for v7.1 2026-04-15 14:27:51 -07:00
bcma
block mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
bluetooth
bus soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
cache
cdrom
cdx
char mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
clk Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
clocksource
comedi mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
connector
counter
cpufreq tracing updates for v7.1: 2026-04-17 09:43:12 -07:00
cpuidle powerpc updates for 7.1 2026-04-14 17:10:15 -07:00
crypto This update includes the following changes: 2026-04-15 15:22:26 -07:00
cxl
dax
dca
devfreq
dibs
dio
dma dmaengine updates for v7.1 2026-04-17 10:29:01 -07:00
dma-buf dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
dpll
edac - Add new AMD MCA bank names and types to the MCA code, preceded by a clean 2026-04-14 15:32:39 -07:00
eisa
extcon
firewire
firmware soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
fpga
fsi
fwctl
gnss
gpib
gpio soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
gpu mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
greybus
hid HID: playstation: Clamp num_touch_reports 2026-05-12 17:54:48 +02:00
hsi
hte
hv mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
hwmon hwmon updates for 7.1 2026-04-15 14:37:32 -07:00
hwspinlock
hwtracing mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
i2c tracing updates for v7.1: 2026-04-17 09:43:12 -07:00
i3c
idle
iio hwmon updates for 7.1 2026-04-15 14:37:32 -07:00
infiniband fwctl 7.1 merge window pull request 2026-04-16 21:15:56 -07:00
input Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
interconnect
iommu dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
ipack
irqchip Arm: 2026-04-17 07:18:03 -07:00
isdn
leds
macintosh
mailbox
mcb
md Device Mapper patches for 7.1 2026-04-15 15:11:05 -07:00
media [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
memory dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
memstick
message
mfd soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
misc pci-v7.1-changes 2026-04-15 14:41:21 -07:00
mmc
most
mtd Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
mux
net fwctl 7.1 merge window pull request 2026-04-16 21:15:56 -07:00
nfc gpio updates for v7.1-rc1 2026-04-13 20:10:58 -07:00
ntb pci-v7.1-changes 2026-04-15 14:41:21 -07:00
nubus
nvdimm
nvme
nvmem
of dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
opp
parisc
parport
pci pci-v7.1-changes 2026-04-15 14:41:21 -07:00
pcmcia
peci
perf arm64 updates for 7.1: 2026-04-14 16:48:56 -07:00
phy phy-for-7.1 2026-04-17 10:22:08 -07:00
pinctrl Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
platform chrome-platform: Updates for v7.1 2026-04-15 14:10:40 -07:00
pmdomain
pnp
power m68k updates for v7.1 2026-04-16 08:11:01 -07:00
powercap
pps
ps3
ptp
pwm pwm: Changes for v7.1-rc1 2026-04-15 14:13:31 -07:00
rapidio
ras
regulator regulator: Updates for v7.1 2026-04-15 14:32:12 -07:00
remoteproc
resctrl arm64 updates for 7.1: 2026-04-14 16:48:56 -07:00
reset Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
rpmsg
rtc
s390 Driver core changes for 7.1-rc1 2026-04-13 19:03:11 -07:00
sbus
scsi Networking changes for 7.1. 2026-04-14 18:36:10 -07:00
sh
siox
slimbus
soc soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
soundwire soundwire updates for 7.1 2026-04-17 10:16:53 -07:00
spi tracing updates for v7.1: 2026-04-17 09:43:12 -07:00
spmi
ssb
staging mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
target mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
tc
tee soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
thermal bitmap updates for v7.1 2026-04-14 08:55:18 -07:00
thunderbolt
tty xen: branch for v7.1-rc1 2026-04-15 15:16:39 -07:00
ufs
uio
usb
vdpa
vfio VFIO updates for v7.1-rc1 2026-04-16 08:01:16 -07:00
vhost
video drm for v7.1-rc1 2026-04-15 08:45:00 -07:00
virt Arm: 2026-04-17 07:18:03 -07:00
virtio mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
w1
watchdog
xen dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
zorro
Kconfig
Makefile