Netdev List
 help / color / mirror / Atom feed
* [PATCH] net: esp4/esp6: missing skb_has_shared_frag() check in 6.1.y (CVE-2026-43284 backport)
@ 2026-06-01 11:31 boz baba
  2026-06-01 14:48 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: boz baba @ 2026-06-01 11:31 UTC (permalink / raw)
  To: stable, steffen.klassert, netdev

Hi stable team,

The fix for CVE-2026-43284 ("Dirty Frag", commit f4c50a4034e6) added a
skb_has_shared_frag() check to the skip_cow path in esp_input() in both
net/ipv4/esp4.c and net/ipv6/esp6.c. This fix was backported to 6.12.y
but appears to be missing from the 6.1.y stable branch.

Affected: linux-6.1.133 (latest 6.1.y as of 2026-05-31)
Fixed in: linux-6.12.91, mainline (f4c50a4034e6)

Vulnerable pattern in net/ipv4/esp4.c (line 912) and net/ipv6/esp6.c (line 960):

  if (!skb_cloned(skb)) {
      if (!skb_is_nonlinear(skb)) {
          nfrags = 1;
          goto skip_cow;
      } else if (!skb_has_frag_list(skb)) {   /* <-- missing &&
!skb_has_shared_frag(skb) */
          nfrags = skb_shinfo(skb)->nr_frags;
          nfrags++;
          goto skip_cow;
      }
  }

The missing check allows an skb with SKBFL_SHARED_FRAG set (e.g. from
vmsplice()/sendfile()) to bypass skb_cow_data() and proceed to in-place
aead decryption via:

  aead_request_set_crypt(req, sg, sg, elen + ivlen, iv);
  crypto_aead_decrypt(req);

This is the same page-cache corruption primitive as CVE-2026-43284.

Please backport commit f4c50a4034e6 to linux-6.1.y.

Affected versions: linux-6.1.x (all versions, fix not present)
Fixed versions: linux-6.12.91+, mainline

Verified by: source comparison of net/ipv4/esp4.c and net/ipv6/esp6.c
between linux-6.1.133 and linux-6.12.91.

References:
- CVE-2026-43284 (Dirty Frag)
- Fix commit: f4c50a4034e6

Thanks,
boz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-01 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-01 11:31 [PATCH] net: esp4/esp6: missing skb_has_shared_frag() check in 6.1.y (CVE-2026-43284 backport) boz baba
2026-06-01 14:48 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox