syzbot


KMSAN: kernel-usb-infoleak in hid_submit_ctrl

Status: fixed on 2021/11/10 00:50
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+7c2bb71996f95a82524c@syzkaller.appspotmail.com
Fix commit: 6be388f4a35d HID: usbhid: fix info leak in hid_submit_ctrl
First crash: 1879d, last: 1262d
Duplicate bugs (2)
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
KASAN: slab-out-of-bounds Write in hid_report_raw_event input usb C 3 1773d 1885d 0/28 closed as dup on 2019/09/19 18:28
WARNING in __alloc_pages_nodemask mm C 2496 1396d 1873d 0/28 closed as dup on 2019/09/19 18:29
Discussions (20)
Title Replies (including bot) Last reply
[PATCH 4.4 00/57] 4.4.274-rc1 review 65 (65) 2021/07/10 14:59
[PATCH 4.19 000/109] 4.19.196-rc1 review 115 (115) 2021/07/01 10:21
[PATCH 4.14 00/88] 4.14.238-rc1 review 92 (92) 2021/06/30 06:19
[PATCH 4.9 00/71] 4.9.274-rc1 review 77 (77) 2021/06/29 23:43
[PATCH 5.10 00/38] 5.10.45-rc1 review 50 (50) 2021/06/19 13:06
[PATCH 5.4 00/28] 5.4.127-rc1 review 36 (36) 2021/06/18 00:35
[PATCH 5.12 00/48] 5.12.12-rc1 review 55 (55) 2021/06/17 21:40
[PATCH AUTOSEL 4.4 01/14] HID: hid-sensor-hub: Return error for hid_set_field() failure 14 (14) 2021/06/07 16:16
[PATCH AUTOSEL 4.9 01/15] net: ieee802154: fix null deref in parse dev addr 15 (15) 2021/06/07 16:15
[PATCH AUTOSEL 4.14 01/18] net: ieee802154: fix null deref in parse dev addr 18 (18) 2021/06/07 16:15
[PATCH AUTOSEL 4.19 01/21] net: ieee802154: fix null deref in parse dev addr 21 (21) 2021/06/07 16:14
[PATCH AUTOSEL 5.4 01/29] net: ieee802154: fix null deref in parse dev addr 29 (29) 2021/06/07 16:14
[PATCH AUTOSEL 5.10 01/39] net: ieee802154: fix null deref in parse dev addr 39 (39) 2021/06/07 16:13
[PATCH AUTOSEL 5.12 01/49] net: ieee802154: fix null deref in parse dev addr 49 (49) 2021/06/07 16:12
[PATCH] usbhid: fix info leak in hid_submit_ctrl 6 (6) 2021/05/05 13:52
Reminder: 45 active syzbot reports in usb subsystem 1 (1) 2019/11/19 04:27
Reminder: 67 active syzbot reports in usb subsystem 1 (1) 2019/10/04 03:38
WARNING in __alloc_pages_nodemask 3 (4) 2019/09/19 18:29
KASAN: slab-out-of-bounds Write in hid_report_raw_event 1 (2) 2019/09/19 18:28
KMSAN: kernel-usb-infoleak in hid_submit_ctrl 1 (2) 2019/09/19 18:27
Last patch testing requests (1)
Created Duration User Patch Repo Result
2020/09/15 05:01 20m brookebasile@gmail.com https://github.com/google/kmsan.git master OK

Sample crash report:
=====================================================
BUG: KMSAN: kernel-usb-infoleak in kmsan_handle_urb+0x28/0x40 mm/kmsan/kmsan_hooks.c:303
CPU: 1 PID: 8218 Comm: syz-executor502 Not tainted 5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x24c/0x2e0 lib/dump_stack.c:120
 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118
 kmsan_internal_check_memory+0x48c/0x520 mm/kmsan/kmsan.c:437
 kmsan_handle_urb+0x28/0x40 mm/kmsan/kmsan_hooks.c:303
 usb_submit_urb+0x89f/0x2590 drivers/usb/core/urb.c:421
 hid_submit_ctrl+0xbe2/0x11e0 drivers/hid/usbhid/hid-core.c:416
 usbhid_restart_ctrl_queue+0x3e9/0x5c0 drivers/hid/usbhid/hid-core.c:258
 __usbhid_submit_report drivers/hid/usbhid/hid-core.c:603 [inline]
 usbhid_submit_report+0xa6c/0x13a0 drivers/hid/usbhid/hid-core.c:640
 usbhid_init_reports+0xf1/0x5b0 drivers/hid/usbhid/hid-core.c:780
 hiddev_ioctl+0x1167/0x3a80 drivers/hid/usbhid/hiddev.c:689
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x311/0x4d0 fs/ioctl.c:739
 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:739
 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x445269
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe87f8be8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 0000000000445269
RDX: 0000000000000000 RSI: 0000000000004805 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000001 R09: 00007fffe87f8d88
R10: 000000000000000f R11: 0000000000000246 R12: 00000000004042c0
R13: 431bde82d7b634db R14: 00000000004b3018 R15: 00000000004004a0

Uninit was created at:
 kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121
 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274
 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044
 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277
 alloc_pages include/linux/gfp.h:561 [inline]
 kmalloc_order+0xaa/0x3e0 mm/slab_common.c:902
 kmalloc_order_trace+0x80/0x1f0 mm/slab_common.c:918
 kmalloc_large include/linux/slab.h:483 [inline]
 __kmalloc+0x416/0x550 mm/slub.c:4061
 kmalloc include/linux/slab.h:559 [inline]
 hcd_buffer_alloc+0x276/0x5e0 drivers/usb/core/buffer.c:134
 usb_alloc_coherent+0x11a/0x190 drivers/usb/core/usb.c:929
 hid_alloc_buffers drivers/hid/usbhid/hid-core.c:864 [inline]
 usbhid_start+0x106c/0x3ee0 drivers/hid/usbhid/hid-core.c:1090
 hid_hw_start+0xa6/0x2a0 drivers/hid/hid-core.c:2051
 cmhid_probe+0x218/0x3e0 drivers/hid/hid-cmedia.c:123
 hid_device_probe+0x480/0x940 drivers/hid/hid-core.c:2284
 really_probe+0xd16/0x24d0 drivers/base/dd.c:557
 driver_probe_device+0x29d/0x3a0 drivers/base/dd.c:743
 __device_attach_driver+0x63f/0x830 drivers/base/dd.c:849
 bus_for_each_drv+0x2c8/0x3f0 drivers/base/bus.c:431
 __device_attach+0x56a/0x890 drivers/base/dd.c:917
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:964
 bus_probe_device+0x17e/0x3d0 drivers/base/bus.c:491
 device_add+0x2c15/0x31d0 drivers/base/core.c:3242
 hid_add_device+0x15f0/0x1760 drivers/hid/hid-core.c:2440
 usbhid_probe+0x153e/0x1860 drivers/hid/usbhid/hid-core.c:1409
 usb_probe_interface+0xfcc/0x1520 drivers/usb/core/driver.c:396
 really_probe+0xe15/0x24d0 drivers/base/dd.c:561
 driver_probe_device+0x29d/0x3a0 drivers/base/dd.c:743
 __device_attach_driver+0x63f/0x830 drivers/base/dd.c:849
 bus_for_each_drv+0x2c8/0x3f0 drivers/base/bus.c:431
 __device_attach+0x56a/0x890 drivers/base/dd.c:917
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:964
 bus_probe_device+0x17e/0x3d0 drivers/base/bus.c:491
 device_add+0x2c15/0x31d0 drivers/base/core.c:3242
 usb_set_configuration+0x3872/0x3eb0 drivers/usb/core/message.c:2164
 usb_generic_driver_probe+0x138/0x300 drivers/usb/core/generic.c:238
 usb_probe_device+0x317/0x570 drivers/usb/core/driver.c:293
 really_probe+0xe15/0x24d0 drivers/base/dd.c:561
 driver_probe_device+0x29d/0x3a0 drivers/base/dd.c:743
 __device_attach_driver+0x63f/0x830 drivers/base/dd.c:849
 bus_for_each_drv+0x2c8/0x3f0 drivers/base/bus.c:431
 __device_attach+0x56a/0x890 drivers/base/dd.c:917
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:964
 bus_probe_device+0x17e/0x3d0 drivers/base/bus.c:491
 device_add+0x2c15/0x31d0 drivers/base/core.c:3242
 usb_new_device+0x1bd4/0x2a30 drivers/usb/core/hub.c:2555
 hub_port_connect drivers/usb/core/hub.c:5223 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5363 [inline]
 port_event drivers/usb/core/hub.c:5509 [inline]
 hub_event+0x5b99/0x8870 drivers/usb/core/hub.c:5591
 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275
 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421
 kthread+0x521/0x560 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Bytes 0-16383 of 16384 are uninitialized
Memory access of size 16384 starts at ffff88811ec2c000
=====================================================

Crashes (839):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/04 02:06 https://github.com/google/kmsan.git master 4ebaab5fb428 ad61f371 .config console log report syz C ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2019/10/27 18:46 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report syz C ci-upstream-kmsan-gce
2019/10/17 07:23 https://github.com/google/kmsan.git master c24534505750 8c88c9c1 .config console log report syz C ci-upstream-kmsan-gce
2019/09/10 11:37 https://github.com/google/kmsan.git master 014077b5cd62 a60cb4cd .config console log report syz C ci-upstream-kmsan-gce
2021/05/19 21:13 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/19 18:11 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/18 16:42 https://github.com/google/kmsan.git master bdefec9ab855 a343ba6b .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/17 11:40 https://github.com/google/kmsan.git master bdefec9ab855 a2eb125d .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/17 05:19 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/17 04:17 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/16 23:38 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/16 11:31 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/16 10:11 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/16 02:05 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/15 18:28 https://github.com/google/kmsan.git master bdefec9ab855 93f844de .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/15 12:39 https://github.com/google/kmsan.git master bdefec9ab855 93f844de .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/15 08:14 https://github.com/google/kmsan.git master bdefec9ab855 8bdd5343 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/15 06:06 https://github.com/google/kmsan.git master bdefec9ab855 8bdd5343 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/15 00:51 https://github.com/google/kmsan.git master bdefec9ab855 8bdd5343 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/14 23:03 https://github.com/google/kmsan.git master bdefec9ab855 8bdd5343 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/14 18:00 https://github.com/google/kmsan.git master bdefec9ab855 8bdd5343 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/13 15:25 https://github.com/google/kmsan.git master bdefec9ab855 ed7d41c5 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/12 01:10 https://github.com/google/kmsan.git master bdefec9ab855 b3c3bb8e .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/11 03:28 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/10 19:46 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/10 18:42 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/10 17:34 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/10 16:27 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/10 15:01 https://github.com/google/kmsan.git master 4ebaab5fb428 ca873091 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/10 11:23 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/09 22:50 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/08 14:47 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/08 09:49 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/07 07:28 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/07 05:26 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/07 01:29 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/07 00:28 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/06 22:13 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/06 14:19 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/06 13:11 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/19 15:00 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/17 18:12 https://github.com/google/kmsan.git master bdefec9ab855 a2eb125d .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/16 17:18 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/14 22:00 https://github.com/google/kmsan.git master bdefec9ab855 8bdd5343 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/14 05:58 https://github.com/google/kmsan.git master bdefec9ab855 80f9b418 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/12 19:58 https://github.com/google/kmsan.git master bdefec9ab855 da958a4d .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/10 11:16 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/09 15:10 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/07 08:51 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/06 12:01 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/05/06 10:50 https://github.com/google/kmsan.git master 4ebaab5fb428 06c27ff5 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-usb-infoleak in hid_submit_ctrl
2021/01/16 13:29 https://github.com/google/kmsan.git master 73d62e81b476 65a7a854 .config console log report info ci-upstream-kmsan-gce
2019/09/10 09:49 https://github.com/google/kmsan.git master 014077b5cd62 a60cb4cd .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.