5.5medium
xfrm: fix refcount leak in xfrm_migrate_policy_find
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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:432 The 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 563d5ca93e883b9dcb4b7dc8967ac569fd91820d before 21e235a36cfb6d145cefb10728f12f5dc5412f54, from 563d5ca93e883b9dcb4b7dc8967ac569fd91820d before 836ee1b0426ea3db31531e9581cc32f513d24e32, from 563d5ca93e883b9dcb4b7dc8967ac569fd91820d before 70c2a89a3bc207c3bfbf6f21bb439809e0a4a27a, from 563d5ca93e883b9dcb4b7dc8967ac569fd91820d before 83317cce60a032c49480dcdabe146435bd689d03, 6.12 Not affected: before 6.12, from 6.12.83 up to 6.12.*, from 6.18.24 up to 6.18.*, from 6.19.14 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.12 before 6.12.83, from 6.13 before 6.18.24, from 6.19 before 6.19.14, 7.0 | NVD |
What each source says
CVE List
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:432 The 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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: xfrm: solucionar fuga de refcount en xfrm_migrate_policy_find syzkaller informó una fuga de memoria en xfrm_policy_alloc: BUG: fuga de memoria objeto sin referencia 0x ffff888114d79000 (tamaño 1024): comm ’syz.1.17’, pid 931 ... xfrm_policy_alloc+0xb3/0x4b0 net/xfrm/xfrm_policy.c:432 La causa raíz es una doble llamada a xfrm_pol_hold_rcu() en xfrm_migrate_policy_find(). La función de búsqueda ya devuelve una política con referencia retenida, haciendo que la segunda llamada sea redundante. Eliminar la llamada redundante a xfrm_pol_hold_rcu() para solucionar el desequilibrio de refcount y prevenir la fuga de memoria. Encontrado por Linux Verification Center (linuxtesting.org) con Syzkaller.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43090 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43090 changed 2026-11-11 | Public domain |