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.
Metrics
Affected Vendors & Products
References
History
Thu, 19 Jun 2025 15:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
| |
Metrics |
threat_severity
|
cvssV3_1
|
Wed, 18 Jun 2025 11:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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. | |
Title | xfrm: fix refcount leak in __xfrm_policy_check() | |
References |
|
|

Status: PUBLISHED
Assigner: Linux
Published:
Updated: 2025-06-18T11:01:12.447Z
Reserved: 2025-06-18T10:57:27.388Z
Link: CVE-2022-50007

No data.

Status : Awaiting Analysis
Published: 2025-06-18T11:15:28.617
Modified: 2025-06-18T13:46:52.973
Link: CVE-2022-50007
