CVE-2022-50569

CVE-2022-50569

High · published October 22, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
6.2
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00172 · 6.2th percentile
Published
2025-10-22T18:15Z
References (9)
EPSS history
Timeline
  • 22 OCT 13:23Z
    xfrm: Update ipcomp_scratches with NULL when freed
    cvelistv5