CVE-2026-31471

Source
https://cve.org/CVERecord?id=CVE-2026-31471
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31471.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31471
Downstream
Published
2026-04-22T13:53:59.595Z
Modified
2026-07-08T07:22:38.638281337Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
xfrm: iptfs: only publish mode_data after clone setup
Details

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

xfrm: iptfs: only publish mode_data after clone setup

iptfsclonestate() stores x->modedata before allocating the reorder window. If that allocation fails, the code frees the cloned state and returns -ENOMEM, leaving x->modedata pointing at freed memory.

The xfrm clone unwind later runs destroystate() through x->modedata, 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->modedata unset. The destroy path already handles a NULL modedata pointer.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31471.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6be02e3e4f376fea468846c8562655ca5ee18204
Fixed
371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1
Fixed
5784a1e2889c9525a8f036cb586930e232170bf7
Fixed
d849a2f7309fc0616e79d13b008b0a47e0458b6e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31471.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.18.21
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31471.json"