# CVE-2026-53240: xfrm: iptfs: fix use-after-free on first\_skb in \_\_input\_process\_payload

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.56% (percentile 41, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-06-25T08:39:35.809Z
- **Modified:** 2026-08-05T12:34:26.772Z

## Who should check

- Anyone running Linux \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< 8d9a79fbf5172d9c4c0146057af2360913265a11; \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< ff2ee35b6ce5fa8a8e24ea50b15733d5c8780198; \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< eb48730bb827d1550401a5d391903f9d90b493c8
- Anyone running Linux 6.14

## Description

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

## Affected and fixed versions

- Linux: \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< 8d9a79fbf5172d9c4c0146057af2360913265a11; \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< ff2ee35b6ce5fa8a8e24ea50b15733d5c8780198; \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< eb48730bb827d1550401a5d391903f9d90b493c8 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53240. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53240.md
Affected: Linux >= 3f3339885fb343b7b42d7c34717108ce07da24ae, < 8d9a79fbf5172d9c4c0146057af2360913265a11; >= 3f3339885fb343b7b42d7c34717108ce07da24ae, < ff2ee35b6ce5fa8a8e24ea50b15733d5c8780198; >= 3f3339885fb343b7b42d7c34717108ce07da24ae, < eb48730bb827d1550401a5d391903f9d90b493c8; Linux 6.14
Fixed in: Linux 8d9a79fbf5172d9c4c0146057af2360913265a11

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53240 being exploited?

There is no confirmed exploitation: CVE-2026-53240 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.56% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-53240?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-53240?

Linux \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< 8d9a79fbf5172d9c4c0146057af2360913265a11; \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< ff2ee35b6ce5fa8a8e24ea50b15733d5c8780198; \>= 3f3339885fb343b7b42d7c34717108ce07da24ae, \< eb48730bb827d1550401a5d391903f9d90b493c8; Linux 6.14.

### Is there a fix for CVE-2026-53240?

Yes. Fixed in Linux 8d9a79fbf5172d9c4c0146057af2360913265a11. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-53240?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8d9a79fbf5172d9c4c0146057af2360913265a11>
- patch: <https://git.kernel.org/stable/c/ff2ee35b6ce5fa8a8e24ea50b15733d5c8780198>
- patch: <https://git.kernel.org/stable/c/eb48730bb827d1550401a5d391903f9d90b493c8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53240>

HTML: <https://flawdb.com/CVE-2026-53240> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53240>
