[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 13.644797] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.979186] random: sshd: uninitialized urandom read (32 bytes read) [ 18.287992] random: sshd: uninitialized urandom read (32 bytes read) [ 19.094290] random: sshd: uninitialized urandom read (32 bytes read) [ 28.487407] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.9' (ECDSA) to the list of known hosts. [ 34.004850] 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 [ 34.227118] ================================================================== [ 34.234561] BUG: KASAN: use-after-free in l2tp_session_queue_purge+0xf4/0x100 [ 34.241814] Read of size 4 at addr ffff8801c2ab7400 by task syz-executor503/3907 [ 34.249410] [ 34.251017] CPU: 1 PID: 3907 Comm: syz-executor503 Not tainted 4.9.110-g00a0bcb #4 [ 34.258698] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.268031] ffff8801d9627b00 ffffffff81eb2329 ffffea00070aad80 ffff8801c2ab7400 [ 34.276028] 0000000000000000 ffff8801c2ab7400 ffffffff83011be0 ffff8801d9627b38 [ 34.284022] ffffffff81567a89 ffff8801c2ab7400 0000000000000004 0000000000000000 [ 34.292070] Call Trace: [ 34.294666] [] dump_stack+0xc1/0x128 [ 34.300617] [] ? sock_release+0x1c0/0x1c0 [ 34.306483] [] print_address_description+0x6c/0x234 [ 34.313140] [] ? sock_release+0x1c0/0x1c0 [ 34.318913] [] kasan_report.cold.6+0x242/0x2fe [ 34.325136] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 34.331881] [] __asan_report_load4_noabort+0x14/0x20 [ 34.338610] [] l2tp_session_queue_purge+0xf4/0x100 [ 34.345166] [] ? sock_release+0x1c0/0x1c0 [ 34.350958] [] pppol2tp_release+0x1fb/0x2e0 [ 34.356908] [] sock_release+0x96/0x1c0 [ 34.362425] [] sock_close+0x16/0x20 [ 34.367694] [] __fput+0x263/0x700 [ 34.372775] [] ____fput+0x15/0x20 [ 34.377868] [] task_work_run+0x10c/0x180 [ 34.383572] [] do_exit+0x9e1/0x27c0 [ 34.388832] [] ? vm_insert_mixed+0x200/0x200 [ 34.394888] [] ? release_task.part.19+0x1210/0x1210 [ 34.401533] [] ? __do_page_fault+0x5dd/0xd50 [ 34.407568] [] ? up_read+0x1a/0x40 [ 34.412733] [] ? __do_page_fault+0x183/0xd50 [ 34.418771] [] do_group_exit+0x111/0x340 [ 34.424458] [] ? do_group_exit+0x340/0x340 [ 34.430322] [] SyS_exit_group+0x1d/0x20 [ 34.435953] [] do_syscall_64+0x1a6/0x490 [ 34.441664] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 34.448567] [ 34.450168] Allocated by task 3905: [ 34.453775] save_stack_trace+0x16/0x20 [ 34.457743] save_stack+0x43/0xd0 [ 34.461177] kasan_kmalloc+0xc7/0xe0 [ 34.464868] __kmalloc+0x11d/0x300 [ 34.468389] l2tp_session_create+0x38/0x16f0 [ 34.472785] pppol2tp_connect+0x10d7/0x18f0 [ 34.477084] SYSC_connect+0x1b8/0x300 [ 34.480874] SyS_connect+0x24/0x30 [ 34.484393] do_syscall_64+0x1a6/0x490 [ 34.488268] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 34.493343] [ 34.494946] Freed by task 3882: [ 34.498209] save_stack_trace+0x16/0x20 [ 34.502165] save_stack+0x43/0xd0 [ 34.505597] kasan_slab_free+0x72/0xc0 [ 34.509471] kfree+0xfb/0x310 [ 34.512556] l2tp_session_free+0x166/0x200 [ 34.516778] l2tp_tunnel_closeall+0x284/0x350 [ 34.522201] l2tp_udp_encap_destroy+0x87/0xe0 [ 34.526671] udpv6_destroy_sock+0xb1/0xd0 [ 34.530794] sk_common_release+0x6d/0x300 [ 34.534928] udp_lib_close+0x15/0x20 [ 34.538619] inet_release+0xff/0x1d0 [ 34.542313] inet6_release+0x50/0x70 [ 34.546014] sock_release+0x96/0x1c0 [ 34.549703] sock_close+0x16/0x20 [ 34.553144] __fput+0x263/0x700 [ 34.556399] ____fput+0x15/0x20 [ 34.559659] task_work_run+0x10c/0x180 [ 34.563533] do_exit+0x9e1/0x27c0 [ 34.566960] do_group_exit+0x111/0x340 [ 34.570833] SyS_exit_group+0x1d/0x20 [ 34.574619] do_syscall_64+0x1a6/0x490 [ 34.578482] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 34.583557] [ 34.585162] The buggy address belongs to the object at ffff8801c2ab7400 [ 34.585162] which belongs to the cache kmalloc-512 of size 512 [ 34.597808] The buggy address is located 0 bytes inside of [ 34.597808] 512-byte region [ffff8801c2ab7400, ffff8801c2ab7600) [ 34.609494] The buggy address belongs to the page: [ 34.614401] page:ffffea00070aad80 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 34.624583] flags: 0x8000000000004080(slab|head) [ 34.629309] page dumped because: kasan: bad access detected [ 34.634990] [ 34.636592] Memory state around the buggy address: [ 34.641496] ffff8801c2ab7300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.649006] ffff8801c2ab7380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.656353] >ffff8801c2ab7400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.663685] ^ [ 34.667035] ffff8801c2ab7480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.674374] ffff8801c2ab7500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.681715] ================================================================== [ 34.689048] Disabling lock debugging due to kernel taint [ 34.694743] Kernel panic - not syncing: panic_on_warn set ... [ 34.694743] [ 34.702096] CPU: 1 PID: 3907 Comm: syz-executor503 Tainted: G B 4.9.110-g00a0bcb #4 [ 34.710997] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.720333] ffff8801d9627a60 ffffffff81eb2329 ffffffff843c7167 00000000ffffffff [ 34.728372] 0000000000000000 0000000000000001 ffffffff83011be0 ffff8801d9627b20 [ 34.736397] ffffffff81421925 0000000041b58ab3 ffffffff843ba880 ffffffff81421766 [ 34.744404] Call Trace: [ 34.746977] [] dump_stack+0xc1/0x128 [ 34.752320] [] ? sock_release+0x1c0/0x1c0 [ 34.758126] [] panic+0x1bf/0x3bc [ 34.763592] [] ? add_taint.cold.6+0x16/0x16 [ 34.769546] [] ? ___preempt_schedule+0x16/0x18 [ 34.775765] [] kasan_end_report+0x47/0x4f [ 34.781537] [] kasan_report.cold.6+0x76/0x2fe [ 34.787690] [] ? l2tp_session_queue_purge+0xf4/0x100 [ 34.794434] [] __asan_report_load4_noabort+0x14/0x20 [ 34.801166] [] l2tp_session_queue_purge+0xf4/0x100 [ 34.807720] [] ? sock_release+0x1c0/0x1c0 [ 34.813491] [] pppol2tp_release+0x1fb/0x2e0 [ 34.819440] [] sock_release+0x96/0x1c0 [ 34.825323] [] sock_close+0x16/0x20 [ 34.830674] [] __fput+0x263/0x700 [ 34.835756] [] ____fput+0x15/0x20 [ 34.840926] [] task_work_run+0x10c/0x180 [ 34.846625] [] do_exit+0x9e1/0x27c0 [ 34.851888] [] ? vm_insert_mixed+0x200/0x200 [ 34.857936] [] ? release_task.part.19+0x1210/0x1210 [ 34.864596] [] ? __do_page_fault+0x5dd/0xd50 [ 34.870647] [] ? up_read+0x1a/0x40 [ 34.875830] [] ? __do_page_fault+0x183/0xd50 [ 34.881882] [] do_group_exit+0x111/0x340 [ 34.887569] [] ? do_group_exit+0x340/0x340 [ 34.893446] [] SyS_exit_group+0x1d/0x20 [ 34.899049] [] do_syscall_64+0x1a6/0x490 [ 34.904735] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 34.912047] Dumping ftrace buffer: [ 34.915564] (ftrace buffer empty) [ 34.919250] Kernel Offset: disabled [ 34.922861] Rebooting in 86400 seconds..