CVE-2026-31471: xfrm: iptfs: only publish mode_data after clone setup

Published Apr 22, 2026
·
Updated

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

xfrm: iptfs: only publish modedata 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 clonestate() 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.

Affected Software

8 affected components
Linux Linux kernel
Linux Linux kernel>=6.14<6.18.21
Linux Linux kernel>=6.19<6.19.11
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5

Event History

Apr 22, 2026
CVE Published
via MITRE·01:53 PM
Data Sourced
via MITRE·01:53 PM
DescriptionSeverity
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What access does an attacker need to exploit this issue?

The supplied CVSS vector indicates local access is required, with low privileges and no user interaction. The vulnerability is not described as remotely exploitable.

2

What condition causes the unsafe cleanup path?

An IPTFS state clone must reach the point where its reorder-window allocation fails with -ENOMEM. In the vulnerable flow, the cloned state has already been published through mode_data, allowing later clone cleanup to destroy state that was already freed.

3

What is the potential security impact?

The severity is rated high with a 7.8 CVSS score. The vector rates confidentiality, integrity, and availability impact as high.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203