CVE-2022-50007

MEDIUM

Linux Kernel Memory Leak in __xfrm_policy_check()

Title source: llm
STIX 2.1

Description

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.

Scores

CVSS v3 5.5
EPSS 0.0021
EPSS Percentile 11.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

Status published
Products (28)
linux/Kernel 2.6.19 - 4.9.327linux
linux/Kernel 4.10.0 - 4.14.292linux
linux/Kernel 4.15.0 - 4.19.257linux
linux/Kernel 4.20.0 - 5.4.212linux
linux/Kernel 5.11.0 - 5.15.64linux
linux/Kernel 5.16.0 - 5.19.6linux
linux/Kernel 5.5.0 - 5.10.140linux
Linux/Linux < 2.6.19
Linux/Linux 134b0fc544ba062498451611cb6f3e4454221b3d - 0769491a8acd3e85ca4c3f65080eac2c824262df
Linux/Linux 134b0fc544ba062498451611cb6f3e4454221b3d - 1305d7d4f35ca6f214a2d23b075aa6a924cff3be
... and 18 more
Published Jun 18, 2025
Tracked Since Feb 18, 2026