VDB

CVE-2026-53240

CVE-2026-53240 PUBLISHED CVSS 8.8 HIGH

xfrm: iptfs: fix use-after-free on first_skb in __input_process_payload

Reported by linux · Published June 25, 2026

In the Linux kernel, the following vulnerability has been resolved: xfrm: iptfs: fix use-after-free on first_skb in __input_process_payload __input_process_payload() stores first_skb into xtfs->ra_newskb under drop_lock when starting partial reassembly, then unlocks and breaks out of the processing loop. The post-loop check reads xtfs->ra_newskb without the lock to decide whether first_skb is still owned: if (first_skb && first_iplen && !defer && first_skb != xtfs->ra_newskb) Between spin_unlock and this read, a concurrent CPU running iptfs_reassem_cont() (or the drop_timer hrtimer) can complete reassembly, NULL xtfs->ra_newskb, and free the skb. The check then evaluates first_skb != NULL as true, and pskb_trim/ip_summed/consume_skb operate on the freed skb — a use-after-free in skbuff_head_cache. Replace the unlocked read with a local bool that records whether first_skb was handed to the reassembly state in the current call. The flag is set after the existing spin_unlock, before the break, using the pointer equality that is stable at that point (first_skb == skb iff first_skb was stored in ra_newskb).

EPSS 0.57% · 47.8th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux-gcp-6.18Chainguard6.18.38-r0
linux-azure-6.18Chainguard6.18.38-r0
linux_kernellinux7.0.13, 6.18.36

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.57%
47.8th percentile

Affected products

VendorProductVersions
LinuxLinux3f3339885fb343b7b42d7c34717108ce07da24ae, 3f3339885fb343b7b42d7c34717108ce07da24ae, 3f3339885fb343b7b42d7c34717108ce07da24ae
LinuxLinux6.14, 0, 6.18.36
chainguardlinux-gcp-6.180
chainguardlinux-azure-6.180
linuxlinux_kernel6.14, 6.14, 6.14
LinuxLinux7.1, 6.18.36, 7.0.13
chainguardlinux-qemu-melange0
chainguardlinux-qemu-6.180

Timeline

  • Jun 24, 2026 CVE Published
  • Jun 26, 2026 EPSS Score (30 in total, the first dated here)
  • Jun 26, 2026 Coalition ESS Score
  • Jun 29, 2026 Security Advisory (64 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch (63 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-53240
vulnetix vdb fixes CVE-2026-53240

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-53240/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›