1. Archivio CVE
  2. 2022
  3. CVE-2022-50569

CVE-2022-50569

7.8 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 7.8 – Alta

Descrizione

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

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
linux linux kernel >= 2.6.12 < 4.9.331 –
linux linux kernel >= 2.6.12 < 4.14.296 –
linux linux kernel >= 2.6.12 < 4.19.262 –
linux linux kernel >= 2.6.12 < 5.4.220 –
linux linux kernel >= 2.6.12 < 5.10.150 –
linux linux kernel >= 2.6.12 < 5.15.75 –
linux linux kernel >= 2.6.12 < 5.19.17 –
linux linux kernel >= 2.6.12 < 6.0.3 –
linux linux kernel >= 2.6.12 < 6.1 –
Tutte le 24.085 vulnerabilità di Linux Kernel