UBSAN: shift-out-of-bounds in meta_int_apply_extras

Status: upstream: reported C repro on 2026/10/11 05:45
Reported-by: syzbot+50a1fd03769c2457a22e@syzkaller.appspotmail.com
First crash: 4d14h, last: 4d13h

Sample crash report:
================================================================================
UBSAN: shift-out-of-bounds in net/sched/em_meta.c:766:14
shift exponent 253 is too large for 64-bit type 'unsigned long'
CPU: 1 PID: 306 Comm: syz-executor349 Not tainted 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
 dump_stack+0x15/0x24 lib/dump_stack.c:113
 ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
 __ubsan_handle_shift_out_of_bounds+0x364/0x3f0 lib/ubsan.c:321
 meta_int_apply_extras+0x13d/0x150 net/sched/em_meta.c:766
 meta_get+0x215/0x410 net/sched/em_meta.c:841
 em_meta_match+0xec/0x300 net/sched/em_meta.c:853
 tcf_em_match net/sched/ematch.c:494 [inline]
 __tcf_em_tree_match+0x1dc/0x7b0 net/sched/ematch.c:520
 tcf_em_tree_match include/net/pkt_cls.h:502 [inline]
 basic_classify+0xd9/0x240 net/sched/cls_basic.c:48
 __tcf_classify net/sched/cls_api.c:1569 [inline]
 tcf_classify+0x18c/0x470 net/sched/cls_api.c:1609
 sch_handle_ingress net/core/dev.c:5272 [inline]
 __netif_receive_skb_core+0x1ba2/0x3580 net/core/dev.c:5495
 __netif_receive_skb_one_core net/core/dev.c:5633 [inline]
 __netif_receive_skb+0x72/0x2a0 net/core/dev.c:5749
 netif_receive_skb_internal net/core/dev.c:5835 [inline]
 netif_receive_skb+0x98/0x3e0 net/core/dev.c:5894
 tun_rx_batched+0x1cb/0x7b0 drivers/net/tun.c:1548
 tun_get_user+0x2456/0x32f0 drivers/net/tun.c:1998
 tun_chr_write_iter+0x1f9/0x300 drivers/net/tun.c:2044
 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:0x7fafad74e0b9
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:00007ffd62133eb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffd62133fe8 RCX: 00007fafad74e0b9
RDX: 0000000000000020 RSI: 0000200000000500 RDI: 0000000000000004
RBP: 0000000000000001 R08: 00007ffd62133fe8 R09: 00007ffd62133fe8
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd62133fd8
R13: 0000000000000002 R14: 00007fafad7deca0 R15: 0000000000000002
 </TASK>
================================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/11 06:02 android14-6.1 9ea8d8374e5e 4f92358f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: shift-out-of-bounds in meta_int_apply_extras
2026/10/11 05:35 android14-6.1 9ea8d8374e5e 4f92358f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: shift-out-of-bounds in meta_int_apply_extras
2026/10/11 05:11 android14-6.1 9ea8d8374e5e 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: shift-out-of-bounds in meta_int_apply_extras
* Struck through repros no longer work on HEAD.