netlink: 'syz.3.12826': attribute type 2 has an invalid length. ================================================================== BUG: KASAN: use-after-free in __list_add_valid_or_report+0x4e/0x130 lib/list_debug.c:29 Read of size 8 at addr ffff888033746440 by task syz.3.12826/14594 CPU: 0 UID: 0 PID: 14594 Comm: syz.3.12826 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 __list_add_valid_or_report+0x4e/0x130 lib/list_debug.c:29 __list_add_valid include/linux/list.h:96 [inline] __list_add include/linux/list.h:158 [inline] list_add include/linux/list.h:177 [inline] clone_mnt+0x447/0x9a0 fs/namespace.c:1275 copy_tree+0xde/0x930 fs/namespace.c:2159 copy_mnt_ns+0x11f/0x7c0 fs/namespace.c:4246 create_new_namespaces+0xcf/0x6a0 kernel/nsproxy.c:98 copy_namespaces+0x438/0x4b0 kernel/nsproxy.c:195 copy_process+0x183e/0x3ba0 kernel/fork.c:2221 kernel_clone+0x21e/0x820 kernel/fork.c:2648 __do_sys_clone kernel/fork.c:2789 [inline] __se_sys_clone kernel/fork.c:2773 [inline] __x64_sys_clone+0x18b/0x1e0 kernel/fork.c:2773 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4ab478f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4ab570dfe8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007f4ab49e5fa0 RCX: 00007f4ab478f749 RDX: 0000000000000000 RSI: fffffffffffffc70 RDI: 0000000001022000 RBP: 00007f4ab4813f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f4ab49e6038 R14: 00007f4ab49e5fa0 R15: 00007ffc34fa9bf8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802a8b24c0 pfn:0x33746 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000100 dead000000000122 0000000000000000 raw: ffff88802a8b24c0 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 11848, tgid 11847 (syz.1.11875), ts 1227045248105, free_ts 1228266048991 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x23d/0x2a0 mm/page_alloc.c:1883 prep_new_page mm/page_alloc.c:1891 [inline] get_page_from_freelist+0x24e0/0x2580 mm/page_alloc.c:3956 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5244 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2485 alloc_frozen_pages_noprof mm/mempolicy.c:2556 [inline] alloc_pages_noprof+0xa9/0x190 mm/mempolicy.c:2576 vm_area_alloc_pages mm/vmalloc.c:3662 [inline] __vmalloc_area_node mm/vmalloc.c:3876 [inline] __vmalloc_node_range_noprof+0x795/0x16a0 mm/vmalloc.c:4064 __vmalloc_node_noprof mm/vmalloc.c:4124 [inline] vzalloc_noprof+0xb2/0xf0 mm/vmalloc.c:4202 n_tty_open+0x1d/0x150 drivers/tty/n_tty.c:1890 tty_ldisc_open drivers/tty/tty_ldisc.c:432 [inline] tty_ldisc_setup+0xd4/0x280 drivers/tty/tty_ldisc.c:745 tty_init_dev+0x279/0x4d0 drivers/tty/tty_io.c:1431 ptmx_open+0x117/0x340 drivers/tty/pty.c:799 chrdev_open+0x4cc/0x5e0 fs/char_dev.c:411 do_dentry_open+0x785/0x14e0 fs/open.c:949 vfs_open+0x3b/0x340 fs/open.c:1081 do_open fs/namei.c:4671 [inline] path_openat+0x2de0/0x3840 fs/namei.c:4830 do_file_open+0x203/0x440 fs/namei.c:4859 page last free pid 11847 tgid 11847 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xbd1/0xd40 mm/page_alloc.c:2972 vfree+0x25a/0x400 mm/vmalloc.c:3479 n_tty_close+0x188/0x230 drivers/tty/n_tty.c:1873 tty_ldisc_kill+0xa3/0x1a0 drivers/tty/tty_ldisc.c:613 tty_ldisc_release+0x1a4/0x200 drivers/tty/tty_ldisc.c:781 tty_release_struct+0x2a/0xd0 drivers/tty/tty_io.c:1681 tty_release+0xcb0/0x1720 drivers/tty/tty_io.c:1852 __fput+0x44c/0xa70 fs/file_table.c:468 task_work_run+0x1d4/0x260 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xef/0x4e0 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2c1/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888033746300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888033746380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888033746400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888033746480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888033746500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================