================================================================== BUG: KASAN: slab-use-after-free in cfusbl_device_notify+0x16b/0x6b0 net/caif/caif_usb.c:142 Read of size 8 at addr ffff88804fbe4d48 by task syz.3.2995/17931 CPU: 1 UID: 0 PID: 17931 Comm: syz.3.2995 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 cfusbl_device_notify+0x16b/0x6b0 net/caif/caif_usb.c:142 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2280 [inline] call_netdevice_notifiers net/core/dev.c:2294 [inline] register_netdevice+0x1268/0x1cf0 net/core/dev.c:11401 register_netdev+0x40/0x60 net/core/dev.c:11522 bnep_add_connection+0x6e5/0xca0 net/bluetooth/bnep/core.c:624 do_bnep_sock_ioctl+0x40b/0x650 net/bluetooth/bnep/sock.c:83 sock_do_ioctl+0x101/0x320 net/socket.c:1254 sock_ioctl+0x5c6/0x7f0 net/socket.c:1375 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f074859bf79 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f07493f7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0748815fa0 RCX: 00007f074859bf79 RDX: 0000200000000180 RSI: 00000000400442c8 RDI: 000000000000000d RBP: 00007f07486327e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0748816038 R14: 00007f0748815fa0 R15: 00007ffe6d97ab18 Allocated by task 5835: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x31c/0x660 mm/slub.c:5297 kmalloc_noprof include/linux/slab.h:962 [inline] kzalloc_noprof include/linux/slab.h:1204 [inline] __hci_conn_add+0x3c4/0x1e00 net/bluetooth/hci_conn.c:963 hci_conn_request_evt+0x5b1/0xc40 net/bluetooth/hci_event.c:3324 hci_event_func net/bluetooth/hci_event.c:7784 [inline] hci_event_packet+0x805/0x12c0 net/bluetooth/hci_event.c:7838 hci_rx_work+0x3ee/0x1030 net/bluetooth/hci_core.c:4077 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xaec/0x17a0 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 17941: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2670 [inline] slab_free mm/slub.c:6082 [inline] kfree+0x1c1/0x610 mm/slub.c:6399 device_release+0x9e/0x1d0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x228/0x560 lib/kobject.c:737 hci_conn_cleanup net/bluetooth/hci_conn.c:173 [inline] hci_conn_del+0xc36/0x1230 net/bluetooth/hci_conn.c:1240 hci_conn_hash_flush+0x191/0x260 net/bluetooth/hci_conn.c:2645 hci_dev_close_sync+0x821/0x10e0 net/bluetooth/hci_sync.c:5358 hci_dev_do_close net/bluetooth/hci_core.c:502 [inline] hci_dev_close+0x108/0x260 net/bluetooth/hci_core.c:527 sock_do_ioctl+0x101/0x320 net/socket.c:1254 sock_ioctl+0x5c6/0x7f0 net/socket.c:1375 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 insert_work+0x3d/0x330 kernel/workqueue.c:2199 __queue_work+0xccf/0xf90 kernel/workqueue.c:2354 queue_delayed_work_on+0x11a/0x1e0 kernel/workqueue.c:2574 l2cap_chan_del+0x285/0x610 net/bluetooth/l2cap_core.c:672 l2cap_conn_del+0x333/0x5c0 net/bluetooth/l2cap_core.c:1782 hci_disconn_cfm include/net/bluetooth/hci_core.h:2154 [inline] hci_conn_hash_flush+0x10d/0x260 net/bluetooth/hci_conn.c:2644 hci_dev_close_sync+0x821/0x10e0 net/bluetooth/hci_sync.c:5358 hci_dev_do_close net/bluetooth/hci_core.c:502 [inline] hci_dev_close+0x108/0x260 net/bluetooth/hci_core.c:527 sock_do_ioctl+0x101/0x320 net/socket.c:1254 sock_ioctl+0x5c6/0x7f0 net/socket.c:1375 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88804fbe4000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 3400 bytes inside of freed 8192-byte region [ffff88804fbe4000, ffff88804fbe6000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4fbe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813fe9b280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813fe9b280 dead000000000100 dead000000000122 head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea00013ef801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 16887, tgid 16878 (syz.1.2761), ts 365630828347, free_ts 365081309333 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x228/0x280 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3950 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5245 alloc_slab_page mm/slub.c:3238 [inline] allocate_slab+0x77/0x660 mm/slub.c:3411 new_slab mm/slub.c:3469 [inline] refill_objects+0x331/0x3c0 mm/slub.c:7091 refill_sheaf mm/slub.c:2787 [inline] __pcs_replace_empty_main+0x2b9/0x620 mm/slub.c:4536 alloc_from_pcs mm/slub.c:4639 [inline] slab_alloc_node mm/slub.c:4773 [inline] __kmalloc_cache_noprof+0x392/0x660 mm/slub.c:5292 kmalloc_noprof include/linux/slab.h:962 [inline] kzalloc_noprof include/linux/slab.h:1204 [inline] mr_table_alloc+0x65/0x250 net/ipv4/ipmr_base.c:41 ip6mr_new_table net/ipv6/ip6mr.c:401 [inline] ip6mr_rules_init net/ipv6/ip6mr.c:249 [inline] ip6mr_net_init+0x21a/0x390 net/ipv6/ip6mr.c:1334 ops_init+0x35c/0x5c0 net/core/net_namespace.c:137 setup_net+0x118/0x340 net/core/net_namespace.c:446 copy_net_ns+0x50e/0x730 net/core/net_namespace.c:581 create_new_namespaces+0x3e7/0x6a0 kernel/nsproxy.c:130 unshare_nsproxy_namespaces+0x11a/0x160 kernel/nsproxy.c:226 ksys_unshare+0x4f4/0x900 kernel/fork.c:3174 __do_sys_unshare kernel/fork.c:3245 [inline] __se_sys_unshare kernel/fork.c:3243 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3243 page last free pid 16860 tgid 16856 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xbf8/0xd70 mm/page_alloc.c:2973 __slab_free+0x263/0x2b0 mm/slub.c:5490 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4459 [inline] slab_alloc_node mm/slub.c:4788 [inline] kmem_cache_alloc_lru_noprof+0x2b8/0x640 mm/slub.c:4807 sock_alloc_inode+0x28/0xc0 net/socket.c:322 alloc_inode+0x6a/0x1b0 fs/inode.c:346 new_inode_pseudo include/linux/fs.h:2993 [inline] sock_alloc net/socket.c:637 [inline] __sock_create+0x12d/0x9d0 net/socket.c:1569 sock_create net/socket.c:1663 [inline] __sys_socket_create net/socket.c:1700 [inline] __sys_socket+0xd6/0x1b0 net/socket.c:1747 __do_sys_socket net/socket.c:1761 [inline] __se_sys_socket net/socket.c:1759 [inline] __x64_sys_socket+0x7a/0x90 net/socket.c:1759 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804fbe4c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804fbe4c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88804fbe4d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88804fbe4d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804fbe4e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================