================================================================== BUG: KASAN: global-out-of-bounds in validate_nla lib/nlattr.c:411 [inline] BUG: KASAN: global-out-of-bounds in __nla_validate_parse+0x1f1a/0x2f70 lib/nlattr.c:635 Read of size 1 at addr ffffffff8caa1210 by task syz-executor.0/32676 CPU: 1 PID: 32676 Comm: syz-executor.0 Not tainted 6.8.0-rc7-syzkaller-02431-gd7e14e534493 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0x167/0x540 mm/kasan/report.c:488 kasan_report+0x142/0x180 mm/kasan/report.c:601 validate_nla lib/nlattr.c:411 [inline] __nla_validate_parse+0x1f1a/0x2f70 lib/nlattr.c:635 __nla_parse+0x40/0x60 lib/nlattr.c:732 __nlmsg_parse include/net/netlink.h:756 [inline] nlmsg_parse include/net/netlink.h:777 [inline] rtm_del_nexthop+0x257/0x6d0 net/ipv4/nexthop.c:3256 rtnetlink_rcv_msg+0x89b/0x10d0 net/core/rtnetlink.c:6595 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x7ea/0x980 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x8e0/0xcb0 net/netlink/af_netlink.c:1902 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fecaa07dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fecaad660c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fecaa1abf80 RCX: 00007fecaa07dda9 RDX: 0000000000000000 RSI: 0000000020000c00 RDI: 0000000000000003 RBP: 00007fecaa0ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fecaa1abf80 R15: 00007ffd95db3438 The buggy address belongs to the variable: nh_valid_get_del_req.__msg.88+0x30/0x40 The buggy address belongs to the physical page: page:ffffea000032a840 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xcaa1 flags: 0xfff00000004000(reserved|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000004000 ffffea000032a848 ffffea000032a848 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffffff8caa1100: 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 ffffffff8caa1180: f9 f9 f9 f9 00 00 00 01 f9 f9 f9 f9 00 00 06 f9 >ffffffff8caa1200: f9 f9 f9 f9 00 00 03 f9 f9 f9 f9 f9 00 00 00 00 ^ ffffffff8caa1280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff8caa1300: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 ==================================================================