---
id: CVE-2022-49990
title: |-
  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…
summary: |-
  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…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-415
  - CWE-1341
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.4.105, < 4.5'
  - 'linux_kernel >= 4.9.68, < 4.10'
  - 'linux_kernel >= 4.14.5, < 4.19.257'
  - 'linux_kernel >= 4.20, < 5.4.212'
  - 'linux_kernel >= 5.5, < 5.10.140'
  - 'linux_kernel >= 5.11, < 5.15.64'
  - 'linux_kernel >= 5.16, < 5.19.6'
  - linux_kernel = 6.0
patched:
  - linux_kernel 5.19.6
published: '2025-06-18'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:17:26.823'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-49990'
references:
  - url: 'https://git.kernel.org/stable/c/13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/25a95303b9e513cd2978aacc385d06e6fec23d07'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/297ae7e87a87a001dd3dfeac1cb26a42fd929708'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8195e065abf3df84eb0ad2987e76a40f21d1791c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/cacd522e6652fbc2dc0cc6ae11c4e30782fef14b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/fbdc482d43eda40a70de4b0155843d5472f6de62'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49990.json
  - url: 'https://access.redhat.com/security/cve/CVE-2022-49990'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2373524'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2022-49990'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-49990'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2025061824-CVE-2022-49990-a8af@gregkh/T
  - url: 'https://access.redhat.com/errata/RHSA-2023:2458'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
  - score-dispute
epss: 0.00267
epssPercentile: 0.18745
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-15T21:30:03.381873Z'
scores:
  nvd: 7.8
  vendor: 5.5
  cna: 7.8
ingestedAt: '2026-10-15T21:45:11.284Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 4.4.105, < 4.5`
- `linux_kernel >= 4.9.68, < 4.10`
- `linux_kernel >= 4.14.5, < 4.19.257`
- `linux_kernel >= 4.20, < 5.4.212`
- `linux_kernel >= 5.5, < 5.10.140`
- `linux_kernel >= 5.11, < 5.15.64`
- `linux_kernel >= 5.16, < 5.19.6`
- `linux_kernel = 6.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.19.6`

## Vendor advisories

- **RHSA-2023:2458** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 9), Red Hat Enterprise Linux CRB (v. 9) · released 2023-05-09 · [advisory](https://access.redhat.com/errata/RHSA-2023:2458)
- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49990.json)
