[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 21.830750] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.988758] random: sshd: uninitialized urandom read (32 bytes read) [ 25.394747] random: sshd: uninitialized urandom read (32 bytes read) [ 26.214433] random: sshd: uninitialized urandom read (32 bytes read) [ 31.602104] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.56' (ECDSA) to the list of known hosts. [ 37.037426] 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 [ 37.548174] ================================================================== [ 37.555739] BUG: KASAN: use-after-free in crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 37.563665] Read of size 4 at addr ffff8801bbcc0003 by task syz-executor768/4630 [ 37.571398] [ 37.573031] CPU: 0 PID: 4630 Comm: syz-executor768 Not tainted 4.17.0+ #100 [ 37.580135] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.589497] Call Trace: [ 37.592098] dump_stack+0x1b9/0x294 executing program executing program [ 37.595722] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.601024] ? printk+0x9e/0xba [ 37.604305] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.609064] ? kasan_check_write+0x14/0x20 [ 37.613300] print_address_description+0x6c/0x20b [ 37.618145] ? crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 37.623598] kasan_report.cold.7+0x242/0x2fe [ 37.628260] __asan_report_load4_noabort+0x14/0x20 [ 37.633195] crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 37.638509] ? crypto_morus640_encrypt_chunk+0xdb0/0xdb0 [ 37.643976] ? scatterwalk_copychunks+0x424/0x500 executing program executing program [ 37.648832] ? skcipher_walk_done+0x4bc/0xc70 [ 37.653327] crypto_morus640_process_crypt.isra.12+0x153/0x230 [ 37.659289] ? crypto_morus640_decrypt_chunk+0xd20/0xd20 [ 37.664726] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.670274] ? crypto_morus640_process_ad+0xa10/0xa10 [ 37.675480] ? crypto_morus640_update+0xc7/0xe0 [ 37.680180] crypto_morus640_crypt+0x42e/0x9f0 [ 37.684804] ? crypto_morus640_load+0x170/0x170 [ 37.689489] ? scatterwalk_ffwd+0x3b0/0x3b0 [ 37.693825] ? rcu_read_lock_sched_held+0x108/0x120 executing program executing program executing program [ 37.698861] crypto_morus640_decrypt+0x23e/0x3d0 [ 37.703621] ? af_alg_make_sg+0x4d0/0x4d0 [ 37.707772] ? crypto_morus640_crypt+0x9f0/0x9f0 [ 37.712564] ? __sk_mem_schedule+0xe0/0xe0 [ 37.716815] ? memset+0x31/0x40 [ 37.720102] aead_recvmsg+0x13cc/0x1ba0 [ 37.724081] ? aead_release+0x50/0x50 [ 37.728443] ? move_addr_to_kernel.part.20+0x100/0x100 [ 37.733749] ? security_socket_recvmsg+0x9b/0xc0 [ 37.738506] ? aead_release+0x50/0x50 [ 37.742298] sock_recvmsg+0xd0/0x110 [ 37.745995] ? __sock_recv_ts_and_drops+0x420/0x420 [ 37.751025] ___sys_recvmsg+0x2b6/0x680 [ 37.755016] ? ___sys_sendmsg+0x940/0x940 [ 37.759188] ? rcu_is_watching+0x85/0x140 [ 37.763350] ? mntput_no_expire+0x186/0xba0 [ 37.767690] ? dentry_kill+0xce/0x5a0 [ 37.771574] ? fget_raw+0x20/0x20 [ 37.775037] ? lock_downgrade+0x8e0/0x8e0 [ 37.779179] ? kasan_check_read+0x11/0x20 [ 37.783327] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.788864] ? sockfd_lookup_light+0xc5/0x160 [ 37.793352] __sys_recvmsg+0x112/0x260 [ 37.797227] ? __ia32_sys_sendmmsg+0x100/0x100 [ 37.801998] ? task_work_run+0x227/0x290 [ 37.806051] ? __x64_sys_futex+0x477/0x680 [ 37.810296] ? exit_to_usermode_loop+0x87/0x360 [ 37.814993] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 37.820376] __x64_sys_recvmsg+0x78/0xb0 [ 37.824436] do_syscall_64+0x1b1/0x800 [ 37.828310] ? finish_task_switch+0x1ca/0x840 [ 37.832801] ? syscall_return_slowpath+0x5c0/0x5c0 [ 37.837724] ? syscall_return_slowpath+0x30f/0x5c0 [ 37.842659] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 37.848163] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.853045] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.858251] RIP: 0033:0x445b19 [ 37.862319] Code: e8 5c e7 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db 51 00 00 c3 66 2e 0f 1f 84 00 00 00 00 [ 37.882193] RSP: 002b:00007faeb1f83da8 EFLAGS: 00000297 ORIG_RAX: 000000000000002f [ 37.889967] RAX: ffffffffffffffda RBX: 00000000006dac9c RCX: 0000000000445b19 [ 37.897348] RDX: 0000000000000000 RSI: 0000000020002840 RDI: 0000000000000011 [ 37.904981] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 37.912264] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac98 [ 37.919999] R13: 558bdd1ccff55d26 R14: f09319918a28f2b7 R15: 0000000000000001 [ 37.927302] [ 37.928923] The buggy address belongs to the page: [ 37.934298] page:ffffea0006ef3000 count:0 mapcount:-128 mapping:0000000000000000 index:0x1 [ 37.942704] flags: 0x2fffc0000000000() [ 37.947358] raw: 02fffc0000000000 ffffea0006f9f008 ffffea0006f34008 0000000000000000 [ 37.955913] raw: 0000000000000001 0000000000000006 00000000ffffff7f 0000000000000000 [ 37.963818] page dumped because: kasan: bad access detected [ 37.969620] [ 37.971238] Memory state around the buggy address: [ 37.976169] ffff8801bbcbff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 37.983889] ffff8801bbcbff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 37.991260] >ffff8801bbcc0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.999043] ^ [ 38.002927] ffff8801bbcc0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.010271] ffff8801bbcc0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.017612] ================================================================== [ 38.025116] Disabling lock debugging due to kernel taint [ 38.030708] Kernel panic - not syncing: panic_on_warn set ... [ 38.030708] [ 38.038071] CPU: 0 PID: 4630 Comm: syz-executor768 Tainted: G B 4.17.0+ #100 [ 38.046543] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.055885] Call Trace: [ 38.058479] dump_stack+0x1b9/0x294 [ 38.062098] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.067449] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.072191] ? crypto_morus640_decrypt_chunk+0xc10/0xd20 [ 38.077734] panic+0x22f/0x4de [ 38.080908] ? add_taint.cold.5+0x16/0x16 [ 38.085038] ? do_raw_spin_unlock+0x9e/0x2e0 [ 38.089440] ? do_raw_spin_unlock+0x9e/0x2e0 [ 38.093830] ? crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 38.099621] kasan_end_report+0x47/0x4f [ 38.103576] kasan_report.cold.7+0x76/0x2fe [ 38.107879] __asan_report_load4_noabort+0x14/0x20 [ 38.112801] crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 38.118070] ? crypto_morus640_encrypt_chunk+0xdb0/0xdb0 [ 38.123502] ? scatterwalk_copychunks+0x424/0x500 [ 38.128325] ? skcipher_walk_done+0x4bc/0xc70 [ 38.132806] crypto_morus640_process_crypt.isra.12+0x153/0x230 [ 38.138756] ? crypto_morus640_decrypt_chunk+0xd20/0xd20 [ 38.144186] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.149743] ? crypto_morus640_process_ad+0xa10/0xa10 [ 38.154923] ? crypto_morus640_update+0xc7/0xe0 [ 38.159572] crypto_morus640_crypt+0x42e/0x9f0 [ 38.164139] ? crypto_morus640_load+0x170/0x170 [ 38.168789] ? scatterwalk_ffwd+0x3b0/0x3b0 [ 38.173092] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.178087] crypto_morus640_decrypt+0x23e/0x3d0 [ 38.182844] ? af_alg_make_sg+0x4d0/0x4d0 [ 38.186982] ? crypto_morus640_crypt+0x9f0/0x9f0 [ 38.191731] ? __sk_mem_schedule+0xe0/0xe0 [ 38.195946] ? memset+0x31/0x40 [ 38.199208] aead_recvmsg+0x13cc/0x1ba0 [ 38.203168] ? aead_release+0x50/0x50 [ 38.206958] ? move_addr_to_kernel.part.20+0x100/0x100 [ 38.212223] ? security_socket_recvmsg+0x9b/0xc0 [ 38.216959] ? aead_release+0x50/0x50 [ 38.221260] sock_recvmsg+0xd0/0x110 [ 38.224953] ? __sock_recv_ts_and_drops+0x420/0x420 [ 38.229945] ___sys_recvmsg+0x2b6/0x680 [ 38.233897] ? ___sys_sendmsg+0x940/0x940 [ 38.238022] ? rcu_is_watching+0x85/0x140 [ 38.242157] ? mntput_no_expire+0x186/0xba0 [ 38.246466] ? dentry_kill+0xce/0x5a0 [ 38.250253] ? fget_raw+0x20/0x20 [ 38.253688] ? lock_downgrade+0x8e0/0x8e0 [ 38.257813] ? kasan_check_read+0x11/0x20 [ 38.261942] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 38.267458] ? sockfd_lookup_light+0xc5/0x160 [ 38.271945] __sys_recvmsg+0x112/0x260 [ 38.275831] ? __ia32_sys_sendmmsg+0x100/0x100 [ 38.280411] ? task_work_run+0x227/0x290 [ 38.284467] ? __x64_sys_futex+0x477/0x680 [ 38.288699] ? exit_to_usermode_loop+0x87/0x360 [ 38.293373] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 38.298262] __x64_sys_recvmsg+0x78/0xb0 [ 38.302445] do_syscall_64+0x1b1/0x800 [ 38.306367] ? finish_task_switch+0x1ca/0x840 [ 38.310886] ? syscall_return_slowpath+0x5c0/0x5c0 [ 38.315838] ? syscall_return_slowpath+0x30f/0x5c0 [ 38.321133] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 38.326524] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.331357] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.336529] RIP: 0033:0x445b19 [ 38.339705] Code: e8 5c e7 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db 51 00 00 c3 66 2e 0f 1f 84 00 00 00 00 [ 38.358816] RSP: 002b:00007faeb1f83da8 EFLAGS: 00000297 ORIG_RAX: 000000000000002f [ 38.366516] RAX: ffffffffffffffda RBX: 00000000006dac9c RCX: 0000000000445b19 [ 38.373765] RDX: 0000000000000000 RSI: 0000000020002840 RDI: 0000000000000011 [ 38.381013] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 38.388363] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac98 [ 38.395614] R13: 558bdd1ccff55d26 R14: f09319918a28f2b7 R15: 0000000000000001 [ 38.403358] Dumping ftrace buffer: [ 38.406882] (ftrace buffer empty) [ 38.410584] Kernel Offset: disabled [ 38.414191] Rebooting in 86400 seconds..