🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
2 messages
2 total messages Started by Sabrina Dubroca Wed, 25 Nov 2026 10:53
Re: [PATCH net 0/1] xfrm: espintcp: fix IPv4/IPv6 receive path confusion
#22467
Author: Sabrina Dubroca
Date: Wed, 25 Nov 2026 10:53
36 lines
13771 bytes
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.

>     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.

> 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).

> We run the PoC in a 2 vCPU, 2 GB RAM x86 QEMU environment.

-- 
Sabrina
Re: [PATCH net 0/1] xfrm: espintcp: fix IPv4/IPv6 receive path confusion
#22483
Author: Sabrina Dubroca
Date: Wed, 25 Nov 2026 11:42
91 lines
16475 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads