syzbot


KASAN: use-after-free Read in l2tp_tunnel_del_work

Status: premoderation: reported on 2026/06/14 19:53
Reported-by: syzbot+0619f828e4997cb7bb88@syzkaller.appspotmail.com
First crash: 12d, last: 4h31m
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 KASAN: use-after-free Read in l2tp_tunnel_del_work 19 1 6h43m 6h42m 0/2 premoderation: reported on 2026/06/27 08:43
android-5-10 KASAN: use-after-free Read in l2tp_tunnel_del_work 19 6 14h14m 4d05h 0/2 premoderation: reported on 2026/06/23 09:58
upstream KASAN: use-after-free Write in l2tp_tunnel_del_work (2) net 22 syz unreliable done 2 1232d 1298d 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 1667d 1663d 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 718d 732d 27/29 fixed on 2024/08/14 03:44

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in hlist_unhashed include/linux/list.h:854 [inline]
BUG: KASAN: use-after-free in hlist_del_init_rcu include/linux/rculist.h:183 [inline]
BUG: KASAN: use-after-free in l2tp_tunnel_closeall net/l2tp/l2tp_core.c:1225 [inline]
BUG: KASAN: use-after-free in l2tp_tunnel_del_work+0xd8/0x410 net/l2tp/l2tp_core.c:1266
Read of size 8 at addr ffff888110891080 by task kworker/u4:88/639

CPU: 1 PID: 639 Comm: kworker/u4:88 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:
 <TASK>
 __dump_stack+0x21/0x24 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 print_address_description+0x71/0x200 mm/kasan/report.c:316
 print_report+0x4a/0x60 mm/kasan/report.c:420
 kasan_report+0x122/0x150 mm/kasan/report.c:524
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:351
 hlist_unhashed include/linux/list.h:854 [inline]
 hlist_del_init_rcu include/linux/rculist.h:183 [inline]
 l2tp_tunnel_closeall net/l2tp/l2tp_core.c:1225 [inline]
 l2tp_tunnel_del_work+0xd8/0x410 net/l2tp/l2tp_core.c:1266
 process_one_work+0x717/0xc30 kernel/workqueue.c:2302
 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
 kthread+0x281/0x320 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Allocated by task 2028:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505
 ____kasan_kmalloc mm/kasan/common.c:380 [inline]
 __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389
 kasan_kmalloc include/linux/kasan.h:212 [inline]
 __do_kmalloc_node mm/slab_common.c:938 [inline]
 __kmalloc+0xb4/0x1e0 mm/slab_common.c:951
 kmalloc include/linux/slab.h:568 [inline]
 kzalloc include/linux/slab.h:699 [inline]
 l2tp_session_create+0x38/0xbd0 net/l2tp/l2tp_core.c:1609
 pppol2tp_connect+0xbf5/0x1640 net/l2tp/l2tp_ppp.c:771
 __sys_connect_file net/socket.c:2000 [inline]
 __sys_connect+0x3da/0x460 net/socket.c:2017
 __do_sys_connect net/socket.c:2027 [inline]
 __se_sys_connect net/socket.c:2024 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2024
 x64_sys_call+0x88d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:43
 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

Freed by task 2033:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516
 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250
 kasan_slab_free include/linux/kasan.h:178 [inline]
 slab_free_hook mm/slub.c:1750 [inline]
 slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776
 slab_free mm/slub.c:3712 [inline]
 __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728
 kfree+0x6f/0xf0 mm/slab_common.c:990
 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+0x1f6/0x330 drivers/net/ppp/pppox.c:93
 sock_do_ioctl+0x114/0x330 net/socket.c:1191
 sock_ioctl+0x475/0x700 net/socket.c:1310
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0x12f/0x1b0 fs/ioctl.c:856
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856
 x64_sys_call+0x58b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17
 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

Last potentially related work creation:
 kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46
 __kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496
 kvfree_call_rcu+0x8b/0x7a0 kernel/rcu/tree.c:3445
 neigh_destroy+0x476/0x5b0 net/core/neighbour.c:918
 neigh_release include/net/neighbour.h:455 [inline]
 neigh_cleanup_and_release+0x76/0x1a0 net/core/neighbour.c:103
 neigh_flush_dev+0x79a/0x950 net/core/neighbour.c:429
 __neigh_ifdown+0x3f/0x400 net/core/neighbour.c:446
 neigh_ifdown+0x1f/0x30 net/core/neighbour.c:464
 arp_ifdown+0x1c/0x20 net/ipv4/arp.c:1318
 fib_disable_ip net/ipv4/fib_frontend.c:1443 [inline]
 fib_netdev_event+0x565/0x5a0 net/ipv4/fib_frontend.c:1509
 notifier_call_chain kernel/notifier.c:87 [inline]
 raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455
 call_netdevice_notifiers_info net/core/dev.c:2022 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2060 [inline]
 call_netdevice_notifiers net/core/dev.c:2074 [inline]
 dev_close_many+0x325/0x4d0 net/core/dev.c:1622
 unregister_netdevice_many+0x43f/0x1910 net/core/dev.c:10979
 default_device_exit_batch+0x951/0x9f0 net/core/dev.c:11518
 ops_exit_list net/core/net_namespace.c:177 [inline]
 cleanup_net+0x630/0xb10 net/core/net_namespace.c:604
 process_one_work+0x717/0xc30 kernel/workqueue.c:2302
 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
 kthread+0x281/0x320 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

The buggy address belongs to the object at ffff888110891000
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 128 bytes inside of
 512-byte region [ffff888110891000, ffff888110891200)

The buggy address belongs to the physical page:
page:ffffea0004422400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x110890
head:ffffea0004422400 order:2 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 dead000000000100 dead000000000122 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 103, tgid 103 (udevadm), ts 7526957855, free_ts 0
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672
 prep_new_page+0x1c/0x110 mm/page_alloc.c:2679
 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586
 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930
 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1
 allocate_slab mm/slub.c:1967 [inline]
 new_slab+0x98/0x3e0 mm/slub.c:2020
 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177
 __slab_alloc+0x5e/0xa0 mm/slub.c:3263
 slab_alloc_node mm/slub.c:3348 [inline]
 __kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423
 __do_kmalloc_node mm/slab_common.c:937 [inline]
 __kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958
 kmalloc_reserve net/core/skbuff.c:449 [inline]
 __alloc_skb+0x226/0x4a0 net/core/skbuff.c:518
 alloc_skb include/linux/skbuff.h:1322 [inline]
 alloc_uevent_skb+0x85/0x240 lib/kobject_uevent.c:290
 uevent_net_broadcast_untagged lib/kobject_uevent.c:326 [inline]
 kobject_uevent_net_broadcast+0x343/0x5b0 lib/kobject_uevent.c:409
 kobject_uevent_env+0x541/0x720 lib/kobject_uevent.c:608
 kobject_synth_uevent+0x457/0x940 lib/kobject_uevent.c:208
 uevent_store+0x4b/0x70 drivers/base/core.c:2693
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888110890f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888110891000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888110891080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                   ^
 ffff888110891100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888110891180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/27 10:54 android14-6.1 83f1262811ad fb92f11c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/22 03:08 android14-6.1 72813af230c7 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/21 16:18 android14-6.1 72813af230c7 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/20 13:10 android14-6.1 72813af230c7 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/20 05:48 android14-6.1 9f35ca3ff66c 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/20 02:10 android14-6.1 9f35ca3ff66c 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/18 00:04 android14-6.1 9f35ca3ff66c b62b3ded .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/15 16:46 android14-6.1 f17c14b8ada7 50bb0618 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
2026/06/14 19:52 android14-6.1 f17c14b8ada7 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in l2tp_tunnel_del_work
* Struck through repros no longer work on HEAD.