Skip to contentSkip to conversation

CVE-2026-63911: xfrm: iptfs: reset runtime state when cloning SAs

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-63911 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.14 with commit 0e4fbf013fa566f274ce9b4ce698c75b1f998c52 and fixed in 6.18.35 with commit 9327252e04626d4bb02ca8c0c108fbe8eabf0c5a
	Issue introduced in 6.14 with commit 0e4fbf013fa566f274ce9b4ce698c75b1f998c52 and fixed in 7.0.12 with commit dfb9f6cbfa9826655a49698cf90eb800fce2178e
	Issue introduced in 6.14 with commit 0e4fbf013fa566f274ce9b4ce698c75b1f998c52 and fixed in 7.1 with commit 7f83d174073234839aea176f265e517e0d50a1d2

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-63911

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/xfrm/xfrm_iptfs.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/9327252e04626d4bb02ca8c0c108fbe8eabf0c5a
	https://git.kernel.org/stable/c/dfb9f6cbfa9826655a49698cf90eb800fce2178e
	https://git.kernel.org/stable/c/7f83d174073234839aea176f265e517e0d50a1d2