UBSAN: shift-out-of-bounds in meta_int_apply_extras

Status: upstream: reported on 2026/11/16 16:10
Reported-by: syzbot+5d11f80dac449672c453@syzkaller.appspotmail.com
First crash: 11d, last: 11d
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 UBSAN: shift-out-of-bounds in meta_int_apply_extras origin:upstream -1 syz, C 10 4d22h 40d 0/2 upstream: reported C repro on 2026/10/18 03:48
android-6-1 UBSAN: shift-out-of-bounds in meta_int_apply_extras origin:upstream -1 syz, C 9 11d 47d 0/2 upstream: reported C repro on 2026/10/11 05:45
linux-5.15 UBSAN: shift-out-of-bounds in meta_int_apply_extras -1 1 14h21m 14h20m 0/3 upstream: reported on 2026/11/27 03:27

Sample crash report:
================================================================================
UBSAN: shift-out-of-bounds in net/sched/em_meta.c:766:14
shift exponent 64 is too large for 64-bit type 'unsigned long'
CPU: 0 PID: 4469 Comm: syz.4.15 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call trace:
 dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
 __dump_stack+0x30/0x40 lib/dump_stack.c:88
 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106
 dump_stack+0x1c/0x5c lib/dump_stack.c:113
 ubsan_epilogue+0x14/0x48 lib/ubsan.c:151
 __ubsan_handle_shift_out_of_bounds+0x2b0/0x348 lib/ubsan.c:321
 meta_int_apply_extras+0x130/0x140 net/sched/em_meta.c:766
 meta_get+0x1b8/0x3b8 net/sched/em_meta.c:841
 em_meta_match+0xe4/0x2c4 net/sched/em_meta.c:853
 tcf_em_match net/sched/ematch.c:494 [inline]
 __tcf_em_tree_match+0x180/0x5ec net/sched/ematch.c:520
 tcf_em_tree_match include/net/pkt_cls.h:534 [inline]
 basic_classify+0x138/0x314 net/sched/cls_basic.c:48
 __tcf_classify net/sched/cls_api.c:1619 [inline]
 tcf_classify+0x1b4/0x9d4 net/sched/cls_api.c:1685
 sch_handle_ingress net/core/dev.c:5280 [inline]
 __netif_receive_skb_core+0x17c8/0x3214 net/core/dev.c:5498
 __netif_receive_skb_one_core net/core/dev.c:5636 [inline]
 __netif_receive_skb+0x78/0x2b0 net/core/dev.c:5752
 netif_receive_skb_internal net/core/dev.c:5838 [inline]
 netif_receive_skb+0x1e8/0x928 net/core/dev.c:5897
 tun_rx_batched+0x4ac/0x600 drivers/net/tun.c:-1
 tun_get_user+0x1f70/0x3268 drivers/net/tun.c:2009
 tun_chr_write_iter+0xfc/0x200 drivers/net/tun.c:2055
 call_write_iter include/linux/fs.h:2271 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x3c8/0x7c8 fs/read_write.c:584
 ksys_write+0x12c/0x228 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:646
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589
================================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/16 16:10 linux-6.1.y c75b0cf0982c 31830773 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 UBSAN: shift-out-of-bounds in meta_int_apply_extras
2026/11/16 16:10 linux-6.1.y c75b0cf0982c 31830773 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 UBSAN: shift-out-of-bounds in meta_int_apply_extras
2026/11/16 16:09 linux-6.1.y c75b0cf0982c 31830773 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 UBSAN: shift-out-of-bounds in meta_int_apply_extras
* Struck through repros no longer work on HEAD.