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

xfrm: iptfs: reset runtime state when cloning SAs

iptfs_clone_state() clones the IPTFS mode data with kmemdup(). This
copies runtime objects which must not be shared with the original SA,
including the embedded sk_buff_head, hrtimers, spinlock, and in-flight
reassembly/reorder state.

If xfrm_state_migrate() fails after clone_state() but before the later
init_state() call has reinitialized those fields, the cloned state can be
destroyed by xfrm_state_gc_task() with list and timer state copied from the
original SA. With queued packets this lets the clone splice and free skbs
owned by the original IPTFS queue, leading to use-after-free and
double-free reports in iptfs_destroy_state() and skb release paths.

Reinitialize the clone's runtime state before publishing it through
x->mode_data. Because clone_state() now publishes a destroyable mode_data
object before init_state(), take the mode callback module reference there.
Avoid taking it again from __iptfs_init_state() for the same object.
Published: 2026-07-19
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in the Linux kernel’s IPsec Transformation Services (IPTFS) routine that clones security association state. When iptfs_clone_state() duplicates runtime data with kmemdup(), the clone may retain references to the original packet queue, timers, and locks. If the subsequent migration fails before these fields are reinitialized, the original state can be garbage‑collected, causing the cloned structures to be freed. This triggers use-after-free and double-free errors when packets in the original IPTFS queue are processed, potentially leading to kernel memory corruption, crashes, or privilege escalation for an attacker controlling the migration path. The weakness is a type of unsafe memory management identified as CWE‑1341.

Affected Systems

All Linux kernel builds (any architecture) are affected. The advisory lists the committed patch in recent kernel releases; administrators should verify whether their kernel version includes the commit that resets runtime state before publishing the clone.

Risk and Exploitability

With a CVSS score of 7.8, this is a high‑severity vulnerability, but the EPSS score is below 1% and the issue is not in CISA’s KEV catalog, indicating limited current exploitation. An attacker would need to trigger the specific kernel state migration failure, generally requiring local kernel access or the ability to influence IPsec traffic. If successful, the flaw can crash the system or allow privilege escalation.

Generated by OpenCVE AI on August 4, 2026 at 06:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that reinitializes runtime state before publishing the cloned object
  • Upgrade to a kernel release that includes the commit referenced in the advisory
  • If an upgrade is not immediately feasible, disable IPTFS functionality by disabling the corresponding crypto transform or module to prevent the vulnerable code from executing

Generated by OpenCVE AI on August 4, 2026 at 06:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sun, 26 Jul 2026 08:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Wed, 22 Jul 2026 00:15:00 +0000


Tue, 21 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sun, 19 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xfrm: iptfs: reset runtime state when cloning SAs iptfs_clone_state() clones the IPTFS mode data with kmemdup(). This copies runtime objects which must not be shared with the original SA, including the embedded sk_buff_head, hrtimers, spinlock, and in-flight reassembly/reorder state. If xfrm_state_migrate() fails after clone_state() but before the later init_state() call has reinitialized those fields, the cloned state can be destroyed by xfrm_state_gc_task() with list and timer state copied from the original SA. With queued packets this lets the clone splice and free skbs owned by the original IPTFS queue, leading to use-after-free and double-free reports in iptfs_destroy_state() and skb release paths. Reinitialize the clone's runtime state before publishing it through x->mode_data. Because clone_state() now publishes a destroyable mode_data object before init_state(), take the mode callback module reference there. Avoid taking it again from __iptfs_init_state() for the same object.
Title xfrm: iptfs: reset runtime state when cloning SAs
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:37:05.089Z

Reserved: 2026-07-19T07:54:57.020Z

Link: CVE-2026-63911

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63911 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T07:00:05Z

Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle