# CVE-2026-31471: xfrm: iptfs: only publish mode\_data after clone setup

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2026-04-22T13:53:59.595Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1; \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< 5784a1e2889c9525a8f036cb586930e232170bf7; \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< d849a2f7309fc0616e79d13b008b0a47e0458b6e
- Anyone running Linux 6.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

xfrm: iptfs: only publish mode\_data after clone setup

iptfs\_clone\_state() stores x-\>mode\_data before allocating the reorder
window. If that allocation fails, the code frees the cloned state and
returns -ENOMEM, leaving x-\>mode\_data pointing at freed memory.

The xfrm clone unwind later runs destroy\_state() through x-\>mode\_data,
so the failed clone path tears down IPTFS state that clone\_state()
already freed.

Keep the cloned IPTFS state private until all allocations succeed so
failed clones leave x-\>mode\_data unset. The destroy path already
handles a NULL mode\_data pointer.

## Affected and fixed versions

- Linux: \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1; \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< 5784a1e2889c9525a8f036cb586930e232170bf7; \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< d849a2f7309fc0616e79d13b008b0a47e0458b6e (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-31471. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31471.md
Affected: Linux >= 6be02e3e4f376fea468846c8562655ca5ee18204, < 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1; >= 6be02e3e4f376fea468846c8562655ca5ee18204, < 5784a1e2889c9525a8f036cb586930e232170bf7; >= 6be02e3e4f376fea468846c8562655ca5ee18204, < d849a2f7309fc0616e79d13b008b0a47e0458b6e; Linux 6.14
Fixed in: Linux 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1, Linux 5784a1e2889c9525a8f036cb586930e232170bf7

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-31471 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1; \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< 5784a1e2889c9525a8f036cb586930e232170bf7; \>= 6be02e3e4f376fea468846c8562655ca5ee18204, \< d849a2f7309fc0616e79d13b008b0a47e0458b6e; Linux 6.14.

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

Yes. Fixed in Linux 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1, Linux 5784a1e2889c9525a8f036cb586930e232170bf7. No fix listed yet: follow the vendor advisory.

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

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/371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1>
- patch: <https://git.kernel.org/stable/c/5784a1e2889c9525a8f036cb586930e232170bf7>
- patch: <https://git.kernel.org/stable/c/d849a2f7309fc0616e79d13b008b0a47e0458b6e>

## 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-31471>

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