WARNING in nf_flow_offload_ip_hook

Status: upstream: reported C repro on 2026/08/04 09:30
Subsystems: netfilter
Labels: prio:normal
[Documentation on labels]
Reported-by: syzbot+76d4e3a055aec3b007ec@syzkaller.appspotmail.com
Fix commit: 8aecf0bbcc72 netfilter: nf_flow_table: drop existing skb dst before skb_dst_set_noref()
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-riscv64 ci-upstream-gce-arm64 ci-upstream-kmsan-gce-386-root ci-upstream-rust-kasan-gce ci2-upstream-usb]
First crash: 7d00h, last: 6d18h
Cause bisection: introduced by (bisect log) :
commit a890348adcc993f48d1ae38f1174dc8de4c3c5ac
Author: Stanislav Fomichev <sdf@fomichev.me>
Date: Mon Aug 18 15:40:32 2025 +0000

  net: Add skb_dst_check_unset

Crash: WARNING in nf_flow_offload_ip_hook (log)
Repro: C syz .config
  
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
7a3f0d36 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ WARNING in nf_flow_offload_ip_hook 2026/08/04 01:04 2026/08/04 01:04 2026/08/04 02:04 cb1adeae
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] netfilter: nf_flow_table: drop existing skb dst before skb_dst_set_noref() 3 (3) 2026/08/06 00:20
[syzbot] [netfilter?] WARNING in nf_flow_offload_ip_hook 0 (2) 2026/08/04 11:52
Last patch testing requests (1)
Created Duration User Patch Repo Result
2026/08/04 08:56 3h21m edumazet@google.com patch upstream OK log

Sample crash report:
------------[ cut here ]------------
(skb->_skb_refdst & ~(1UL)) && !(skb->_skb_refdst & 1UL)
WARNING: ./include/linux/skbuff.h:1170 at skb_dst_check_unset include/linux/skbuff.h:1170 [inline], CPU#0: syz-executor103/5623
WARNING: ./include/linux/skbuff.h:1170 at skb_dst_set_noref include/linux/skbuff.h:1234 [inline], CPU#0: syz-executor103/5623
WARNING: ./include/linux/skbuff.h:1170 at nf_flow_offload_ip_hook+0xf6c/0x2b60 net/netfilter/nf_flow_table_ip.c:864, CPU#0: syz-executor103/5623
Modules linked in:
CPU: 0 UID: 0 PID: 5623 Comm: syz-executor103 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:skb_dst_check_unset include/linux/skbuff.h:1170 [inline]
RIP: 0010:skb_dst_set_noref include/linux/skbuff.h:1234 [inline]
RIP: 0010:nf_flow_offload_ip_hook+0xf6c/0x2b60 net/netfilter/nf_flow_table_ip.c:864
Code: 89 ee e8 87 4b 14 f8 48 83 fd 01 76 20 e8 dc 50 14 f8 83 e5 01 31 ff 48 89 ee e8 6f 4b 14 f8 48 85 ed 75 09 e8 c5 50 14 f8 90 <0f> 0b 90 e8 bc 50 14 f8 e8 e7 73 f7 f7 31 ff 89 c5 89 c6 e8 1c 4b
RSP: 0018:ffffc90000007798 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff89f61151
RDX: ffff88807cee8000 RSI: ffffffff89f6115b RDI: ffff88807cee8000
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88806f5d0558
R13: ffff88807a526900 R14: ffff8880291401c0 R15: ffff88807a526900
FS:  00005555816fc400(0000) GS:ffff888123dd8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006a1b90 CR3: 000000007029a000 CR4: 00000000003526f0
Call Trace:
 <IRQ>
 nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline]
 nf_hook_slow+0xbf/0x220 net/netfilter/core.c:619
 nf_hook_ingress include/linux/netfilter_netdev.h:34 [inline]
 nf_ingress net/core/dev.c:5975 [inline]
 __netif_receive_skb_core.constprop.0+0x1689/0x3530 net/core/dev.c:6071
 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6210
 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6325
 process_backlog+0x37a/0x1580 net/core/dev.c:6676
 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7735
 napi_poll net/core/dev.c:7798 [inline]
 net_rx_action+0xa40/0xf20 net/core/dev.c:7955
 handle_softirqs+0x1ea/0x9b0 kernel/softirq.c:622
 do_softirq kernel/softirq.c:523 [inline]
 do_softirq+0xac/0xe0 kernel/softirq.c:510
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0xf8/0x120 kernel/softirq.c:450
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 tun_rx_batched.isra.0+0x407/0x750 drivers/net/tun.c:1512
 tun_get_user+0x1e31/0x3c20 drivers/net/tun.c:1955
 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2001
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x6ac/0x1050 fs/read_write.c:687
 ksys_write+0x12a/0x250 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd3f3236427
Code: 48 89 fa 4c 89 df e8 78 1e 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffce22a8bd0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00005555816fc400 RCX: 00007fd3f3236427
RDX: 000000000000002a RSI: 0000200000000300 RDI: 00000000000000c8
RBP: 00007ffce22a8c60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffce22a8c30
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/03 15:58 upstream 075b74841bd0 e611ffe1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in nf_flow_offload_ip_hook
2026/08/03 15:19 upstream 075b74841bd0 bdd50915 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in nf_flow_offload_ip_hook
2026/08/03 21:08 upstream 075b74841bd0 a68cb31b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in nf_flow_offload_ip_hook
2026/08/03 21:08 upstream 075b74841bd0 a68cb31b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in nf_flow_offload_ip_hook
2026/08/03 14:54 upstream 075b74841bd0 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in nf_flow_offload_ip_hook
2026/08/03 14:51 upstream 075b74841bd0 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in nf_flow_offload_ip_hook
2026/08/03 15:02 upstream 075b74841bd0 bdd50915 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in nf_flow_offload_ip_hook
2026/08/03 14:38 upstream 075b74841bd0 bdd50915 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in nf_flow_offload_ip_hook
2026/08/03 14:38 upstream 075b74841bd0 bdd50915 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in nf_flow_offload_ip_hook
* Struck through repros no longer work on HEAD.