[ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.15.210' (ECDSA) to the list of known hosts. syzkaller login: [ 33.029747] audit: type=1400 audit(1596736839.945:8): avc: denied { execmem } for pid=6364 comm="syz-executor624" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 [ 33.276214] IPVS: ftp: loaded support on port[0] = 21 executing program executing program executing program [ 37.302951] Bluetooth: hci0 command 0x0409 tx timeout executing program executing program executing program executing program executing program executing program executing program executing program [ 39.381462] Bluetooth: hci0 command 0x041b tx timeout executing program executing program executing program executing program executing program executing program executing program executing program [ 41.460710] Bluetooth: hci0 command 0x040f tx timeout executing program executing program executing program executing program executing program executing program executing program [ 43.540188] Bluetooth: hci0 command 0x0419 tx timeout executing program executing program executing program executing program executing program executing program executing program executing program [ 45.619750] Bluetooth: hci0 command 0x0405 tx timeout 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 [ 50.649307] ================================================================== [ 50.656980] BUG: KASAN: use-after-free in sco_chan_del+0x3b2/0x3d0 [ 50.663274] Read of size 1 at addr ffff888096e3e4b5 by task syz-executor624/6611 [ 50.670790] [ 50.672395] CPU: 1 PID: 6611 Comm: syz-executor624 Not tainted 4.14.192-syzkaller #0 [ 50.680292] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.689621] Call Trace: [ 50.692189] dump_stack+0x1b2/0x283 [ 50.695803] print_address_description.cold+0x54/0x1d3 [ 50.701056] kasan_report_error.cold+0x8a/0x194 [ 50.705700] ? sco_chan_del+0x3b2/0x3d0 [ 50.709648] __asan_report_load1_noabort+0x68/0x70 [ 50.714553] ? sco_chan_del+0x3b2/0x3d0 [ 50.718498] sco_chan_del+0x3b2/0x3d0 [ 50.722272] __sco_sock_close+0xb0/0x670 [ 50.726307] sco_sock_release+0x6a/0x370 [ 50.730351] __sock_release+0xcd/0x2b0 [ 50.734215] ? __sock_release+0x2b0/0x2b0 [ 50.738336] sock_close+0x15/0x20 [ 50.741764] __fput+0x25f/0x7a0 [ 50.745021] task_work_run+0x11f/0x190 [ 50.748885] get_signal+0x18a3/0x1ca0 [ 50.752665] ? reacquire_held_locks+0xb5/0x3f0 [ 50.757225] ? sco_sock_connect+0x42b/0x860 [ 50.761525] do_signal+0x7c/0x1550 [ 50.765040] ? lock_downgrade+0x740/0x740 [ 50.769160] ? check_preemption_disabled+0x35/0x240 [ 50.774150] ? setup_sigcontext+0x820/0x820 [ 50.778445] ? kick_process+0xe4/0x170 [ 50.782308] ? task_work_add+0x87/0xe0 [ 50.786169] ? sco_sock_create+0xf0/0xf0 [ 50.790202] ? fput+0xaa/0x140 [ 50.793370] ? SyS_connect+0xf6/0x240 [ 50.797144] ? SyS_accept+0x30/0x30 [ 50.800744] ? SyS_futex+0x1da/0x290 [ 50.804433] ? SyS_futex+0x1e3/0x290 [ 50.808124] ? exit_to_usermode_loop+0x41/0x200 [ 50.812766] exit_to_usermode_loop+0x160/0x200 [ 50.817324] do_syscall_64+0x4a3/0x640 [ 50.821190] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 50.826355] RIP: 0033:0x448439 [ 50.829521] RSP: 002b:00007f302f285db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a [ 50.837202] RAX: fffffffffffffffc RBX: 00000000006e3a08 RCX: 0000000000448439 [ 50.844534] RDX: 0000000000000008 RSI: 0000000020000040 RDI: 0000000000000004 [ 50.851779] RBP: 00000000006e3a00 R08: 0000000000000000 R09: 0000000000000000 [ 50.859035] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006e3a0c [ 50.866281] R13: 00007ffc262bef4f R14: 00007f302f2869c0 R15: 00000000006e3a0c [ 50.873531] [ 50.875144] Allocated by task 6611: [ 50.878761] kasan_kmalloc+0xeb/0x160 [ 50.882546] kmem_cache_alloc_trace+0x131/0x3d0 [ 50.887202] hci_conn_add+0x53/0x12f0 [ 50.890976] hci_connect_sco+0x265/0x7d0 [ 50.895011] sco_sock_connect+0x26c/0x860 [ 50.899130] SyS_connect+0x1f4/0x240 [ 50.902816] do_syscall_64+0x1d5/0x640 [ 50.906678] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 50.911850] [ 50.913457] Freed by task 1202: [ 50.916710] kasan_slab_free+0xc3/0x1a0 [ 50.921267] kfree+0xc9/0x250 [ 50.924347] device_release+0xf0/0x1a0 [ 50.928206] kobject_put+0x1f3/0x2d0 [ 50.931893] put_device+0x1c/0x30 [ 50.935320] hci_conn_del+0x235/0x620 [ 50.939094] hci_phy_link_complete_evt.isra.0+0x4d0/0x6c0 [ 50.944604] hci_event_packet+0x2592/0x7c7a [ 50.948900] hci_rx_work+0x3e6/0x970 [ 50.952587] process_one_work+0x793/0x14a0 [ 50.956809] worker_thread+0x5cc/0xff0 [ 50.961366] kthread+0x30d/0x420 [ 50.964706] ret_from_fork+0x24/0x30 [ 50.968388] [ 50.969991] The buggy address belongs to the object at ffff888096e3e480 [ 50.969991] which belongs to the cache kmalloc-4096 of size 4096 [ 50.982806] The buggy address is located 53 bytes inside of [ 50.982806] 4096-byte region [ffff888096e3e480, ffff888096e3f480) [ 50.994651] The buggy address belongs to the page: [ 50.999555] page:ffffea00025b8f80 count:1 mapcount:0 mapping:ffff888096e3e480 index:0x0 compound_mapcount: 0 [ 51.009497] flags: 0xfffe0000008100(slab|head) [ 51.014074] raw: 00fffe0000008100 ffff888096e3e480 0000000000000000 0000000100000001 [ 51.021931] raw: ffffea0002675fa0 ffffea000257fda0 ffff88812fe52dc0 0000000000000000 [ 51.029798] page dumped because: kasan: bad access detected [ 51.035489] [ 51.037088] Memory state around the buggy address: [ 51.041988] ffff888096e3e380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 51.049323] ffff888096e3e400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 51.056654] >ffff888096e3e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.063985] ^ [ 51.068987] ffff888096e3e500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.076329] ffff888096e3e580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.083666] ================================================================== [ 51.091004] Disabling lock debugging due to kernel taint [ 51.097427] Kernel panic - not syncing: panic_on_warn set ... [ 51.097427] [ 51.104788] CPU: 1 PID: 6611 Comm: syz-executor624 Tainted: G B 4.14.192-syzkaller #0 [ 51.113874] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.123222] Call Trace: [ 51.125806] dump_stack+0x1b2/0x283 [ 51.129417] panic+0x1f9/0x42d [ 51.132592] ? add_taint.cold+0x16/0x16 [ 51.136540] ? ___preempt_schedule+0x16/0x18 [ 51.140987] kasan_end_report+0x43/0x49 [ 51.144939] kasan_report_error.cold+0xa7/0x194 [ 51.149629] ? sco_chan_del+0x3b2/0x3d0 [ 51.153580] __asan_report_load1_noabort+0x68/0x70 [ 51.158484] ? sco_chan_del+0x3b2/0x3d0 [ 51.162433] sco_chan_del+0x3b2/0x3d0 [ 51.166208] __sco_sock_close+0xb0/0x670 [ 51.170244] sco_sock_release+0x6a/0x370 [ 51.174281] __sock_release+0xcd/0x2b0 [ 51.178147] ? __sock_release+0x2b0/0x2b0 [ 51.182271] sock_close+0x15/0x20 [ 51.185743] __fput+0x25f/0x7a0 [ 51.188997] task_work_run+0x11f/0x190 [ 51.193072] get_signal+0x18a3/0x1ca0 [ 51.196848] ? reacquire_held_locks+0xb5/0x3f0 [ 51.201408] ? sco_sock_connect+0x42b/0x860 [ 51.205729] do_signal+0x7c/0x1550 [ 51.209245] ? lock_downgrade+0x740/0x740 [ 51.213371] ? check_preemption_disabled+0x35/0x240 [ 51.218365] ? setup_sigcontext+0x820/0x820 [ 51.222676] ? kick_process+0xe4/0x170 [ 51.226554] ? task_work_add+0x87/0xe0 [ 51.230416] ? sco_sock_create+0xf0/0xf0 [ 51.234464] ? fput+0xaa/0x140 [ 51.237635] ? SyS_connect+0xf6/0x240 [ 51.241421] ? SyS_accept+0x30/0x30 [ 51.245198] ? SyS_futex+0x1da/0x290 [ 51.248885] ? SyS_futex+0x1e3/0x290 [ 51.253199] ? exit_to_usermode_loop+0x41/0x200 [ 51.257841] exit_to_usermode_loop+0x160/0x200 [ 51.262414] do_syscall_64+0x4a3/0x640 [ 51.266277] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 51.271457] RIP: 0033:0x448439 [ 51.274619] RSP: 002b:00007f302f285db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a [ 51.282307] RAX: fffffffffffffffc RBX: 00000000006e3a08 RCX: 0000000000448439 [ 51.289557] RDX: 0000000000000008 RSI: 0000000020000040 RDI: 0000000000000004 [ 51.296803] RBP: 00000000006e3a00 R08: 0000000000000000 R09: 0000000000000000 [ 51.304049] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006e3a0c [ 51.311297] R13: 00007ffc262bef4f R14: 00007f302f2869c0 R15: 00000000006e3a0c [ 51.319797] Kernel Offset: disabled [ 51.323413] Rebooting in 86400 seconds..