[PATCH 00/10] Input: Fix OOB writes, UAFs, NULL derefs, and suspend work bugs (batch 2)

Lee Jones lee at kernel.org
Fri Nov 27 12:09:54 PST 2026


These issues were reported by Sashiko.

This is batch 2 of Input bug fixes, based on input/next.  It addresses
out-of-bounds accesses and underflows in adi, probe and unbind work
UAFs in xpad and aw86927, sysfs information disclosure in stmfts,
NULL dereferences in xen-kbdfront and goodix_berlin, SPI transfer size
underflow in goodix_berlin_spi, and suspend work stopping in drv2665
and drv2667.

Cc: "Pierre-Loup A. Griffais" <pgriffais at valvesoftware.com>
Cc: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig at baylibre.com>
Cc: Adam Buchbinder <adam.buchbinder at gmail.com>
Cc: Alexandre Torgue <alexandre.torgue at foss.st.com>
Cc: Andi Shyti <andi at etezian.org>
Cc: Anthony Liguori <aliguori at us.ibm.com>
Cc: Christoph Fritz <chf.fritz at googlemail.com>
Cc: Dan Murphy <dmurphy at ti.com>
Cc: David Heidelberg <david at ixit.cz>
Cc: Dmitry Torokhov <dmitry.torokhov at gmail.com>
Cc: Dominic Cerquetti <binary1230 at yahoo.com>
Cc: Elliot Tester <elliotctester at gmail.com>
Cc: Franz Lehner <franz at caos.at>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Cc: Griffin Kroah-Hartman <griffin.kroah at fairphone.com>
Cc: Hans de Goede <hansg at kernel.org>
Cc: Ivan Hawkes <blackhawk at ivanhawkes.com>
Cc: Jan Kratochvil <honza at jikos.cz>
Cc: Javier Martinez Canillas <javier at osg.samsung.com>
Cc: Jeff LaBundy <jeff at labundy.com>
Cc: Jens Reidel <adrian at mainlining.org>
Cc: Juergen Gross <jgross at suse.com>
Cc: linux-arm-kernel at lists.infradead.org
Cc: linux-input at vger.kernel.org
Cc: linux-stm32 at st-md-mailman.stormreply.com
Cc: Marko Friedemann <mfr at bmx-chemnitz.de>
Cc: Markus Armbruster <armbru at redhat.com>
Cc: Maxime Coquelin <mcoquelin.stm32 at gmail.com>
Cc: Neil Armstrong <neil.armstrong at linaro.org>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko at epam.com>
Cc: Oliver Schwartz <Oliver.Schwartz at gmx.de>
Cc: Pavel Rojtberg <rojtberg at gmail.com>
Cc: Rob Herring <robh at kernel.org>
Cc: Steven Toth <steve at toth.demon.co.uk>
Cc: Vojtech Pavlik <vojtech at ucw.cz>

Lee Jones (10):
  Input: adi - prevent off-by-one write in adi_read_packet()
  Input: adi - validate axis and button counts in adi_id_decode()
  Input: xpad - cancel presence work on xpad360w_start_input() failure
  Input: aw86927 - use devm_work_autocancel() for haptics play work
  Input: stmfts - fix i2c_smbus_read_i2c_block_data() check in status
    sysfs
  Input: xen-kbdfront - check info->ptr and info->kbd before
    dereferencing
  Input: drv2665 - disable haptics work across suspend and resume
  Input: drv2667 - disable haptics work across suspend and resume
  Input: goodix_berlin_i2c - check i2c_get_match_data() for NULL
  Input: goodix_berlin_spi - validate ic_data and SPI max transfer size

 drivers/input/joystick/adi.c                  | 45 ++++++++++++++++++-
 drivers/input/joystick/xpad.c                 |  6 ++-
 drivers/input/misc/aw86927.c                  |  6 ++-
 drivers/input/misc/drv2665.c                  | 15 ++++---
 drivers/input/misc/drv2667.c                  | 15 ++++---
 drivers/input/misc/xen-kbdfront.c             |  7 +--
 drivers/input/touchscreen/goodix_berlin_i2c.c |  3 ++
 drivers/input/touchscreen/goodix_berlin_spi.c |  6 +++
 drivers/input/touchscreen/stmfts.c            |  5 ++-
 9 files changed, 88 insertions(+), 20 deletions(-)

-- 
2.56.1.839.g22a8290db9-goog




More information about the linux-arm-kernel mailing list