KASAN: use-after-free Read in l2tp_tunnel_get_session (2)

Status: premoderation: reported on 2026/11/14 14:05
Reported-by: syzbot+6fdea54c14b51c701fd5@syzkaller.appspotmail.com
First crash: 4d18h, last: 4d18h
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 KASAN: use-after-free Read in l2tp_tunnel_get_session 19 7 3d17h 118d 0/2 premoderation: reported on 2026/07/23 21:14
android-5-10 KASAN: use-after-free Read in l2tp_tunnel_get_session 19 8 8d08h 137d 0/2 premoderation: reported on 2026/07/05 05:21
android-5-15 KASAN: use-after-free Read in l2tp_tunnel_get_session 19 4 117d 146d 0/2 auto-obsoleted due to no activity on 2026/10/23 06:24

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in l2tp_tunnel_get_session+0xcd/0x170 net/l2tp/l2tp_core.c:270
Read of size 4 at addr ffff888129644c18 by task syz.9.553/2416

CPU: 0 PID: 2416 Comm: syz.9.553 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
 <TASK>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:427 [inline]
 kasan_report+0x10f/0x150 mm/kasan/report.c:444
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
 l2tp_tunnel_get_session+0xcd/0x170 net/l2tp/l2tp_core.c:270
 l2tp_udp_recv_core net/l2tp/l2tp_core.c:876 [inline]
 l2tp_udp_encap_recv+0x318/0x7e0 net/l2tp/l2tp_core.c:930
 udpv6_queue_rcv_one_skb+0x127c/0x13e0 net/ipv6/udp.c:730
 udpv6_queue_rcv_skb+0x478/0x680 net/ipv6/udp.c:788
 udp6_unicast_rcv_skb+0x1e0/0x310 net/ipv6/udp.c:931
 __udp6_lib_rcv+0xa8a/0xe80 net/ipv6/udp.c:1016
 udpv6_rcv+0x21/0x30 net/ipv6/udp.c:1124
 ip6_protocol_deliver_rcu+0xaf4/0x14b0 net/ipv6/ip6_input.c:425
 ip6_input_finish net/ipv6/ip6_input.c:466 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_input+0xd7/0x200 net/ipv6/ip6_input.c:475
 dst_input include/net/dst.h:463 [inline]
 ip6_rcv_finish+0x18f/0x360 net/ipv6/ip6_input.c:79
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ipv6_rcv+0xed/0x230 net/ipv6/ip6_input.c:300
 __netif_receive_skb_one_core net/core/dev.c:5560 [inline]
 __netif_receive_skb+0xc8/0x280 net/core/dev.c:5674
 netif_receive_skb_internal net/core/dev.c:5760 [inline]
 netif_receive_skb+0x98/0x3e0 net/core/dev.c:5819
 tun_rx_batched+0x600/0x750 drivers/net/tun.c:-1
 tun_get_user+0x2809/0x33e0 drivers/net/tun.c:2000
 tun_chr_write_iter+0x1ed/0x2f0 drivers/net/tun.c:2030
 call_write_iter include/linux/fs.h:2218 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x831/0xfd0 fs/read_write.c:594
 ksys_write+0x14a/0x260 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:656
 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6a2b8d7d0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f6a2a364fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f6a2a3656c0 RCX: 00007f6a2b8d7d0e
RDX: 0000000000000092 RSI: 0000200000000340 RDI: 00000000000000c8
RBP: 00007f6a2b9a604e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6a2bb94038 R14: 00007f6a2bb93fa0 R15: 00007ffdd5c310e8
 </TASK>

Allocated by task 2416:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:433 [inline]
 ____kasan_kmalloc mm/kasan/common.c:512 [inline]
 __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521
 kasan_kmalloc include/linux/kasan.h:227 [inline]
 __kmalloc+0x13d/0x2c0 mm/slub.c:4436
 kmalloc include/linux/slab.h:624 [inline]
 kzalloc include/linux/slab.h:750 [inline]
 l2tp_session_create+0x39/0xb60 net/l2tp/l2tp_core.c:1617
 pppol2tp_connect+0xbf5/0x1640 net/l2tp/l2tp_ppp.c:772
 __sys_connect_file net/socket.c:1923 [inline]
 __sys_connect+0x3cb/0x450 net/socket.c:1940
 __do_sys_connect net/socket.c:1950 [inline]
 __se_sys_connect net/socket.c:1947 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:1947
 x64_sys_call+0x7c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:43
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

Freed by task 2416:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4a/0x70 mm/kasan/common.c:45
 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:365
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
 kasan_slab_free include/linux/kasan.h:193 [inline]
 slab_free_hook mm/slub.c:1728 [inline]
 slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754
 slab_free mm/slub.c:3526 [inline]
 kfree+0xc4/0x270 mm/slub.c:4588
 l2tp_session_free net/l2tp/l2tp_core.c:168 [inline]
 l2tp_session_put+0xaf/0x1a0 net/l2tp/l2tp_core.c:193
 pppol2tp_ioctl+0x748/0x960 net/l2tp/l2tp_ppp.c:-1
 pppox_ioctl+0x1e1/0x440 drivers/net/ppp/pppox.c:110
 sock_do_ioctl+0x103/0x310 net/socket.c:1138
 sock_ioctl+0x459/0x6d0 net/socket.c:1257
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:860
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:860
 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

Last potentially related work creation:
 kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38
 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
 __call_rcu_common kernel/rcu/tree.c:3011 [inline]
 call_rcu+0x10b/0xf60 kernel/rcu/tree.c:3129
 fib6_info_release include/net/ip6_fib.h:349 [inline]
 __ip6_del_rt+0xf5/0x150 net/ipv6/route.c:3910
 ip6_del_rt+0xbe/0x110 net/ipv6/route.c:3921
 __ipv6_ifa_notify+0x872/0xe70 net/ipv6/addrconf.c:6253
 addrconf_ifdown+0xdb1/0x1910 net/ipv6/addrconf.c:3941
 addrconf_notify+0x3bd/0xe00 net/ipv6/addrconf.c:-1
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:391
 call_netdevice_notifiers_info net/core/dev.c:2070 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2082 [inline]
 call_netdevice_notifiers net/core/dev.c:2096 [inline]
 __dev_notify_flags+0x276/0x5b0 net/core/dev.c:8928
 dev_change_flags+0xe3/0x1a0 net/core/dev.c:8964
 do_setlink+0xc95/0x2970 net/core/rtnetlink.c:2791
 rtnl_group_changelink net/core/rtnetlink.c:3308 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3472 [inline]
 rtnl_newlink+0xfd2/0x1900 net/core/rtnetlink.c:3584
 rtnetlink_rcv_msg+0x9fd/0xcb0 net/core/rtnetlink.c:5662
 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2520
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5680
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x879/0xb80 net/netlink/af_netlink.c:1923
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436
 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2490
 __sys_sendmsg net/socket.c:2519 [inline]
 __do_sys_sendmsg net/socket.c:2528 [inline]
 __se_sys_sendmsg net/socket.c:2526 [inline]
 __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2526
 x64_sys_call+0x4b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

The buggy address belongs to the object at ffff888129644c00
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 24 bytes inside of
 512-byte region [ffff888129644c00, ffff888129644e00)
The buggy address belongs to the page:
page:ffffea0004a59100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x129644
head:ffffea0004a59100 order:2 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 0000000000000000 0000000100000001 ffff888100042f00
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 286, ts 20186899334, free_ts 0
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610
 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616
 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492
 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829
 alloc_slab_page mm/slub.c:-1 [inline]
 allocate_slab mm/slub.c:1937 [inline]
 new_slab+0xa0/0x4d0 mm/slub.c:2000
 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033
 __slab_alloc+0x49/0x90 mm/slub.c:3120
 slab_alloc_node mm/slub.c:3211 [inline]
 slab_alloc mm/slub.c:3255 [inline]
 __kmalloc+0x16a/0x2c0 mm/slub.c:4432
 kmalloc include/linux/slab.h:624 [inline]
 kzalloc include/linux/slab.h:750 [inline]
 fib6_info_alloc+0x34/0xe0 net/ipv6/ip6_fib.c:155
 ip6_route_info_create+0x51b/0x14d0 net/ipv6/route.c:3787
 addrconf_f6i_alloc+0x19c/0x3f0 net/ipv6/route.c:4587
 ipv6_add_addr+0x442/0xd90 net/ipv6/addrconf.c:1125
 inet6_addr_add+0x446/0x9d0 net/ipv6/addrconf.c:3040
 inet6_rtm_newaddr+0x6e7/0x9c0 net/ipv6/addrconf.c:4993
 rtnetlink_rcv_msg+0x9fd/0xcb0 net/core/rtnetlink.c:5662
 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2520
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888129644b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888129644b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888129644c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                            ^
 ffff888129644c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888129644d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 2416 at lib/refcount.c:25 refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 2416 Comm: syz.9.553 Tainted: G    B             syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25
Code: 04 01 48 c7 c7 60 5c 63 85 e8 c8 de 5b 02 0f 0b eb df e8 1f 56 19 ff c6 05 9d c3 95 04 01 48 c7 c7 a0 5b 63 85 e8 ac de 5b 02 <0f> 0b eb c3 e8 03 56 19 ff c6 05 82 c3 95 04 01 48 c7 c7 00 5c 63
RSP: 0018:ffffc90001b771b8 EFLAGS: 00010246
RAX: 3065c91b84e19800 RBX: 0000000000000002 RCX: 0000000000080000
RDX: ffffc90001689000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90001b771c8 R08: ffff8881f7032eff R09: 1ffff1103ee065df
R10: dffffc0000000000 R11: ffffed103ee065e0 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000002 R15: ffff888129644c88
FS:  00007f6a2a3656c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb71e22f6c8 CR3: 000000012cecc000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:-1 [inline]
 __refcount_inc include/linux/refcount.h:250 [inline]
 refcount_inc include/linux/refcount.h:267 [inline]
 l2tp_session_inc_refcount net/l2tp/l2tp_core.c:211 [inline]
 l2tp_tunnel_get_session+0x161/0x170 net/l2tp/l2tp_core.c:271
 l2tp_udp_recv_core net/l2tp/l2tp_core.c:876 [inline]
 l2tp_udp_encap_recv+0x318/0x7e0 net/l2tp/l2tp_core.c:930
 udpv6_queue_rcv_one_skb+0x127c/0x13e0 net/ipv6/udp.c:730
 udpv6_queue_rcv_skb+0x478/0x680 net/ipv6/udp.c:788
 udp6_unicast_rcv_skb+0x1e0/0x310 net/ipv6/udp.c:931
 __udp6_lib_rcv+0xa8a/0xe80 net/ipv6/udp.c:1016
 udpv6_rcv+0x21/0x30 net/ipv6/udp.c:1124
 ip6_protocol_deliver_rcu+0xaf4/0x14b0 net/ipv6/ip6_input.c:425
 ip6_input_finish net/ipv6/ip6_input.c:466 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_input+0xd7/0x200 net/ipv6/ip6_input.c:475
 dst_input include/net/dst.h:463 [inline]
 ip6_rcv_finish+0x18f/0x360 net/ipv6/ip6_input.c:79
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ipv6_rcv+0xed/0x230 net/ipv6/ip6_input.c:300
 __netif_receive_skb_one_core net/core/dev.c:5560 [inline]
 __netif_receive_skb+0xc8/0x280 net/core/dev.c:5674
 netif_receive_skb_internal net/core/dev.c:5760 [inline]
 netif_receive_skb+0x98/0x3e0 net/core/dev.c:5819
 tun_rx_batched+0x600/0x750 drivers/net/tun.c:-1
 tun_get_user+0x2809/0x33e0 drivers/net/tun.c:2000
 tun_chr_write_iter+0x1ed/0x2f0 drivers/net/tun.c:2030
 call_write_iter include/linux/fs.h:2218 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x831/0xfd0 fs/read_write.c:594
 ksys_write+0x14a/0x260 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:656
 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6a2b8d7d0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f6a2a364fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f6a2a3656c0 RCX: 00007f6a2b8d7d0e
RDX: 0000000000000092 RSI: 0000200000000340 RDI: 00000000000000c8
RBP: 00007f6a2b9a604e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6a2bb94038 R14: 00007f6a2bb93fa0 R15: 00007ffdd5c310e8
 </TASK>
---[ end trace 4e8267acbffca1eb ]---
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 0 PID: 2416 at lib/refcount.c:28 refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28
Modules linked in:
CPU: 0 PID: 2416 Comm: syz.9.553 Tainted: G    B   W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28
Code: 04 01 48 c7 c7 a0 5b 63 85 e8 ac de 5b 02 0f 0b eb c3 e8 03 56 19 ff c6 05 82 c3 95 04 01 48 c7 c7 00 5c 63 85 e8 90 de 5b 02 <0f> 0b eb a7 e8 e7 55 19 ff c6 05 63 c3 95 04 01 48 c7 c7 40 5b 63
RSP: 0018:ffffc90001b771c8 EFLAGS: 00010246
RAX: 3065c91b84e19800 RBX: 0000000000000003 RCX: 0000000000080000
RDX: ffffc90001689000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90001b771d8 R08: ffff8881f7032eff R09: 1ffff1103ee065df
R10: dffffc0000000000 R11: ffffed103ee065e0 R12: ffff8881175b007e
R13: 1ffff11026568dc6 R14: 0000000000000003 R15: 00000000c0000000
FS:  00007f6a2a3656c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb71e22f6c8 CR3: 000000012cecc000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __refcount_sub_and_test include/linux/refcount.h:283 [inline]
 __refcount_dec_and_test include/linux/refcount.h:315 [inline]
 refcount_dec_and_test include/linux/refcount.h:333 [inline]
 l2tp_session_put+0xc8/0x1a0 net/l2tp/l2tp_core.c:192
 l2tp_udp_recv_core net/l2tp/l2tp_core.c:894 [inline]
 l2tp_udp_encap_recv+0x555/0x7e0 net/l2tp/l2tp_core.c:930
 udpv6_queue_rcv_one_skb+0x127c/0x13e0 net/ipv6/udp.c:730
 udpv6_queue_rcv_skb+0x478/0x680 net/ipv6/udp.c:788
 udp6_unicast_rcv_skb+0x1e0/0x310 net/ipv6/udp.c:931
 __udp6_lib_rcv+0xa8a/0xe80 net/ipv6/udp.c:1016
 udpv6_rcv+0x21/0x30 net/ipv6/udp.c:1124
 ip6_protocol_deliver_rcu+0xaf4/0x14b0 net/ipv6/ip6_input.c:425
 ip6_input_finish net/ipv6/ip6_input.c:466 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_input+0xd7/0x200 net/ipv6/ip6_input.c:475
 dst_input include/net/dst.h:463 [inline]
 ip6_rcv_finish+0x18f/0x360 net/ipv6/ip6_input.c:79
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ipv6_rcv+0xed/0x230 net/ipv6/ip6_input.c:300
 __netif_receive_skb_one_core net/core/dev.c:5560 [inline]
 __netif_receive_skb+0xc8/0x280 net/core/dev.c:5674
 netif_receive_skb_internal net/core/dev.c:5760 [inline]
 netif_receive_skb+0x98/0x3e0 net/core/dev.c:5819
 tun_rx_batched+0x600/0x750 drivers/net/tun.c:-1
 tun_get_user+0x2809/0x33e0 drivers/net/tun.c:2000
 tun_chr_write_iter+0x1ed/0x2f0 drivers/net/tun.c:2030
 call_write_iter include/linux/fs.h:2218 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x831/0xfd0 fs/read_write.c:594
 ksys_write+0x14a/0x260 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:656
 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6a2b8d7d0e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f6a2a364fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f6a2a3656c0 RCX: 00007f6a2b8d7d0e
RDX: 0000000000000092 RSI: 0000200000000340 RDI: 00000000000000c8
RBP: 00007f6a2b9a604e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6a2bb94038 R14: 00007f6a2bb93fa0 R15: 00007ffdd5c310e8
 </TASK>
---[ end trace 4e8267acbffca1ec ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 2416 at net/l2tp/l2tp_ppp.c:156 pppol2tp_sock_to_session+0x167/0x1b0 net/l2tp/l2tp_ppp.c:156
Modules linked in:
CPU: 1 PID: 2416 Comm: syz.9.553 Tainted: G    B   W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:pppol2tp_sock_to_session+0x167/0x1b0 net/l2tp/l2tp_ppp.c:156
Code: 5d c3 e8 ac 0b 0a fd be 02 00 00 00 eb 0a e8 a0 0b 0a fd be 01 00 00 00 4c 89 f7 e8 83 b4 f0 fd e9 0f ff ff ff e8 89 0b 0a fd <0f> 0b 48 89 df e8 ef 00 00 00 eb bd e8 78 0b 0a fd 4c 89 f7 be 03
RSP: 0018:ffffc90001b77890 EFLAGS: 00010293
RAX: ffffffff845fca17 RBX: ffff88811302d000 RCX: ffff888128f9e400
RDX: 0000000000000000 RSI: 000000001be88000 RDI: 000000000c04eb7d
RBP: ffffc90001b778b0 R08: ffff88811302d083 R09: 1ffff11022605a10
R10: dffffc0000000000 R11: ffffed1022605a11 R12: dffffc0000000000
R13: dffffc0000000000 R14: 000000001be88000 R15: ffff888129644c00
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562aafcccbd8 CR3: 000000010d66c000 CR4: 00000000003506a0
DR0: 0000000000000010 DR1: 00000000fffffffd DR2: 400000000001001d
DR3: fffffffffffffff6 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pppol2tp_release+0x150/0x2b0 net/l2tp/l2tp_ppp.c:435
 __sock_release net/socket.c:649 [inline]
 sock_close+0xb8/0x200 net/socket.c:1336
 __fput+0x22b/0x900 fs/file_table.c:311
 ____fput+0x15/0x20 fs/file_table.c:339
 task_work_run+0x127/0x190 kernel/task_work.c:188
 exit_task_work include/linux/task_work.h:33 [inline]
 do_exit+0xb70/0x29a0 kernel/exit.c:896
 do_group_exit+0x149/0x310 kernel/exit.c:1010
 get_signal+0x64f/0x1430 kernel/signal.c:2920
 arch_do_signal_or_restart+0xe2/0x1100 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:157 [inline]
 exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:181
 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:217
 __syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline]
 syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:310
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6a2b8d7d0e
Code: Unable to access opcode bytes at RIP 0x7f6a2b8d7ce4.
RSP: 002b:00007f6a2a364fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: 0000000000000092 RBX: 00007f6a2a3656c0 RCX: 00007f6a2b8d7d0e
RDX: 0000000000000092 RSI: 0000200000000340 RDI: 00000000000000c8
RBP: 00007f6a2b9a604e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6a2bb94038 R14: 00007f6a2bb93fa0 R15: 00007ffdd5c310e8
 </TASK>
---[ end trace 4e8267acbffca1ed ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/14 14:04 android13-5.15-lts f181319b13ed 819ebe34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in l2tp_tunnel_get_session
* Struck through repros no longer work on HEAD.