CVE-2022-50569 Details
Description
In the Linux kernel, the following vulnerability has been resolved: xfrm: Update ipcomp_scratches with NULL when freed Currently if ipcomp_alloc_scratches() fails to allocate memory ipcomp_scratches holds obsolete address. So when we try to free the percpu scratches using ipcomp_free_scratches() it tries to vfree non existent vm area. Described below: static void * __percpu *ipcomp_alloc_scratches(void) { ... scratches = alloc_percpu(void *); if (!scratches) return NULL; ipcomp_scratches does not know about this allocation failure. Therefore holding the old obsolete address. ... } So when we free, static void ipcomp_free_scratches(void) { ... scratches = ipcomp_scratches; Assigning obsolete address from ipcomp_scratches if (!scratches) return; for_each_possible_cpu(i) vfree(*per_cpu_ptr(scratches, i)); Trying to free non existent page, causing warning: trying to vfree existent vm area. ... } Fix this breakage by updating ipcomp_scrtches with NULL when scratches is freed
A vulnerability in the Linux kernel's IPComp (IP Payload Compression Protocol) scratch management can lead to a NULL pointer dereference. This issue occurs in the xfrm (IPsec transformation) module when the function ipcomp_alloc_scratches() fails to allocate memory. The ipcomp_scratches variable retains an obsolete address, which, when freed using ipcomp_free_scratches(), attempts to vfree a non-existent virtual memory area. This mismanagement triggers a warning about trying to vfree an existing VM area, indicating a potential denial-of-service condition.
The vulnerability has been addressed by updating the ipcomp_scratches variable to NULL when the allocated scratches are freed. Users should apply the latest patches available in the Linux kernel stable tree to mitigate this issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/03155680191ef0f004b1d6a5714c5b8cd271ab61 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/18373ed500f7cd53e24d9b0bd0f1c09d78dba87e | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/1e8abde895b3ac6a368cbdb372e8800c49e73a28 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/2c19945ce8095d065df550e7fe350cd5cc40c6e6 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8a04d2fc700f717104bfb95b0f6694e448a4537f | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a39f456d62810c0efb43cead22f98d95b53e4b1a | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/be81c44242b20fc3bdcc73480ef8aaee56f5d0b6 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/debca61df6bc2f65e020656c9c5b878d6b38d30f | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/f3bdba4440d82e0da2b1bfc35d3836c8a8e00677 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 22, 2025 | New CVE Received | kernel.org |
Volerion