Netdev List
 help / color / mirror / Atom feed
From: Sabrina Dubroca <sd@queasysnail.net>
To: zihan xi <zihanx@nebusec.ai>
Cc: netdev@vger.kernel.org, ipsec@lists.linux.dev,
	steffen.klassert@secunet.com, herbert@gondor.apana.org.au,
	davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com,
	horms@kernel.org, vega@nebusec.ai
Subject: Re: [PATCH net 0/1] xfrm: espintcp: fix IPv4/IPv6 receive path confusion
Date: Wed, 25 Nov 2026 12:42:43 +0100	[thread overview]
Message-ID: <awbJs5YyFCHkggs1@krikkit> (raw)
In-Reply-To: <CAANe3eQhQD=6s-Da74_bEy8qNFtOp_kCqpqDs64TBv0CAXdKtA@mail.gmail.com>

2026-11-25, 19:14:18 +0800, zihan xi wrote:
> Hi Sabrina,
> 
> Thanks for the review. Your questions are fair, and I agree that my
> original cover letter did not distinguish setup evidence from evidence
> of impact clearly enough.
> 
> On Wed, Nov 25, 2026 at 6:53 PM Sabrina Dubroca <sd@queasysnail.net> wrote:
> >
> > Hello,
> >
> > 2026-11-16, 15:52:28 +0000, Zihan Xi wrote:
> > > Historical QEMU run output:
> >
> > I'm not sure what "historical" means here. Your reproducer will output
> > the same thing before/after the patch.
> 
> By "historical" I meant that this output came from an earlier QEMU
> run, not from a fresh run for this revision. The socket output only
> confirms the test setup: the accepted socket is AF_INET6 and the peer
> is v4-mapped. It does not demonstrate a failure.
> 
> The relevant observation is the ftrace entry:
> 
> xfrm6_rcv_encap <- espintcp_rcv

Yeah, thanks.

> It shows that the packet was dispatched to the IPv6 XFRM receive path,
> despite originating from a v4-mapped connection.
> >
> > >     accepted socket domain=10
> > >     peer=::ffff:127.0.0.1 port=41512
> > >     recv=0 errno=0
> > >
> > > The historical tracing additionally showed:
> > >
> > >     xfrm6_rcv_encap <-espintcp_rcv
> > >
> > > and XfrmInNoStates increased by one (before=1004 after=1005 delta=1). The run
> >
> > Which is expected either way since you haven't configured any xfrm states.
> 
> Agreed. The XfrmInNoStates increment is expected without an inbound
> XFRM state and is not evidence of impact. I will not present it as
> such.
> >
> > > followed the no-state/error path without a KASAN report, oops, or crash-log,
> > > so no crash-log is attached.
> >
> > So this is just a "regular" bug where things don't work as expected,
> > right? No other issue after we pass the packet up? (still worth
> > fixing of course, the patch looks ok)
> >
> > Earlier you say "the vulnerable path", and call the reproducer a PoC,
> > I want to be clear on the problem ("vulnerable" and "PoC" sound like a
> > security issue).
> 
> I agree that describing this as a "vulnerable path" and calling the
> reproducer a "PoC" was misleading given the evidence. I will use more
> precise terminology in future revisions.

This will be helpful, thanks.

> Based on the evidence currently available, yes: this is a receive-path
> correctness bug. The demonstrated issue is that ESP-in-TCP dispatches
> an IPv4 skb from a v4-mapped connection to xfrm6_rcv_encap(). I did
> not demonstrate a crash, KASAN report, memory disclosure, or a
> consequence after successful XFRM state processing, and I will avoid
> claiming those.
> 
> Separately, source analysis confirmed the control-block overlap
> addressed in the current reroll: strparser metadata overwrites part of
> the saved IP control block before the old code restores it. However, I
> have not demonstrated its end-to-end effect with a valid inbound
> SA/policy. I also could not substantiate the proposed kernel-memory
> overread through IPv6 ancillary data; the inspected helper
> bounds-checks reads against the skb tail.
> 
> I have revised the cover letter to distinguish these findings and
> limitations. The reproducer demonstrates the wrong-family dispatch; it
> does not demonstrate a crash or security impact.

I don't think you need to send a v2 (unless Steffen asks), I just
wanted to be clear on the type of problem this is.

Thanks.

-- 
Sabrina

      reply	other threads:[~2026-11-25 11:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 15:52 [PATCH net 0/1] xfrm: espintcp: fix IPv4/IPv6 receive path confusion Zihan Xi
2026-11-16 15:52 ` [PATCH net 1/1] xfrm: espintcp: select receive path by skb protocol Zihan Xi
2026-11-25 10:53 ` [PATCH net 0/1] xfrm: espintcp: fix IPv4/IPv6 receive path confusion Sabrina Dubroca
2026-11-25 11:14   ` zihan xi
2026-11-25 11:42     ` Sabrina Dubroca [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=awbJs5YyFCHkggs1@krikkit \
    --to=sd@queasysnail.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=horms@kernel.org \
    --cc=ipsec@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=steffen.klassert@secunet.com \
    --cc=vega@nebusec.ai \
    --cc=zihanx@nebusec.ai \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox