CVE-2026-43090: xfrm: fix refcount leak in xfrm_migrate_policy_find
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfrm: fix refcount leak in xfrm_migrate_policy_find
syzkaller reported a memory leak in xfrm_policy_alloc:
BUG: memory leak
unreferenced object 0xffff888114d79000 (size 1024):
comm "syz.1.17", pid 931
...
xfrm_policy_alloc+0xb3/0x4b0 net/xfrm/xfrm_policy.c:432The root cause is a double call to xfrm_pol_hold_rcu() in xfrm_migrate_policy_find(). The lookup function already returns a policy with held reference, making the second call redundant.
Remove the redundant xfrm_pol_hold_rcu() call to fix the refcount imbalance and prevent the memory leak.
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
The Linux kernel CVE team has assigned CVE-2026-43090 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit 563d5ca93e883b9dcb4b7dc8967ac569fd91820d and fixed in 6.12.83 with commit 21e235a36cfb6d145cefb10728f12f5dc5412f54 Issue introduced in 6.12 with commit 563d5ca93e883b9dcb4b7dc8967ac569fd91820d and fixed in 6.18.24 with commit 836ee1b0426ea3db31531e9581cc32f513d24e32 Issue introduced in 6.12 with commit 563d5ca93e883b9dcb4b7dc8967ac569fd91820d and fixed in 6.19.14 with commit 70c2a89a3bc207c3bfbf6f21bb439809e0a4a27a Issue introduced in 6.12 with commit 563d5ca93e883b9dcb4b7dc8967ac569fd91820d and fixed in 7.0 with commit 83317cce60a032c49480dcdabe146435bd689d03
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-43090
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_policy.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/21e235a36cfb6d145cefb10728f12f5dc5412f54 https://git.kernel.org/stable/c/836ee1b0426ea3db31531e9581cc32f513d24e32 https://git.kernel.org/stable/c/70c2a89a3bc207c3bfbf6f21bb439809e0a4a27a https://git.kernel.org/stable/c/83317cce60a032c49480dcdabe146435bd689d03