================================================================== BUG: KASAN: use-after-free in skcipher_request_set_tfm include/crypto/skcipher.h:499 [inline] BUG: KASAN: use-after-free in crypto_aead_copy_sgl crypto/algif_aead.c:85 [inline] BUG: KASAN: use-after-free in _aead_recvmsg crypto/algif_aead.c:210 [inline] BUG: KASAN: use-after-free in aead_recvmsg+0x1552/0x1970 crypto/algif_aead.c:313 Read of size 4 at addr ffff8801c54bb3dc by task syzkaller579572/3669 CPU: 1 PID: 3669 Comm: syzkaller579572 Not tainted 4.14.0+ #130 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x25b/0x340 mm/kasan/report.c:409 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:429 skcipher_request_set_tfm include/crypto/skcipher.h:499 [inline] crypto_aead_copy_sgl crypto/algif_aead.c:85 [inline] _aead_recvmsg crypto/algif_aead.c:210 [inline] aead_recvmsg+0x1552/0x1970 crypto/algif_aead.c:313 sock_recvmsg_nosec net/socket.c:805 [inline] sock_recvmsg+0xc9/0x110 net/socket.c:812 ___sys_recvmsg+0x29b/0x630 net/socket.c:2207 __sys_recvmsg+0xe2/0x210 net/socket.c:2252 SYSC_recvmsg net/socket.c:2264 [inline] SyS_recvmsg+0x2d/0x50 net/socket.c:2259 entry_SYSCALL_64_fastpath+0x1f/0x96 BUG: unable to handle kernel NULL pointer dereference at (null) IP: (null) PGD 1c50fd067 P4D 1c50fd067 PUD 1c5795067 PMD 0 Oops: 0010 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 3704 Comm: syzkaller579572 Not tainted 4.14.0+ #130 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801c4804180 task.stack: ffff8801c47b8000 RIP: 0010: (null) RSP: 0018:ffff8801c47bf960 EFLAGS: 00010292 RAX: ffff8801c7977cc0 RBX: 1ffff100388f7f2d RCX: ffffffff823a7981 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8801c47bf968 RBP: ffff8801c47bfb00 R08: 0000000000000000 R09: ffff8801c4807310 R10: 0000000000000008 R11: ffffed0038900e69 R12: dffffc0000000000 R13: ffff8801c7977ce8 R14: ffff8801bdd33280 R15: ffff8801c4807300 FS: 00007fd663ecb700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001caf11000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sock_recvmsg_nosec net/socket.c:805 [inline] sock_recvmsg+0xc9/0x110 net/socket.c:812 ___sys_recvmsg+0x29b/0x630 net/socket.c:2207 __sys_recvmsg+0xe2/0x210 net/socket.c:2252 SYSC_recvmsg net/socket.c:2264 [inline] SyS_recvmsg+0x2d/0x50 net/socket.c:2259 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x44a6f9 RSP: 002b:00007fd663ecadc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044a6f9 RDX: 0000000000000040 RSI: 00000000207e0000 RDI: 0000000000000005 RBP: 0000000000000086 R08: 00007fd663ecb700 R09: 00007fd663ecb700 R10: 00007fd663ecb700 R11: 0000000000000202 R12: 0000000000000000 R13: 00007ffeab98e91f R14: 00007fd663ecb9c0 R15: 0000000000000000 Code: Bad RIP value. RIP: (null) RSP: ffff8801c47bf960 CR2: 0000000000000000 ---[ end trace f657afc7bf3f99fb ]---