[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 13.061723] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.182436] random: sshd: uninitialized urandom read (32 bytes read) [ 17.572369] random: sshd: uninitialized urandom read (32 bytes read) [ 18.353264] random: sshd: uninitialized urandom read (32 bytes read) [ 28.558356] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.5' (ECDSA) to the list of known hosts. [ 34.054557] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 35.916726] ================================================================== [ 35.924146] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 35.931393] Read of size 4 at addr ffff8801c9a38000 by task syz-executor008/4600 [ 35.938893] [ 35.940494] CPU: 0 PID: 4600 Comm: syz-executor008 Not tainted 4.9.100-g73fdfa3 #29 [ 35.948263] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.957592] ffff8801d8b3fb00 ffffffff81eb0f09 ffffea0007268e00 ffff8801c9a38000 [ 35.965564] 0000000000000000 ffff8801c9a38000 ffffffff8300fbe0 ffff8801d8b3fb38 [ 35.973552] ffffffff8156532b ffff8801c9a38000 0000000000000004 0000000000000000 [ 35.981543] Call Trace: [ 35.984106] [] dump_stack+0xc1/0x128 [ 35.989440] [] ? sock_release+0x1c0/0x1c0 [ 35.995207] [] print_address_description+0x6c/0x234 [ 36.001849] [] ? sock_release+0x1c0/0x1c0 [ 36.007620] [] kasan_report.cold.6+0x242/0x2fe [ 36.013825] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 36.020549] [] __asan_report_load4_noabort+0x14/0x20 [ 36.027272] [] l2tp_session_queue_purge+0xf4/0x100 [ 36.033823] [] ? sock_release+0x1c0/0x1c0 [ 36.039593] [] pppol2tp_release+0x1fb/0x2e0 [ 36.045536] [] sock_release+0x96/0x1c0 [ 36.051042] [] sock_close+0x16/0x20 [ 36.056295] [] __fput+0x263/0x700 [ 36.061377] [] ____fput+0x15/0x20 [ 36.066453] [] task_work_run+0x10c/0x180 [ 36.072135] [] do_exit+0x9e1/0x27c0 [ 36.077391] [] ? vm_insert_mixed+0x200/0x200 [ 36.083421] [] ? release_task.part.19+0x1210/0x1210 [ 36.090058] [] ? __do_page_fault+0x5dd/0xd50 [ 36.096086] [] ? up_read+0x1a/0x40 [ 36.101248] [] ? __do_page_fault+0x183/0xd50 [ 36.107277] [] do_group_exit+0x111/0x340 [ 36.112957] [] ? do_group_exit+0x340/0x340 [ 36.118812] [] SyS_exit_group+0x1d/0x20 [ 36.124408] [] do_syscall_64+0x1a6/0x490 [ 36.130090] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 36.136984] [ 36.138585] Allocated by task 4598: [ 36.142182] save_stack_trace+0x16/0x20 [ 36.146128] save_stack+0x43/0xd0 [ 36.149558] kasan_kmalloc+0xc7/0xe0 [ 36.153244] __kmalloc+0x11d/0x300 [ 36.156763] l2tp_session_create+0x38/0x16f0 [ 36.161663] pppol2tp_connect+0x10d7/0x18f0 [ 36.165954] SYSC_connect+0x1b8/0x300 [ 36.169725] SyS_connect+0x24/0x30 [ 36.173237] do_syscall_64+0x1a6/0x490 [ 36.177093] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 36.182161] [ 36.183759] Freed by task 4535: [ 36.187007] save_stack_trace+0x16/0x20 [ 36.190951] save_stack+0x43/0xd0 [ 36.194377] kasan_slab_free+0x72/0xc0 [ 36.198245] kfree+0xfb/0x310 [ 36.201319] l2tp_session_free+0x166/0x200 [ 36.205522] l2tp_tunnel_closeall+0x284/0x350 [ 36.209990] l2tp_udp_encap_destroy+0x87/0xe0 [ 36.214463] udpv6_destroy_sock+0xb1/0xd0 [ 36.218580] sk_common_release+0x6d/0x300 [ 36.222698] udp_lib_close+0x15/0x20 [ 36.226379] inet_release+0xff/0x1d0 [ 36.230064] inet6_release+0x50/0x70 [ 36.233750] sock_release+0x96/0x1c0 [ 36.237436] sock_close+0x16/0x20 [ 36.240859] __fput+0x263/0x700 [ 36.244106] ____fput+0x15/0x20 [ 36.247358] task_work_run+0x10c/0x180 [ 36.251215] do_exit+0x9e1/0x27c0 [ 36.254635] do_group_exit+0x111/0x340 [ 36.258492] SyS_exit_group+0x1d/0x20 [ 36.262266] do_syscall_64+0x1a6/0x490 [ 36.266124] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 36.271202] [ 36.272809] The buggy address belongs to the object at ffff8801c9a38000 [ 36.272809] which belongs to the cache kmalloc-512 of size 512 [ 36.285447] The buggy address is located 0 bytes inside of [ 36.285447] 512-byte region [ffff8801c9a38000, ffff8801c9a38200) [ 36.297118] The buggy address belongs to the page: [ 36.302024] page:ffffea0007268e00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 36.312204] flags: 0x8000000000004080(slab|head) [ 36.316931] page dumped because: kasan: bad access detected [ 36.322608] [ 36.324206] Memory state around the buggy address: [ 36.329103] ffff8801c9a37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.336432] ffff8801c9a37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.343759] >ffff8801c9a38000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.351085] ^ [ 36.354420] ffff8801c9a38080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program [ 36.361755] ffff8801c9a38100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.369081] ================================================================== [ 36.376408] Disabling lock debugging due to kernel taint [ 36.382426] Kernel panic - not syncing: panic_on_warn set ... [ 36.382426] [ 36.389772] CPU: 0 PID: 4600 Comm: syz-executor008 Tainted: G B 4.9.100-g73fdfa3 #29 [ 36.398751] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.408089] ffff8801d8b3fa60 ffffffff81eb0f09 ffffffff843c50e5 00000000ffffffff [ 36.416078] 0000000000000000 0000000000000000 ffffffff8300fbe0 ffff8801d8b3fb20 [ 36.424074] ffffffff8141f895 0000000041b58ab3 ffffffff843b87e8 ffffffff8141f6d6 [ 36.432055] Call Trace: [ 36.434620] [] dump_stack+0xc1/0x128 [ 36.439959] [] ? sock_release+0x1c0/0x1c0 [ 36.445731] [] panic+0x1bf/0x3bc [ 36.450719] [] ? add_taint.cold.6+0x16/0x16 [ 36.456663] [] ? ___preempt_schedule+0x16/0x18 [ 36.462867] [] kasan_end_report+0x47/0x4f [ 36.468645] [] kasan_report.cold.6+0x76/0x2fe [ 36.474768] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 36.481927] [] __asan_report_load4_noabort+0x14/0x20 [ 36.488653] [] l2tp_session_queue_purge+0xf4/0x100 [ 36.495202] [] ? sock_release+0x1c0/0x1c0 [ 36.500972] [] pppol2tp_release+0x1fb/0x2e0 [ 36.506914] [] sock_release+0x96/0x1c0 [ 36.512422] [] sock_close+0x16/0x20 [ 36.517671] [] __fput+0x263/0x700 [ 36.522746] [] ____fput+0x15/0x20 [ 36.527828] [] task_work_run+0x10c/0x180 [ 36.533510] [] do_exit+0x9e1/0x27c0 [ 36.538759] [] ? vm_insert_mixed+0x200/0x200 [ 36.544794] [] ? release_task.part.19+0x1210/0x1210 [ 36.551432] [] ? __do_page_fault+0x5dd/0xd50 [ 36.557468] [] ? up_read+0x1a/0x40 [ 36.562626] [] ? __do_page_fault+0x183/0xd50 [ 36.568653] [] do_group_exit+0x111/0x340 [ 36.574335] [] ? do_group_exit+0x340/0x340 [ 36.580194] [] SyS_exit_group+0x1d/0x20 [ 36.585790] [] do_syscall_64+0x1a6/0x490 [ 36.591471] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 36.598787] Dumping ftrace buffer: [ 36.602298] (ftrace buffer empty) [ 36.605983] Kernel Offset: disabled [ 36.609583] Rebooting in 86400 seconds..