From: Artem Dinaburg <artem@trailofbits.com>
To: stable@vger.kernel.org
Cc: ast@kernel.org, cratiu@nvidia.com, davem@davemloft.net,
edumazet@kernel.org, herbert@gondor.apana.org.au,
horms@kernel.org, ipsec@lists.linux.dev, jhs@mojatatu.com,
joe@dama.to, kuba@kernel.org, mst@redhat.com,
netdev@vger.kernel.org, pabeni@redhat.com, shawnq1@163.com,
steffen.klassert@secunet.com, willemb@google.com
Subject: [PATCH 6.18.y 0/5] net: validate GSO headers and preserve XFRM inner offsets
Date: Wed, 25 Nov 2026 14:57:30 -0500 [thread overview]
Message-ID: <20261125195735.57472-1-artem@trailofbits.com> (raw)
Hi,
Please apply these five patches to 6.18.y. Patch 2 fixes CVE-2026-53091;
the others are its prerequisite and the upstream fixes that followed it.
1/5 be1b70ab21cb initialises shinfo->gso_segs for SKB_GSO_DODGY
packets. Patches 2 and 4 build on it. It applies unchanged.
2/5 7fb4c1967011 pulls GSO headers into the linear area before
transmit accounting uses them and drops malformed packets. It
needed adaptation; see its backport note.
3/5 fa90a3145c03 stops xfrm from overwriting inner header offsets set
by a tunnel. Without it, patch 2 drops VXLAN-over-IPsec GSO traffic.
It applies unchanged.
4/5 c6648c9f3b51 bounds the segment count and accounted length of
untrusted GSO packets. Only its context differs from upstream.
5/5 35d2d6e5ac0d rejects a negative TCP header offset in the code
added by patch 2. It applies unchanged.
Patch 2 is in 6.6.160, 6.12.114 and 7.0.10, and in mainline since 7.1.
It does not cherry-pick onto 6.18.y (checked on 6.18.57 and 6.18.65)
because 6.18.y predates the qdisc_pkt_len_segs_init() rename and its
pkt_segs accounting. Patch 5 is also in 6.6.163 and 6.12.118. All five
changes are in 7.3.6.
Compiled net/core/dev.o, net/core/skbuff.o and net/xfrm/xfrm_output.o
with CONFIG_WERROR=y on 6.18.65 with the whole series applied, from a
cumulative x86_64 tree, with and without the current queue-6.18
patches. The intermediate patches were not built separately. No kernel
boot or runtime test was performed.
An LLM was used to prepare these backports and to check applicability
and stable-queue history; I reviewed the result.
Thanks,
Artem Dinaburg
next reply other threads:[~2026-11-25 19:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 19:57 Artem Dinaburg [this message]
2026-11-25 19:57 ` [PATCH 6.18.y 1/5] net: init shinfo->gso_segs from qdisc_pkt_len_init() Artem Dinaburg
2026-11-25 19:57 ` [PATCH 6.18.y 2/5] net: pull headers in qdisc_pkt_len_segs_init() Artem Dinaburg
2026-11-25 19:57 ` [PATCH 6.18.y 3/5] xfrm: Don't clobber inner headers when already set Artem Dinaburg
2026-11-25 19:57 ` [PATCH 6.18.y 4/5] net: harden qdisc_pkt_len_segs_init() against malicious GSO packets Artem Dinaburg
2026-11-25 19:57 ` [PATCH 6.18.y 5/5] net: reject a negative TCP header offset in qdisc_pkt_len_segs_init() Artem Dinaburg
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=20261125195735.57472-1-artem@trailofbits.com \
--to=artem@trailofbits.com \
--cc=ast@kernel.org \
--cc=cratiu@nvidia.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=ipsec@lists.linux.dev \
--cc=jhs@mojatatu.com \
--cc=joe@dama.to \
--cc=kuba@kernel.org \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shawnq1@163.com \
--cc=stable@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
--cc=willemb@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox