KASAN: use-after-free Read in corrupted (4)

50 views
Skip to first unread message

syzbot

unread,
Aug 11, 2020, 8:47:21 AM8/11/20
to linux-...@vger.kernel.org, mi...@redhat.com, pet...@infradead.org, syzkall...@googlegroups.com, wi...@kernel.org
Hello,

syzbot found the following issue on:

HEAD commit: d6efb3ac Merge tag 'tty-5.9-rc1' of git://git.kernel.org/p..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=172b6976900000
kernel config: https://syzkaller.appspot.com/x/.config?x=ff87594cecb7e666
dashboard link: https://syzkaller.appspot.com/bug?extid=48135e34de22e3a82c99
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1373613a900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+48135e...@syzkaller.appspotmail.com

netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
==================================================================
BUG: KASAN: use-after-free in __lock_acquire+0x41d0/0x5640 kernel/locking/lockdep.c:4296
Read of size 8 at addr ffff8880936320a0 by task syz-executor.0/6858

CPU: 1 PID: 6858 Comm: syz-executor.0 Not tainted 5.8.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
dump_sta


---
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 syzk...@googlegroups.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

syzbot

unread,
May 22, 2022, 7:01:22 PM5/22/22
to applic...@thinkbigglobal.in, da...@davemloft.net, gus...@padovan.org, johan....@gmail.com, linux-b...@vger.kernel.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, mar...@holtmann.org, mi...@redhat.com, mma...@suse.com, net...@vger.kernel.org, pet...@infradead.org, syzkall...@googlegroups.com, torv...@linux-foundation.org, wi...@kernel.org
syzbot has found a reproducer for the following issue on:

HEAD commit: eaea45fc0e7b Merge tag 'perf-tools-fixes-for-v5.18-2022-05..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1315c161f00000
kernel config: https://syzkaller.appspot.com/x/.config?x=902c5209311d387c
dashboard link: https://syzkaller.appspot.com/bug?extid=48135e34de22e3a82c99
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=14a076d6f00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12f76a3df00000

The issue was bisected to:

commit c470abd4fde40ea6a0846a2beab642a578c0b8cd
Author: Linus Torvalds <torv...@linux-foundation.org>
Date: Sun Feb 19 22:34:00 2017 +0000

Linux 4.10

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=128bb53a900000
final oops: https://syzkaller.appspot.com/x/report.txt?x=118bb53a900000
console output: https://syzkaller.appspot.com/x/log.txt?x=168bb53a900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+48135e...@syzkaller.appspotmail.com
Fixes: c470abd4fde4 ("Linux 4.10")

traps: syz-executor229[3615] general protection fault ip:7feb96eb56a1 sp:20000fd0 error:0 in syz-executor2295634012[7feb96e75000+84000]

Hillf Danton

unread,
May 22, 2022, 8:09:39 PM5/22/22
to syzbot, linux-...@vger.kernel.org, syzkall...@googlegroups.com
On Sun, 22 May 2022 16:01:21 -0700
The console output attached is too scarce to debug the uaf, so ask syzbot to
produce one.

#syz test git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

syzbot

unread,
May 22, 2022, 8:27:08 PM5/22/22
to hda...@sina.com, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+48135e...@syzkaller.appspotmail.com

Tested on:

commit: 4b0986a3 Linux 5.18
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=facb2be252153c68
dashboard link: https://syzkaller.appspot.com/bug?extid=48135e34de22e3a82c99
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2

Note: no patches were applied.
Note: testing is done by a robot and is best-effort only.

Linus Torvalds

unread,
May 22, 2022, 11:56:38 PM5/22/22
to syzbot, applic...@thinkbigglobal.in, David Miller, gus...@padovan.org, Johan Hedberg, linux-bluetooth, Linux Kbuild mailing list, Linux Kernel Mailing List, Marcel Holtmann, Ingo Molnar, Michal Marek, Netdev, Peter Zijlstra, syzkaller-bugs, Will Deacon
On Sun, May 22, 2022 at 4:01 PM syzbot
<syzbot+48135e...@syzkaller.appspotmail.com> wrote:
>
> The issue was bisected to:
>
> commit c470abd4fde40ea6a0846a2beab642a578c0b8cd
> Author: Linus Torvalds <torv...@linux-foundation.org>
> Date: Sun Feb 19 22:34:00 2017 +0000
>
> Linux 4.10

Heh. That looks very unlikely, so the bisection seems to sadly have
failed at some point.

At least one of the KASAN reports (that "final oops") does look very
much like the bug fixed by commit 1bff51ea59a9 ("Bluetooth: fix
use-after-free error in lock_sock_nested()"), so this may already be
fixed, but who knows...

But that "update Makefile to 4.10" is not the cause...

Linus

Aleksandr Nogikh

unread,
Jun 1, 2022, 9:51:28 AM6/1/22
to Linus Torvalds, syzbot, applic...@thinkbigglobal.in, David Miller, gus...@padovan.org, Johan Hedberg, linux-bluetooth, Linux Kbuild mailing list, Linux Kernel Mailing List, Marcel Holtmann, Ingo Molnar, Michal Marek, Netdev, Peter Zijlstra, syzkaller-bugs, Will Deacon, Dmitry Vyukov, Aleksandr Nogikh
Hi Linus,

Thank you for looking at the syzbot's email!

The bisection info was indeed included in this case by mistake. We have fixed this, now the bot should not mention bisections that point to release commits and thefefore won't be pinging you as the commit author.


Best Regards,
Aleksandr
Reply all
Reply to author
Forward
0 new messages