1
0
Fork 0
alistair23-linux/drivers/w1
Alan Stern c114944d7d USB: w1 ds2490: Fix bug caused by improper use of altsetting array
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-04-25 11:11:41 +02:00
..
masters USB: w1 ds2490: Fix bug caused by improper use of altsetting array 2019-04-25 11:11:41 +02:00
slaves w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size). 2018-10-15 20:50:32 +02:00
Kconfig treewide: surround Kconfig file paths with double quotes 2018-12-22 00:25:54 +09:00
Makefile [PATCH] better CONFIG_W1_SLAVE_DS2433_CRC handling 2006-12-07 08:39:43 -08:00
w1.c w1: core: match sub-nodes of bus masters in devicetree 2018-07-11 18:09:08 +02:00
w1_family.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_int.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_internal.h w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_io.c w1: w1_io.c: fix a kernel-doc warning 2018-05-10 15:42:42 -06:00
w1_netlink.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_netlink.h w1_netlink.h: add support for nested structs 2017-12-21 13:41:47 -07:00