1. Accueil
  2. Vulnérabilités
  3. CVE-2022-49990

CVE-2022-49990

s390: fix double free of GS and RI CBs on fork() failure

Publiée le 18 juin 2025 · modifiée le 15 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 36/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: s390: fix double free of GS and RI CBs on fork() failure The pointers for guarded storage and runtime instrumentation control blocks are stored in the thread_struct of the associated task. These pointers are initially copied on fork() via arch_dup_task_struct() and then cleared via copy_thread() before fork() returns. If fork() happens to fail after the initial task dup and before copy_thread(), the newly allocated task and associated thread_struct memory are freed via free_task() -> arch_release_task_struct(). This results in a double free of the guarded storage and runtime info structs because the fields in the failed task still refer to memory associated with the source task. This problem can manifest as a BUG_ON() in set_freepointer() (with CONFIG_SLAB_FREELIST_HARDENED enabled) or KASAN splat (if enabled) when running trinity syscall fuzz tests on s390x. To avoid this problem, clear the associated pointer fields in arch_dup_task_struct() immediately after the new task is copied. Note that the RI flag is still cleared in copy_thread() because it resides in thread stack memory and that is where stack info is copied.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (12 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux de 4.4.105 (inclus) à 4.5 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.9.68 (inclus) à 4.10 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.14.5 (inclus) à 4.15 (exclu) — CNA (éditeur ou attributeur)
Linux 4.15 — CNA (éditeur ou attributeur)
Linux kernel de 4.4.105 (inclus) à 4.5 (exclu) — NVD
Linux kernel de 4.9.68 (inclus) à 4.10 (exclu) — NVD
Linux kernel de 4.14.5 (inclus) à 4.19.257 (exclu) — NVD
Linux kernel de 4.20 (inclus) à 5.4.212 (exclu) — NVD
Linux kernel de 5.5 (inclus) à 5.10.140 (exclu) — NVD
Linux kernel de 5.11 (inclus) à 5.15.64 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 5.19.6 (exclu) — NVD
Linux kernel 6.0 — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-415 · Corruption mémoire

Comment sont obtenues et calculées ces données