android_kernel_motorola_sm6375/drivers/hid
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lee Jones c1957fce68 BACKPORT: HID: steam: Prevent NULL pointer dereference in steam_{recv,send}_report
commit cd11d1a6114bd4bc6450ae59f6e110ec47362126 upstream.

It is possible for a malicious device to forgo submitting a Feature
Report.  The HID Steam driver presently makes no prevision for this
and de-references the 'struct hid_report' pointer obtained from the
HID devices without first checking its validity.  Let's change that.

Bug: 223455965
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org
Fixes: c164d6abf3 ("HID: add driver for Valve Steam Controller")
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ica12507b87309a7c46b4cab6fcfe4499cd96f45d
2022-10-11 11:26:44 +01:00
..
i2c-hid HID: i2c-hid: fix GET/SET_REPORT for unnumbered reports 2022-04-15 14:18:12 +02:00
intel-ish-hid HID: intel-ish-hid: Use dma_alloc_coherent for firmware update 2022-04-15 14:17:58 +02:00
usbhid HID: usbhid: free raw_report buffers in usbhid_stop 2021-10-06 15:42:39 +02:00
hid-a4tech.c
hid-accutouch.c
hid-alps.c HID: alps: fix error return code in alps_input_configured() 2021-04-28 13:19:15 +02:00
hid-apple.c HID: apple: Do not reset quirks when the Fn key is not found 2022-01-27 09:19:41 +01:00
hid-appleir.c
hid-asus.c HID: add hid_is_usb() function to make it simpler for USB detection 2021-12-14 14:48:58 +01:00
hid-aureal.c
hid-axff.c
hid-belkin.c
hid-betopff.c HID: betop: fix slab-out-of-bounds Write in betop_probe 2021-10-06 15:42:39 +02:00
hid-bigbenff.c HID: bigben: fix slab-out-of-bounds Write in bigben_probe 2022-06-14 18:11:27 +02:00
hid-cherry.c
hid-chicony.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-cmedia.c
hid-core.c FROMLIST: HID: Support Microsoft SPI touch digitizer driver 2021-09-14 15:46:30 -07:00
hid-corsair.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-cougar.c
hid-cp2112.c
hid-creative-sb0540.c
hid-cypress.c HID: cypress: Support Varmilo Keyboards' media hotkeys 2020-12-02 08:49:47 +01:00
hid-debug.c HID: add mapping for KEY_ALL_APPLICATIONS 2022-03-08 19:07:50 +01:00
hid-dr.c
hid-elan.c HID: elan: Fix potential double free in elan_input_configured 2022-06-14 18:11:33 +02:00
hid-elecom.c
hid-elo.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-emsff.c
hid-ezkey.c
hid-gaff.c
hid-gembird.c
hid-generic.c
hid-gfrm.c
hid-google-hammer.c HID: google: add eel USB id 2021-12-14 14:48:58 +01:00
hid-gt683r.c HID: gt683r: add missing MODULE_DEVICE_TABLE 2021-06-18 09:58:58 +02:00
hid-gyration.c
hid-holtek-kbd.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-holtek-mouse.c HID: holtek: fix mouse probing 2021-12-29 12:23:33 +01:00
hid-holtekff.c
hid-hyperv.c
hid-icade.c
hid-ids.h This is the 5.4.181 stable release 2022-02-23 12:17:54 +01:00
hid-input.c HID: add mapping for KEY_ALL_APPLICATIONS 2022-03-08 19:07:50 +01:00
hid-ite.c HID: ite: Replace ABS_MISC 120/121 events with touchpad on/off keypresses 2020-12-02 08:49:47 +01:00
hid-jabra.c
hid-kensington.c
hid-keytouch.c
hid-kye.c
hid-lcpower.c
hid-led.c HID: hid-led: fix maximum brightness for Dream Cheeky 2022-06-14 18:11:33 +02:00
hid-lenovo.c
hid-lg.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-lg.h
hid-lg2ff.c
hid-lg3ff.c
hid-lg4ff.c
hid-lg4ff.h
hid-lgff.c
hid-logitech-dj.c HID: logitech-dj: add new lightspeed receiver id 2022-04-15 14:17:56 +02:00
hid-logitech-hidpp.c HID: logitech-hidpp: Add HIDPP_CONSUMER_VENDOR_KEYS quirk for the Dinovo Edge 2020-12-02 08:49:48 +01:00
hid-macally.c
hid-magicmouse.c HID: magicmouse: fix NULL-deref on disconnect 2021-06-10 13:37:10 +02:00
hid-maltron.c
hid-mf.c HID: mf: add support for 0079:1846 Mayflash/Dragonrise USB Gamecube Adapter 2021-03-11 14:06:50 +01:00
hid-microsoft.c FROMLIST: HID: Support Microsoft SPI touch digitizer driver 2021-09-14 15:46:30 -07:00
hid-monterey.c
hid-multitouch.c HID: multitouch: Add support for Google Whiskers Touchpad 2022-06-06 08:33:51 +02:00
hid-nintendo.c
hid-nti.c
hid-ntrig.c
hid-ortek.c
hid-penmount.c
hid-petalynx.c
hid-picolcd.h
hid-picolcd_backlight.c
hid-picolcd_cir.c
hid-picolcd_core.c
hid-picolcd_debugfs.c
hid-picolcd_fb.c
hid-picolcd_lcd.c
hid-picolcd_leds.c
hid-pl.c
hid-plantronics.c HID: plantronics: Workaround for double volume key presses 2021-05-14 09:44:26 +02:00
hid-playstation.c UPSTREAM: HID: playstation: add DualSense player LED support. 2021-03-12 17:11:37 -08:00
hid-primax.c
hid-prodikeys.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-quirks.c This is the 5.4.181 stable release 2022-02-23 12:17:54 +01:00
hid-redragon.c
hid-retrode.c
hid-rmi.c
hid-roccat-arvo.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-arvo.h
hid-roccat-common.c
hid-roccat-common.h
hid-roccat-isku.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-isku.h
hid-roccat-kone.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-kone.h
hid-roccat-koneplus.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-koneplus.h
hid-roccat-konepure.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-kovaplus.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-kovaplus.h
hid-roccat-lua.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-lua.h
hid-roccat-pyra.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-pyra.h
hid-roccat-ryos.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-savu.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-roccat-savu.h
hid-roccat.c
hid-saitek.c
hid-samsung.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-sensor-custom.c
hid-sensor-hub.c HID: hid-sensor-hub: Return error for hid_set_field() failure 2021-06-18 09:58:58 +02:00
hid-sjoy.c
hid-sony.c
hid-speedlink.c
hid-steam.c BACKPORT: HID: steam: Prevent NULL pointer dereference in steam_{recv,send}_report 2022-10-11 11:26:44 +01:00
hid-steelseries.c
hid-sunplus.c
hid-tivo.c
hid-tmff.c
hid-topseed.c
hid-twinhan.c
hid-u2fzero.c HID: add hid_is_usb() function to make it simpler for USB detection 2021-12-14 14:48:58 +01:00
hid-uclogic-core.c HID: check for valid USB device for many HID drivers 2021-12-14 14:48:59 +01:00
hid-uclogic-params.c HID: hid-uclogic-params: Invalid parameter check in uclogic_params_frame_init_v1_buttonpad 2022-01-27 09:19:36 +01:00
hid-uclogic-params.h
hid-uclogic-rdesc.c
hid-uclogic-rdesc.h
hid-udraw-ps3.c
hid-viewsonic.c
hid-waltop.c
hid-wiimote-core.c
hid-wiimote-debug.c
hid-wiimote-modules.c
hid-wiimote.h
hid-xinmo.c
hid-zpff.c
hid-zydacron.c
hidraw.c
Kconfig This is the 5.4.170 stable release 2022-01-05 13:23:05 +01:00
Makefile UPSTREAM: HID: playstation: initial DualSense USB support. 2021-03-12 17:11:35 -08:00
uhid.c HID: uhid: Fix worker destroying device without any protection 2022-01-27 09:19:26 +01:00
wacom.h
wacom_sys.c HID: wacom: fix problems when device is not a valid USB device 2021-12-14 14:48:59 +01:00
wacom_wac.c HID: wacom: Avoid using stale array indicies to read contact count 2022-01-27 09:19:26 +01:00
wacom_wac.h HID: wacom: Use "Confidence" flag to prevent reporting invalid contacts 2021-12-01 09:23:28 +01:00