All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Björn Bärtschi" <linuxsatellite@gmail.com>
To: syzbot+5a8667f002726fc59f88@syzkaller.appspotmail.com
Cc: coreteam@netfilter.org, davem@davemloft.net, edumazet@google.com,
	fw@strlen.de, horms@kernel.org, kuba@kernel.org,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	netfilter-devel@vger.kernel.org, pabeni@redhat.com,
	pablo@netfilter.org, phil@nwl.cc,
	syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [netfilter?] kernel BUG in nf_ip6_checksum
Date: Tue,  1 Dec 2026 22:32:43 +0100	[thread overview]
Message-ID: <20261201213251.1072561-1-linuxsatellite@gmail.com> (raw)
In-Reply-To: <6ab80da4.e548f532.1ca396.0032.GAE@google.com>

#syz fix: ipv6: do not let ipv6_find_hdr() return an offset past the packet end

The bad thoff passed to nf_ip6_checksum() comes from ipv6_find_hdr(),
which commit ee319bd3a0e9 fixed in v7.3-rc5 (as Pablo noted in the
synproxy patch thread). syzbot has not seen this crash since then.

I checked it with the C reproducer on v7.4-rc5 (CONFIG_DEBUG_NET=y):

- with ee319bd3a0e9 reverted, synproxy_tg6() is reached with thoff=1400
  for a 60-byte skb and skb_checksum() warns at net/core/skbuff.c:3627
  (the former BUG_ON became DEBUG_NET_WARN_ON_ONCE in 20ddd0fd2fcd),
  call trace nf_ip6_checksum <- synproxy_tg6 <- ip6t_do_table;
- with ee319bd3a0e9 applied, 3 of 3 runs are clean.

The synproxy hardening patch ("netfilter: synproxy: check TCP header
before verifying checksum") is unaffected by this; Pablo already
suggested it for nf-next.

The analysis was done with the help of an AI assistant (Claude); I
reviewed the results.

Björn

      reply	other threads:[~2026-12-01 21:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-26 18:23 [syzbot] [netfilter?] kernel BUG in nf_ip6_checksum syzbot
2026-12-01 21:32 ` Björn Bärtschi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201213251.1072561-1-linuxsatellite@gmail.com \
    --to=linuxsatellite@gmail.com \
    --cc=coreteam@netfilter.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=fw@strlen.de \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pablo@netfilter.org \
    --cc=phil@nwl.cc \
    --cc=syzbot+5a8667f002726fc59f88@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.