syzbot


KASAN: use-after-free Read in l2tp_tunnel_del_work

Status: premoderation: reported on 2026/06/23 09:58
Reported-by: syzbot+debdd4ed13bf7673952e@syzkaller.appspotmail.com
First crash: 15d, last: 6h46m
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work 19 17 3d06h 24d 0/2 premoderation: reported on 2026/06/14 19:53
android-5-15 KASAN: use-after-free Read in l2tp_tunnel_del_work 19 3 2d16h 11d 0/2 premoderation: reported on 2026/06/27 08:43
upstream KASAN: use-after-free Write in l2tp_tunnel_del_work (2) net 22 syz unreliable done 2 1244d 1310d 0/29 auto-obsoleted due to no activity on 2023/06/10 16:21
upstream KASAN: use-after-free Write in l2tp_tunnel_del_work net 22 1 1679d 1674d 0/29 auto-closed as invalid on 2022/04/01 19:17
upstream KASAN: slab-use-after-free Read in l2tp_tunnel_del_work net 19 C done 99 729d 743d 27/29 fixed on 2024/08/14 03:44

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in hlist_unhashed include/linux/list.h:808 [inline]
BUG: KASAN: use-after-free in hlist_del_init include/linux/list.h:865 [inline]
BUG: KASAN: use-after-free in l2tp_tunnel_closeall net/l2tp/l2tp_core.c:1232 [inline]
BUG: KASAN: use-after-free in l2tp_tunnel_del_work+0xcd/0x3d0 net/l2tp/l2tp_core.c:1273
Read of size 8 at addr ffff8881162e7880 by task kworker/u4:5/4860

CPU: 1 PID: 4860 Comm: kworker/u4:5 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Workqueue: l2tp l2tp_tunnel_del_work
Call Trace:
 __dump_stack+0x21/0x24 lib/dump_stack.c:77
 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:435 [inline]
 kasan_report+0x100/0x140 mm/kasan/report.c:452
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309
 hlist_unhashed include/linux/list.h:808 [inline]
 hlist_del_init include/linux/list.h:865 [inline]
 l2tp_tunnel_closeall net/l2tp/l2tp_core.c:1232 [inline]
 l2tp_tunnel_del_work+0xcd/0x3d0 net/l2tp/l2tp_core.c:1273
 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301
 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447
 kthread+0x324/0x3b0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

Allocated by task 10808:
 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:430 [inline]
 ____kasan_kmalloc mm/kasan/common.c:509 [inline]
 __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518
 kasan_kmalloc include/linux/kasan.h:254 [inline]
 __kmalloc+0x19f/0x330 mm/slub.c:4038
 kmalloc include/linux/slab.h:560 [inline]
 kzalloc include/linux/slab.h:667 [inline]
 l2tp_session_create+0x39/0xb60 net/l2tp/l2tp_core.c:1616
 pppol2tp_connect+0xbf5/0x1640 net/l2tp/l2tp_ppp.c:772
 __sys_connect_file net/socket.c:1867 [inline]
 __sys_connect+0x3ce/0x450 net/socket.c:1884
 __do_sys_connect net/socket.c:1894 [inline]
 __se_sys_connect net/socket.c:1891 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:1891
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb

Freed by task 10851:
 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:362
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370
 kasan_slab_free include/linux/kasan.h:220 [inline]
 slab_free_hook mm/slub.c:1600 [inline]
 slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626
 slab_free mm/slub.c:3208 [inline]
 kfree+0xc0/0x270 mm/slub.c:4196
 l2tp_session_free net/l2tp/l2tp_core.c:168 [inline]
 l2tp_session_put+0xb2/0x1a0 net/l2tp/l2tp_core.c:193
 pppol2tp_ioctl+0x748/0x960 net/l2tp/l2tp_ppp.c:-1
 pppox_ioctl+0x1e4/0x320 drivers/net/ppp/pppox.c:93
 sock_do_ioctl+0xda/0x380 net/socket.c:1068
 sock_ioctl+0x472/0x740 net/socket.c:1208
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:739
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb

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 kernel/rcu/tree.c:2980 [inline]
 call_rcu+0x11a/0x1090 kernel/rcu/tree.c:3054
 qdisc_destroy+0x154/0x250 net/sched/sch_generic.c:1009
 qdisc_put+0x8a/0xf0 net/sched/sch_generic.c:1021
 tbf_destroy+0x27c/0x310 net/sched/sch_tbf.c:491
 qdisc_destroy+0x9e/0x250 net/sched/sch_generic.c:1002
 qdisc_put+0x8a/0xf0 net/sched/sch_generic.c:1021
 notify_and_destroy net/sched/sch_api.c:997 [inline]
 qdisc_graft+0xe67/0x1250 net/sched/sch_api.c:1074
 tc_modify_qdisc+0xbcc/0x1470 net/sched/sch_api.c:1726
 rtnetlink_rcv_msg+0x9e9/0xca0 net/core/rtnetlink.c:5614
 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2508
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5632
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2377
 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2431
 __sys_sendmsg net/socket.c:2460 [inline]
 __do_sys_sendmsg net/socket.c:2469 [inline]
 __se_sys_sendmsg net/socket.c:2467 [inline]
 __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2467
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb

The buggy address belongs to the object at ffff8881162e7800
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 128 bytes inside of
 512-byte region [ffff8881162e7800, ffff8881162e7a00)
The buggy address belongs to the page:
page:ffffea000458b900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1162e4
head:ffffea000458b900 order:2 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head)
raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043080
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 106, ts 5803836441, free_ts 0
 set_page_owner include/linux/page_owner.h:35 [inline]
 post_alloc_hook mm/page_alloc.c:2456 [inline]
 prep_new_page+0x176/0x190 mm/page_alloc.c:2462
 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254
 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384
 alloc_slab_page mm/slub.c:-1 [inline]
 allocate_slab mm/slub.c:1813 [inline]
 new_slab+0x84/0x3f0 mm/slub.c:1874
 new_slab_objects mm/slub.c:2632 [inline]
 ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796
 __slab_alloc+0x63/0xa0 mm/slub.c:2836
 slab_alloc_node mm/slub.c:2918 [inline]
 slab_alloc mm/slub.c:2960 [inline]
 __kmalloc_track_caller+0x1e4/0x310 mm/slub.c:4541
 __kmalloc_reserve net/core/skbuff.c:144 [inline]
 __alloc_skb+0xdc/0x520 net/core/skbuff.c:212
 alloc_skb include/linux/skbuff.h:1126 [inline]
 alloc_skb_with_frags+0xa3/0x560 net/core/skbuff.c:6006
 sock_alloc_send_pskb+0x87f/0x9a0 net/core/sock.c:2393
 unix_dgram_sendmsg+0x6f3/0x18f0 net/unix/af_unix.c:1725
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 sock_write_iter+0x2a6/0x3a0 net/socket.c:1019
 call_write_iter include/linux/fs.h:2066 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x770/0xd70 fs/read_write.c:605
 ksys_write+0x14a/0x260 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:667
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
page_owner free stack trace missing

Memory state around the buggy address:
 ffff8881162e7780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8881162e7800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881162e7880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                   ^
 ffff8881162e7900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881162e7980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/08 14:16 android13-5.10-lts 50b3a256e550 88a4b44c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/07/08 06:40 android13-5.10-lts e7cdd7d65ada 76cdc0c0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/07/08 03:46 android13-5.10-lts e7cdd7d65ada 76cdc0c0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/07/04 18:34 android13-5.10-lts 1bb06dbd8c78 fcece630 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/07/03 20:43 android13-5.10-lts 1bb06dbd8c78 58bf2096 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/07/03 20:38 android13-5.10-lts 1bb06dbd8c78 58bf2096 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/07/02 03:23 android13-5.10-lts 1bb06dbd8c78 27192279 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/07/01 11:29 android13-5.10-lts 79e905dd56a7 00a5cf1c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/07/01 07:28 android13-5.10-lts 79e905dd56a7 00a5cf1c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/28 17:50 android13-5.10-lts 79e905dd56a7 fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/28 13:46 android13-5.10-lts 79e905dd56a7 fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/28 01:12 android13-5.10-lts 79e905dd56a7 fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/27 17:56 android13-5.10-lts 79e905dd56a7 fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/27 15:45 android13-5.10-lts 79e905dd56a7 fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/27 01:11 android13-5.10-lts 79e905dd56a7 fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/26 17:36 android13-5.10-lts 79e905dd56a7 fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/26 10:23 android13-5.10-lts 79e905dd56a7 7ff32d8b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/25 00:01 android13-5.10-lts 79e905dd56a7 302586aa .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/24 14:01 android13-5.10-lts 79e905dd56a7 302586aa .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/23 09:57 android13-5.10-lts 79e905dd56a7 5a630be6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work
* Struck through repros no longer work on HEAD.