syzbot


general protection fault in ieee802154_llsec_parse_key_id

Status: fixed on 2021/05/17 08:49
Reported-by: syzbot+f462147007035c7802fc@syzkaller.appspotmail.com
Fix commit: 37580e6837c0 net: ieee802154: nl-mac: fix check on panid
First crash: 1370d, last: 1315d
Fix bisection: fixed by (bisect log) :
commit 37580e6837c0b43291b2dde2efd5bc45e29c7e37
Author: Alexander Aring <aahringo@redhat.com>
Date: Sun Feb 28 15:18:03 2021 +0000

  net: ieee802154: nl-mac: fix check on panid

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in ieee802154_llsec_parse_key_id C done 64 1317d 1368d 1/1 fixed on 2021/05/14 02:49
upstream general protection fault in ieee802154_llsec_parse_key_id wpan C inconclusive 92 1267d 1368d 20/28 fixed on 2021/11/10 00:50

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7973 Comm: syz-executor007 Not tainted 4.14.221-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a8e7e300 task.stack: ffff8880b2c20000
RIP: 0010:nla_get_u16 include/net/netlink.h:1100 [inline]
RIP: 0010:nla_get_shortaddr net/ieee802154/nl-mac.c:56 [inline]
RIP: 0010:ieee802154_llsec_parse_key_id+0x15f/0x820 net/ieee802154/nl-mac.c:567
RSP: 0018:ffff8880b2c27688 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: ffff8880b2c27720 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: ffff8880b2c27850 R08: 0000000000000001 R09: ffff8880b2c27720
R10: ffff8880b2c27737 R11: ffff8880a8e7e300 R12: 1ffff11016584ed1
R13: 0000000000000000 R14: ffff88823a0e3040 R15: ffffffff89ec2778
FS:  000000000065d300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000030c CR3: 0000000095435000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 llsec_remove_key net/ieee802154/nl-mac.c:904 [inline]
 ieee802154_nl_llsec_change net/ieee802154/nl-mac.c:832 [inline]
 ieee802154_llsec_del_key+0xf5/0x210 net/ieee802154/nl-mac.c:912
 genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600
 genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625
 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:636
 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
 netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x43fa99
RSP: 002b:00007ffdc4666a48 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fa99
RDX: 0000000000004054 RSI: 0000000020000440 RDI: 0000000000000004
RBP: 0000000000403500 R08: 00000000ffffffff R09: 00000000004004a0
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000403590
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Code: 97 05 00 00 4d 8b 6e 30 4d 85 ed 0f 84 ce 04 00 00 e8 56 87 7c fa 49 8d 7d 04 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 
RIP: nla_get_u16 include/net/netlink.h:1100 [inline] RSP: ffff8880b2c27688
RIP: nla_get_shortaddr net/ieee802154/nl-mac.c:56 [inline] RSP: ffff8880b2c27688
RIP: ieee802154_llsec_parse_key_id+0x15f/0x820 net/ieee802154/nl-mac.c:567 RSP: ffff8880b2c27688
---[ end trace 056aff63b963778c ]---

Crashes (101):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/19 16:40 linux-4.14.y 29c52025152b f689d40a .config console log report syz C ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/02 02:30 linux-4.14.y bd634aa64163 6a81331a .config console log report syz C ci2-linux-4-14 KASAN: null-ptr-deref Read in ieee802154_llsec_parse_key_id
2021/04/16 00:13 linux-4.14.y 958e517f4e16 c59079a6 .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/15 06:24 linux-4.14.y 958e517f4e16 fcdb12ba .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/14 12:19 linux-4.14.y 958e517f4e16 3134b37f .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/13 12:48 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/13 06:41 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/09 22:03 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/09 18:15 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/09 07:03 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/09 02:09 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/08 07:02 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/07 21:07 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/06 10:23 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/06 09:19 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/05 18:34 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/05 07:41 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/04 05:02 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/03 22:25 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/02 12:36 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/02 10:17 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/01 18:29 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/31 16:51 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/31 04:28 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/30 21:04 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/30 08:06 linux-4.14.y 670d6552eda8 6a81331a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/29 02:10 linux-4.14.y 670d6552eda8 a8529b82 .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/27 07:04 linux-4.14.y 670d6552eda8 a8529b82 .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/26 23:30 linux-4.14.y 670d6552eda8 a8529b82 .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/25 05:55 linux-4.14.y 670d6552eda8 607e3baf .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/24 23:54 linux-4.14.y 670d6552eda8 607e3baf .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/24 20:09 linux-4.14.y 670d6552eda8 607e3baf .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/24 02:29 linux-4.14.y cb83ddcd5332 e613994b .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/22 21:48 linux-4.14.y cb83ddcd5332 8092f30d .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/21 04:07 linux-4.14.y cb83ddcd5332 17810eae .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/20 03:32 linux-4.14.y cb83ddcd5332 3d01c4de .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/18 15:31 linux-4.14.y cb83ddcd5332 7216542e .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/03/17 15:52 linux-4.14.y c7150cd2fa8c fdb2bb2c .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/02/19 16:27 linux-4.14.y 29c52025152b f689d40a .config console log report info ci2-linux-4-14 general protection fault in ieee802154_llsec_parse_key_id
2021/04/15 22:05 linux-4.14.y 958e517f4e16 c59079a6 .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in ieee802154_llsec_parse_key_id
2021/04/13 01:09 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in ieee802154_llsec_parse_key_id
2021/04/11 22:22 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in ieee802154_llsec_parse_key_id
2021/04/10 21:49 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in ieee802154_llsec_parse_key_id
2021/04/04 12:05 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in ieee802154_llsec_parse_key_id
2021/03/29 16:25 linux-4.14.y 670d6552eda8 a8529b82 .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in ieee802154_llsec_parse_key_id
2021/03/26 01:47 linux-4.14.y 670d6552eda8 6a383ecf .config console log report info ci2-linux-4-14 KASAN: null-ptr-deref Read in ieee802154_llsec_parse_key_id
* Struck through repros no longer work on HEAD.