CVE-2022-50007 json
xfrm: fix refcount leak in __xfrm_policy_check()
published 2025-06-18 16 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-55286
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
xfrm: fix refcount leak in __xfrm_policy_check()
The issue happens on an error path in __xfrm_policy_check(). When the fetching process of the object `pols[1]` fails, the function simply returns 0, forgetting to decrement the reference count of `pols[0]`, which is incremented earlier by either xfrm_sk_policy_lookup() or xfrm_policy_lookup(). This may result in memory leaks.
Fix it by decreasing the reference count of `pols[0]` in that path.
Patch / fix
- Linux Linux 4.9.327, 4.14.292, 4.19.257, 5.4.212, 5.10.140, 5.15.64, 5.19.6, 6.0
- linux Debian 14, Debian 13, Debian 12 6.0.2-1
debian advisories DEBIAN-CVE-2022-50007
- linux Ubuntu 18.04 LTS 4.15.0-201.212
- linux Ubuntu 20.04 LTS 5.4.0-132.148
- linux Ubuntu 22.04 LTS 5.15.0-53.59
- linux-aws Ubuntu 18.04 LTS 4.15.0-1147.159
- linux-aws Ubuntu 20.04 LTS 5.4.0-1089.97
- linux-aws Ubuntu 22.04 LTS 5.15.0-1023.27
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1093.102
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1022.29
ubuntu advisories UBUNTU-CVE-2022-50007
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 9 5.14.0-284.11.1.el9_2
- perf RHEL 9 5.14.0-284.11.1.el9_2
- rtla RHEL 9 5.14.0-284.11.1.el9_2
- bpftool RHEL 9 7.0.0-284.11.1.el9_2
- kernel-64k RHEL 9 5.14.0-284.11.1.el9_2
- kernel-core RHEL 9 5.14.0-284.11.1.el9_2
- kernel-tools RHEL 9 5.14.0-284.11.1.el9_2
- python3-perf RHEL 9 5.14.0-284.11.1.el9_2
red hat advisories RHSA-2023:2458RHSA-2023:2951
- kernel-syms SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 4.12.14-122.272.1
- kernel-source SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 4.12.14-122.272.1
- kernel-default SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS, SLE Live Patching 12 SP5 4.12.14-122.272.1
- kgraft-patch-SLE12-SP5_Update_72 SLE Live Patching 12 SP5 1-8.3.1
suse advisories SUSE-SU-2025:03204-1
- git.kernel.org/stable/c/18e6b6e2555c93f5ca09f2b85ef1fa025c8accea commit
- git.kernel.org/stable/c/8f94b933103ee1bda119543369cc18a1be5536db commit
- git.kernel.org/stable/c/0769491a8acd3e85ca4c3f65080eac2c824262df commit
- git.kernel.org/stable/c/63da7a2bbf3f28094920e0b8a17d2571a9bd842d commit
- git.kernel.org/stable/c/1305d7d4f35ca6f214a2d23b075aa6a924cff3be commit
- git.kernel.org/stable/c/26ad2398fe4984f4f6f930bcb3bc9047fa77265b commit
- git.kernel.org/stable/c/d66c052879791313f90c0584420f196a038fb8b8 commit
- git.kernel.org/stable/c/9c9cb23e00ddf45679b21b4dacc11d1ae7961ebe commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50007 updated cvss 5.5
kernel: xfrm: fix refcount leak in __xfrm_policy_check()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +6 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux AppStream (v. 9) perf 5.14.0-284.11.1.el9_2, rtla 5.14.0-284.11.1.el9_2, kernel-devel-matched 5.14.0-284.11.1.el9_2, kernel-64k-devel-matched 5.14.0-284.11.1.el9_2, kernel-debug-devel-matched 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-s390x 5.14.0-284.11.1.el9_2, +5 morefixed: vendor fix RHSA-2023:2458
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-477.10.1.el8_8, kernel 4.18.0-477.10.1.el8_8, bpftool 4.18.0-477.10.1.el8_8, kernel-core 4.18.0-477.10.1.el8_8, kernel-tools 4.18.0-477.10.1.el8_8, python3-perf 4.18.0-477.10.1.el8_8, +15 morefixed: vendor fix RHSA-2023:2951
-
Red Hat Enterprise Linux BaseOS (v. 9) bpftool 7.0.0-284.11.1.el9_2, kernel 5.14.0-284.11.1.el9_2, kernel-64k 5.14.0-284.11.1.el9_2, kernel-core 5.14.0-284.11.1.el9_2, kernel-tools 5.14.0-284.11.1.el9_2, python3-perf 5.14.0-284.11.1.el9_2, +28 morefixed: vendor fix RHSA-2023:2458
-
Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-477.10.1.el8_8, kernel-debuginfo-common-aarch64 4.18.0-477.10.1.el8_8, kernel-debuginfo-common-ppc64le 4.18.0-477.10.1.el8_8fixed: vendor fix RHSA-2023:2951
-
Red Hat Enterprise Linux CRB (v. 9) kernel-debuginfo-common-s390x 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-x86_64 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-aarch64 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-ppc64le 5.14.0-284.11.1.el9_2fixed: vendor fix RHSA-2023:2458
-
Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/18e6b6e2555c93f5ca09f2b85ef1fa025c8accea
patch
-
git.kernel.org
/stable/c/8f94b933103ee1bda119543369cc18a1be5536db
patch
-
git.kernel.org
/stable/c/0769491a8acd3e85ca4c3f65080eac2c824262df
patch
-
git.kernel.org
/stable/c/63da7a2bbf3f28094920e0b8a17d2571a9bd842d
patch
-
git.kernel.org
/stable/c/1305d7d4f35ca6f214a2d23b075aa6a924cff3be
patch
-
git.kernel.org
/stable/c/26ad2398fe4984f4f6f930bcb3bc9047fa77265b
patch
-
git.kernel.org
/stable/c/d66c052879791313f90c0584420f196a038fb8b8
patch
-
git.kernel.org
/stable/c/9c9cb23e00ddf45679b21b4dacc11d1ae7961ebe
patch
Sources
- CVE List CVE-2022-50007
- NVD CVE-2022-50007
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.