syzbot
KASAN: use-after-free Read in netem_enqueue
Status:
upstream: reported C repro on 2026/10/06 21:43
Reported-by: syzbot+eeeee26052db75a9d6af@syzkaller.appspotmail.com
First crash: 3d06h, last: 3d06h
Sample crash report:
---[ end trace 0000000000000000 ]---
skb len=0 headroom=128 headlen=0 tailroom=512
mac=(128,0) net=(128,-1) trans=-1
shinfo(txflags=0 nr_frags=0 gso(size=0 type=0 segs=0))
csum(0x0 ip_summed=0 complete_sw=0 valid=0 level=0)
hash(0x0 sw=0 l4=0) proto=0x0003 pkttype=0 iif=0
dev name=tunl0 feat=0x00000006401d7869
sk family=17 type=2 proto=0
==================================================================
BUG: KASAN: use-after-free in netem_enqueue+0x3190/0x3770 net/sched/sch_netem.c:511
Read of size 1 at addr ffff888188a13562 by task syz-executor204/312
CPU: 0 PID: 312 Comm: syz-executor204 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
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_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:348
netem_enqueue+0x3190/0x3770 net/sched/sch_netem.c:511
dev_qdisc_enqueue net/core/dev.c:3911 [inline]
__dev_xmit_skb net/core/dev.c:4000 [inline]
__dev_queue_xmit+0xef7/0x3540 net/core/dev.c:4348
dev_queue_xmit+0x17/0x20 include/linux/netdevice.h:3085
tpacket_snd net/packet/af_packet.c:2936 [inline]
packet_sendmsg+0x2416/0x51b0 net/packet/af_packet.c:3162
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
sock_write_iter+0x2ea/0x3f0 net/socket.c:1134
call_write_iter include/linux/fs.h:2282 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x5ef/0xd00 fs/read_write.c:584
ksys_write+0x14a/0x260 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:646
x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
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
RIP: 0033:0x7f29b1af8ac9
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe28bab98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f29b1af8ac9
RDX: 0000000000000001 RSI: 0000200000000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 00007fffe28babe0
</TASK>
The buggy address belongs to the physical page:
page:ffffea00062284c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x188a13
flags: 0x4000000000000000(zone=1)
raw: 4000000000000000 ffffea00062284c8 ffffea00062284c8 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner info is not present (never set?)
Memory state around the buggy address:
ffff888188a13400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888188a13480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888188a13500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888188a13580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888188a13600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
* Struck through repros no longer work on HEAD.