Re: [PATCH] HID: wacom: Avoid using stale array indicies to read contact count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 18 Jan 2022, Jason Gerecke wrote:

> If we ever see a touch report with contact count data we initialize
> several variables used to read the contact count in the pre-report
> phase. These variables are never reset if we process a report which
> doesn't contain a contact count, however. This can cause the pre-
> report function to trigger a read of arbitrary memory (e.g. NULL
> if we're lucky) and potentially crash the driver.
> 
> This commit restores resetting of the variables back to default
> "none" values that were used prior to the commit mentioned
> below.
> 
> Link: https://github.com/linuxwacom/input-wacom/issues/276
> Fixes: 003f50ab673c (HID: wacom: Update last_slot_field during pre_report phase)
> CC: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jason Gerecke <jason.gerecke@xxxxxxxxx>
> Reviewed-by: Ping Cheng <ping.cheng@xxxxxxxxx>

Applied, thank you.

-- 
Jiri Kosina
SUSE Labs




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux