Skip to main content
Network Thinking Solutions Logo

CVE-2022-50007

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()

All CVEs
CVE-2022-50007Published 6/18/2025

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()

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
6/18/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 2.6.20, < 4.9.327

Verify advisory

Source
linux kernel
linux
≥ 4.10, < 4.14.292

Verify advisory

Source
linux kernel
linux
≥ 4.15, < 4.19.257

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.212

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.140

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.64

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 5.19.6

Verify advisory

Source
linux kernel
linux
2.6.19

Verify advisory

Source
linux kernel
linux
2.6.19

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
linux kernel
linux
6.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 134b0fc544ba062498451611cb6f3e4454221b3d, < 18e6b6e2555c93f5ca09f2b85ef1fa025c8accea

Verify advisory

Source
Linux
Linux
≥ 134b0fc544ba062498451611cb6f3e4454221b3d, < 8f94b933103ee1bda119543369cc18a1be5536db

Verify advisory

Source
Linux
Linux
≥ 134b0fc544ba062498451611cb6f3e4454221b3d, < 0769491a8acd3e85ca4c3f65080eac2c824262df

Verify advisory

Source
Linux
Linux
≥ 134b0fc544ba062498451611cb6f3e4454221b3d, < 63da7a2bbf3f28094920e0b8a17d2571a9bd842d

Verify advisory

Source
Linux
Linux
≥ 134b0fc544ba062498451611cb6f3e4454221b3d, < 1305d7d4f35ca6f214a2d23b075aa6a924cff3be

Verify advisory

Source
Linux
Linux
≥ 134b0fc544ba062498451611cb6f3e4454221b3d, < 26ad2398fe4984f4f6f930bcb3bc9047fa77265b

Verify advisory

Source
Linux
Linux
≥ 134b0fc544ba062498451611cb6f3e4454221b3d, < d66c052879791313f90c0584420f196a038fb8b8

Verify advisory

Source
Linux
Linux
≥ 134b0fc544ba062498451611cb6f3e4454221b3d, < 9c9cb23e00ddf45679b21b4dacc11d1ae7961ebe

Verify advisory

Source
Linux
Linux
2.6.19

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.