KASAN: slab-use-after-free Read in nr_rt_ioctl

Status: upstream: reported C repro on 2026/01/15 20:27
Subsystems: hams
Labels: prio:normal
[Documentation on labels]
Reported-by: syzbot+df52f4216bf7b4d768e7@syzkaller.appspotmail.com
First crash: 643d, last: 173d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: the issue occurs on the latest tested release (bisect log)
  
▶ ▼ ✨ AI Jobs (6)
ID Workflow Result Correct Bug Created Started Finished Revision
f7b4d83b assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KASAN: slab-use-after-free Read in nr_rt_ioctl 2026/06/22 01:40 2026/06/22 01:40 2026/06/22 02:31 43bfcdb0
6bd1357c assessment-security 💥 KASAN: slab-use-after-free Read in nr_rt_ioctl 2026/06/14 01:39 2026/06/14 01:39 2026/06/14 01:42 4f06757f
d852ad13 assessment-security 💥 KASAN: slab-use-after-free Read in nr_rt_ioctl 2026/06/09 16:53 2026/06/09 16:53 2026/06/09 16:54 c36c07f6
5de57321 assessment-security 💥 KASAN: slab-use-after-free Read in nr_rt_ioctl 2026/06/02 11:25 2026/06/02 11:25 2026/06/02 11:28 1095583b
d7ce1048 assessment-security 💥 KASAN: slab-use-after-free Read in nr_rt_ioctl 2026/05/24 14:15 2026/05/24 14:15 2026/05/24 14:18 c69befb3
eef82bca patching ❓ KASAN: slab-use-after-free Read in nr_rt_ioctl 2026/01/28 22:41 2026/01/28 22:41 2026/01/28 23:11 8b9a9d26
▶ ▼ Discussions (4)
Title Replies (including bot) Last reply
[syzbot] Monthly hams report (Apr 2026) 0 (1) 2026/04/29 20:32
[syzbot] Monthly hams report (Mar 2026) 0 (1) 2026/03/31 08:06
[syzbot] Monthly hams report (Feb 2026) 0 (1) 2026/02/26 12:58
[syzbot] [hams?] KASAN: slab-use-after-free Read in nr_rt_ioctl 3 (6) 2026/01/18 13:23
▶ ▼ Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 KASAN: use-after-free Read in nr_rt_ioctl origin:upstream missing-backport 19 syz, C inconclusive 4 160d 650d 0/3 upstream: reported C repro on 2025/01/03 08:20
▶ ▼ Last patch testing requests (16)
Created Duration User Patch Repo Result
2026/10/01 13:54 23m retest repro upstream no crash job log log
2026/10/01 13:54 14m retest repro upstream error job log
2026/09/26 16:38 15m retest repro upstream error job log
2026/09/20 13:18 0m retest repro net error job log
2026/09/20 13:18 0m retest repro net error job log
2026/09/20 13:18 0m retest repro net error job log
2026/09/20 13:18 0m retest repro net error job log
2026/08/16 00:13 26m retest repro net no crash job log log
2026/08/16 00:13 27m retest repro net no crash job log log
2026/08/16 00:13 27m retest repro net no crash job log log
2026/01/18 13:23 1h01m activprithvi@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git be548645527a131a097fdc884b7fca40c8b86231 OK log
2026/01/17 06:53 1h31m activprithvi@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git be548645527a131a097fdc884b7fca40c8b86231 OK log
2026/01/02 13:49 23m dvyukov@google.com patch upstream report log
2025/09/29 08:00 24m edumazet@google.com patch upstream report log
2025/04/14 03:52 18m edumazet@google.com upstream report log
2025/02/19 13:09 54m edumazet@google.com upstream error

Sample crash report:
==================================================================
BUG: KASAN: slab-use-after-free in nr_dec_obs net/netrom/nr_route.c:471 [inline]
BUG: KASAN: slab-use-after-free in nr_rt_ioctl+0x594/0xd50 net/netrom/nr_route.c:692
Read of size 2 at addr ffff88803f6c9932 by task syz.4.404/6102

CPU: 0 UID: 0 PID: 6102 Comm: syz.4.404 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0xca/0x240 mm/kasan/report.c:482
 kasan_report+0x118/0x150 mm/kasan/report.c:595
 nr_dec_obs net/netrom/nr_route.c:471 [inline]
 nr_rt_ioctl+0x594/0xd50 net/netrom/nr_route.c:692
 sock_do_ioctl+0xdc/0x300 net/socket.c:1238
 sock_ioctl+0x576/0x790 net/socket.c:1359
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:598 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f242678ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc4dd61288 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f24269b5fa0 RCX: 00007f242678ebe9
RDX: 0000000000000000 RSI: 00000000000089e2 RDI: 0000000000000004
RBP: 00007f2426811e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f24269b5fa0 R14: 00007f24269b5fa0 R15: 0000000000000002
 </TASK>

Allocated by task 6102:
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
 poison_kmalloc_redzone mm/kasan/common.c:388 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:405
 kasan_kmalloc include/linux/kasan.h:260 [inline]
 __kmalloc_cache_noprof+0x230/0x3d0 mm/slub.c:4396
 kmalloc_noprof include/linux/slab.h:905 [inline]
 nr_add_node+0x7f8/0x2570 net/netrom/nr_route.c:146
 nr_rt_ioctl+0xc12/0xd50 net/netrom/nr_route.c:651
 sock_do_ioctl+0xdc/0x300 net/socket.c:1238
 sock_ioctl+0x576/0x790 net/socket.c:1359
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:598 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6102:
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576
 poison_slab_object mm/kasan/common.c:243 [inline]
 __kasan_slab_free+0x5b/0x80 mm/kasan/common.c:275
 kasan_slab_free include/linux/kasan.h:233 [inline]
 slab_free_hook mm/slub.c:2417 [inline]
 slab_free mm/slub.c:4680 [inline]
 kfree+0x18e/0x440 mm/slub.c:4879
 nr_dec_obs net/netrom/nr_route.c:469 [inline]
 nr_rt_ioctl+0x2e7/0xd50 net/netrom/nr_route.c:692
 sock_do_ioctl+0xdc/0x300 net/socket.c:1238
 sock_ioctl+0x576/0x790 net/socket.c:1359
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:598 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88803f6c9900
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 50 bytes inside of
 freed 64-byte region [ffff88803f6c9900, ffff88803f6c9940)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3f6c9
anon flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 04fff00000000000 ffff88801a4418c0 ffffea0000e85300 dead000000000005
raw: 0000000000000000 0000000000200020 00000000f5000000 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 0x52c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5367, tgid 5367 (udevd), ts 148669582283, free_ts 148637504018
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851
 prep_new_page mm/page_alloc.c:1859 [inline]
 get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858
 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148
 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416
 alloc_slab_page mm/slub.c:2487 [inline]
 allocate_slab+0x8a/0x370 mm/slub.c:2655
 new_slab mm/slub.c:2709 [inline]
 ___slab_alloc+0xbeb/0x1410 mm/slub.c:3891
 __slab_alloc mm/slub.c:3981 [inline]
 __slab_alloc_node mm/slub.c:4056 [inline]
 slab_alloc_node mm/slub.c:4217 [inline]
 __do_kmalloc_node mm/slub.c:4364 [inline]
 __kmalloc_noprof+0x305/0x4f0 mm/slub.c:4377
 kmalloc_noprof include/linux/slab.h:909 [inline]
 kzalloc_noprof include/linux/slab.h:1039 [inline]
 tomoyo_encode2 security/tomoyo/realpath.c:45 [inline]
 tomoyo_encode+0x28b/0x550 security/tomoyo/realpath.c:80
 tomoyo_realpath_from_path+0x58d/0x5d0 security/tomoyo/realpath.c:283
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_check_open_permission+0x1c1/0x3b0 security/tomoyo/file.c:771
 security_file_open+0xb1/0x270 security/security.c:3144
 do_dentry_open+0x384/0x13f0 fs/open.c:942
 vfs_open+0x3b/0x340 fs/open.c:1095
 do_open fs/namei.c:3887 [inline]
 path_openat+0x2ee5/0x3830 fs/namei.c:4046
 do_filp_open+0x1fa/0x410 fs/namei.c:4073
 do_sys_openat2+0x121/0x1c0 fs/open.c:1435
page last free pid 15 tgid 15 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1395 [inline]
 __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895
 rcu_do_batch kernel/rcu/tree.c:2605 [inline]
 rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861
 handle_softirqs+0x283/0x870 kernel/softirq.c:579
 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968
 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160
 kthread+0x70e/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff88803f6c9800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff88803f6c9880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff88803f6c9900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                                     ^
 ffff88803f6c9980: 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc fc
 ffff88803f6c9a00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/24 04:27 upstream 8d245acc1e88 bf27483f .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/08/10 13:45 upstream 561c80369df0 32a0e5ed .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/09/25 06:41 net b7e32ae66642 0abd0691 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/09/20 11:27 net a35c04de2565 67c37560 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/04/30 08:20 net b936a9b8d4a5 85a5a23f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2026/01/07 23:14 net 653267321f05 d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/01/13 04:34 upstream be548645527a 6dbc6a9b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/01/09 23:14 upstream eea6e4b4dfb8 40f46913 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/12/26 09:08 upstream ccd1cdca5cd4 d1b870e1 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/10/19 08:49 upstream 1c64efcb083c 1c8c8cd8 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/10/10 22:19 upstream 917167ed1211 ff1712fe .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/10/10 07:26 upstream 5472d60c129f ff1712fe .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/10/04 06:10 upstream 2ccb4d203fe4 49379ee0 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/09/21 20:22 upstream f975f08c2e89 67c37560 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/09/02 17:28 upstream b320789d6883 96a211bc .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-use-after-free Read in nr_rt_ioctl
2026/03/14 02:08 net 99600f79b28c 351cb5cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/10/08 07:56 net 943af6478807 7e2882b3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/09/28 16:46 net 012ea489aeda 001c9061 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/09/26 09:22 net 4ff71af020ae 0abd0691 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/11/27 03:10 net-next ab084f0b8d6d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/11/16 22:08 net-next c9dfb92de073 f7988ea4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/11/16 19:36 net-next c9dfb92de073 f7988ea4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/11/15 01:27 net-next df58ee7d8faf f7988ea4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
2025/11/09 00:27 net-next a0c3aefb08cd 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in nr_rt_ioctl
* Struck through repros no longer work on HEAD.