================================================================== BUG: KASAN: slab-out-of-bounds in ecryptfs_verify_auth_tok_from_key+0x34b/0x390 fs/ecryptfs/keystore.c:466 Read of size 2 at addr ffff88807bcddb59 by task syz.1.2/4366 CPU: 0 PID: 4366 Comm: syz.1.2 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 ecryptfs_verify_auth_tok_from_key+0x34b/0x390 fs/ecryptfs/keystore.c:466 ecryptfs_keyring_auth_tok_for_sig+0xe8/0x240 fs/ecryptfs/keystore.c:1645 ecryptfs_init_global_auth_toks fs/ecryptfs/main.c:194 [inline] ecryptfs_parse_options fs/ecryptfs/main.c:458 [inline] ecryptfs_mount+0xbee/0x1980 fs/ecryptfs/main.c:501 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f4a1c19e159 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:00007f4a1d0f7028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f4a1c425fa0 RCX: 00007f4a1c19e159 RDX: 0000200000000480 RSI: 0000200000000000 RDI: 0000200000000400 RBP: 00007f4a1c23506b R08: 0000200000000500 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4a1c426038 R14: 00007f4a1c425fa0 R15: 00007ffdc90e4978 Allocated by task 4366: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb3/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] user_preparse+0x9a/0x160 security/keys/user_defined.c:67 key_create_or_update+0x432/0xa40 security/keys/key.c:862 __do_sys_add_key security/keys/keyctl.c:134 [inline] __se_sys_add_key+0x34b/0x410 security/keys/keyctl.c:74 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88807bcddb40 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 25 bytes inside of 32-byte region [ffff88807bcddb40, ffff88807bcddb60) The buggy address belongs to the physical page: page:ffffea0001ef3740 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7bcdd flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888017441500 raw: 0000000000000000 0000000000400040 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 4279, tgid 4279 (syz-executor), ts 87064887440, free_ts 87059711969 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2d0 mm/slub.c:1997 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x126/0x270 mm/slub.c:3398 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] ref_tracker_alloc+0x14f/0x490 lib/ref_tracker.c:85 __netdev_tracker_alloc include/linux/netdevice.h:4046 [inline] netdev_hold include/linux/netdevice.h:4075 [inline] fib_check_nh_nongw net/ipv4/fib_semantics.c:1270 [inline] fib_check_nh+0xd16/0x1a50 net/ipv4/fib_semantics.c:1290 fib_create_info+0x135c/0x2370 net/ipv4/fib_semantics.c:1589 fib_table_insert+0xc2/0x1af0 net/ipv4/fib_trie.c:1217 fib_magic+0x2ca/0x3b0 net/ipv4/fib_frontend.c:1118 fib_add_ifaddr+0x3e2/0x5c0 net/ipv4/fib_frontend.c:1162 fib_netdev_event+0x361/0x470 net/ipv4/fib_frontend.c:1500 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 free_slab mm/slub.c:2036 [inline] discard_slab mm/slub.c:2042 [inline] __unfreeze_partials+0x188/0x1e0 mm/slub.c:2591 put_cpu_partial+0x17c/0x250 mm/slub.c:2667 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] __kmem_cache_alloc_node+0x19d/0x270 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa3/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] fib6_info_alloc+0x2e/0xe0 net/ipv6/ip6_fib.c:156 ip6_route_info_create+0x455/0x1220 net/ipv6/route.c:3796 ip6_route_add+0x24/0x130 net/ipv6/route.c:3892 addrconf_add_mroute net/ipv6/addrconf.c:2513 [inline] addrconf_add_dev+0x298/0x3a0 net/ipv6/addrconf.c:2531 addrconf_dev_config net/ipv6/addrconf.c:3431 [inline] addrconf_init_auto_addrs+0x63e/0xaa0 net/ipv6/addrconf.c:3519 addrconf_notify+0xacd/0xf60 net/ipv6/addrconf.c:3692 Memory state around the buggy address: ffff88807bcdda00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ffff88807bcdda80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc >ffff88807bcddb00: fa fb fb fb fc fc fc fc 00 00 00 01 fc fc fc fc ^ ffff88807bcddb80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ffff88807bcddc00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc ==================================================================