lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 18 Sep 2022 03:24:31 -0700
From:   syzbot <syzbot+43438abe71dab88140c2@...kaller.appspotmail.com>
To:     gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
        linux-usb@...r.kernel.org, syzkaller-bugs@...glegroups.com
Subject: [syzbot] KASAN: use-after-free Read in mon_bin_flush

Hello,

syzbot found the following issue on:

HEAD commit:    a335366bad13 Merge tag 'gpio-fixes-for-v6.0-rc6' of git://..
git tree:       upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=15212ca0880000
kernel config:  https://syzkaller.appspot.com/x/.config?x=98a30118ec9215e9
dashboard link: https://syzkaller.appspot.com/bug?extid=43438abe71dab88140c2
compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=11feb890880000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15a27480880000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+43438abe71dab88140c2@...kaller.appspotmail.com

general protection fault, probably for non-canonical address 0xdffffc00000001fc: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000fe0-0x0000000000000fe7]
CPU: 1 PID: 3614 Comm: syz-executor111 Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:mon_bin_flush+0x131/0x290 drivers/usb/mon/mon_bin.c:885
Code: 48 c1 e9 03 42 80 3c 29 00 0f 85 4f 01 00 00 44 89 f1 81 e1 ff 0f 00 00 48 03 48 08 48 8d 79 24 49 89 cf 48 89 f9 48 c1 e9 03 <42> 0f b6 34 29 48 89 f9 83 e1 07 83 c1 03 40 38 f1 7c 09 40 84 f6
RSP: 0018:ffffc90003bbfd98 EFLAGS: 00010007
RAX: ffff88801d023b60 RBX: ffff888078923000 RCX: 00000000000001fc
RDX: 0000000000000000 RSI: ffffffff859cd539 RDI: 0000000000000fe4
RBP: 00000000fcffee00 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000fcffee00 R11: 0000000000000000 R12: 0000000000000003
R13: dffffc0000000000 R14: 0000000002fb6fc0 R15: 0000000000000fc0
FS:  0000555555576300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff7d93dc736 CR3: 000000001db18000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 mon_bin_ioctl+0x198/0xcc0 drivers/usb/mon/mon_bin.c:1091
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fac26b14639
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:00007fff3a8a4fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fac26b14639
RDX: 00000000200005c0 RSI: 00000000c0109207 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000470 R11: 0000000000000246 R12: 00007fac26ad35e0
R13: 0000000000000000 R14: 00007fff3a8a4ff0 R15: 00007fff3a8a4fe0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mon_bin_flush+0x131/0x290 drivers/usb/mon/mon_bin.c:885
Code: 48 c1 e9 03 42 80 3c 29 00 0f 85 4f 01 00 00 44 89 f1 81 e1 ff 0f 00 00 48 03 48 08 48 8d 79 24 49 89 cf 48 89 f9 48 c1 e9 03 <42> 0f b6 34 29 48 89 f9 83 e1 07 83 c1 03 40 38 f1 7c 09 40 84 f6
RSP: 0018:ffffc90003bbfd98 EFLAGS: 00010007
RAX: ffff88801d023b60 RBX: ffff888078923000 RCX: 00000000000001fc
RDX: 0000000000000000 RSI: ffffffff859cd539 RDI: 0000000000000fe4
RBP: 00000000fcffee00 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000fcffee00 R11: 0000000000000000 R12: 0000000000000003
R13: dffffc0000000000 R14: 0000000002fb6fc0 R15: 0000000000000fc0
FS:  0000555555576300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff7d93dc736 CR3: 000000001db18000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 c1 e9 03          	shr    $0x3,%rcx
   4:	42 80 3c 29 00       	cmpb   $0x0,(%rcx,%r13,1)
   9:	0f 85 4f 01 00 00    	jne    0x15e
   f:	44 89 f1             	mov    %r14d,%ecx
  12:	81 e1 ff 0f 00 00    	and    $0xfff,%ecx
  18:	48 03 48 08          	add    0x8(%rax),%rcx
  1c:	48 8d 79 24          	lea    0x24(%rcx),%rdi
  20:	49 89 cf             	mov    %rcx,%r15
  23:	48 89 f9             	mov    %rdi,%rcx
  26:	48 c1 e9 03          	shr    $0x3,%rcx
* 2a:	42 0f b6 34 29       	movzbl (%rcx,%r13,1),%esi <-- trapping instruction
  2f:	48 89 f9             	mov    %rdi,%rcx
  32:	83 e1 07             	and    $0x7,%ecx
  35:	83 c1 03             	add    $0x3,%ecx
  38:	40 38 f1             	cmp    %sil,%cl
  3b:	7c 09                	jl     0x46
  3d:	40 84 f6             	test   %sil,%sil


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@...glegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ