android_kernel_oneplus_msm8998/drivers/w1/masters
Alan Stern 7a52b95090 USB: w1 ds2490: Fix bug caused by improper use of altsetting array
commit c114944d7d67f24e71562fcfc18d550ab787e4d4 upstream.

The syzkaller USB fuzzer spotted a slab-out-of-bounds bug in the
ds2490 driver.  This bug is caused by improper use of the altsetting
array in the usb_interface structure (the array's entries are not
always stored in numerical order), combined with a naive assumption
that all interfaces probed by the driver will have the expected number
of altsettings.

The bug can be fixed by replacing references to the possibly
non-existent intf->altsetting[alt] entry with the guaranteed-to-exist
intf->cur_altsetting entry.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: syzbot+d65f673b847a1a96cdba@syzkaller.appspotmail.com
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-16 19:45:00 +02:00
..
ds1wm.c
ds2482.c
ds2490.c USB: w1 ds2490: Fix bug caused by improper use of altsetting array 2019-05-16 19:45:00 +02:00
Kconfig
Makefile
matrox_w1.c
mxc_w1.c
omap_hdq.c w1: omap-hdq: fix missing bus unregister at removal 2018-11-21 09:27:35 +01:00
w1-gpio.c