CVE-2022-50007
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50007 is a vulnerability discovered in the Linux kernel affecting the XFRM subsystem. The issue was disclosed on June 18, 2025, and affects the __xfrm_policy_check() function. The vulnerability stems from a reference count leak that occurs when handling error conditions in the XFRM policy checking functionality (NVD, Wiz).

Technical details

The vulnerability occurs in the __xfrm_policy_check() function's error path. Specifically, when the fetching process of the object pols[1] fails, the function returns 0 without properly decrementing the reference count of pols[0], which was previously incremented by either xfrm_sk_policy_lookup() or xfrm_policy_lookup(). This oversight in reference counting management leads to memory leaks in the system (NVD, Debian Tracker).

Impact

The primary impact of this vulnerability is memory leaks in the system. While memory leaks are generally considered less severe than other types of vulnerabilities, they can accumulate over time and potentially lead to system resource exhaustion (Wiz).

Mitigation and workarounds

The issue has been fixed in various Linux kernel versions. Debian has released fixes for multiple distributions including bullseye (5.10.223-1), bookworm (6.1.137-1), and trixie (6.12.32-1). The fix involves properly decreasing the reference count of pols[0] in the error path (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-cross-headers
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-core
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management