CVE-2022-49990

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

HIGH
7.8
CVSS Score
Published: June 18, 2025 at 11:00 AM UTC
Updated: October 15, 2026 at 10:17 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.14.5 ≤ v < 4.19.2574.20 ≤ v < 5.4.2124.4.105 ≤ v < 4.54.9.68 ≤ v < 4.105.11 ≤ v < 5.15.645.16 ≤ v < 5.19.65.5 ≤ v < 5.10.140232b47b3c88af1da737cd7760f247c4ed58168cf4.14.54.4.1054.9.686.06.0 rc16.0 rc28d9047f8b967ce6181fd824ae922978e1b055cc09e51ee1b76efc7b5e9404010793a39fde0e03cb7b8e212c599082896a180a18a0c9bd529526590be
Vendor states this is fixed in 13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9 (fixed)
Vendor states this is fixed in 25a95303b9e513cd2978aacc385d06e6fec23d07 (fixed)
Vendor states this is fixed in 297ae7e87a87a001dd3dfeac1cb26a42fd929708 (fixed)
Vendor states this is fixed in 8195e065abf3df84eb0ad2987e76a40f21d1791c (fixed)
Vendor states this is fixed in cacd522e6652fbc2dc0cc6ae11c4e30782fef14b (fixed)
Vendor states this is fixed in fbdc482d43eda40a70de4b0155843d5472f6de62 (fixed)
Affected range stops below 4.10, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.15 (unaffected)
Vendor states this is fixed in 4.19.257 (unaffected)
Affected range stops below 4.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.10.140 (unaffected)
Vendor states this is fixed in 5.15.64 (unaffected)
Vendor states this is fixed in 5.19.6 (unaffected)
Vendor states this is fixed in 5.4.212 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/25a95303b9e513cd2978aacc385d06e6fec23d07
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/297ae7e87a87a001dd3dfeac1cb26a42fd929708
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8195e065abf3df84eb0ad2987e76a40f21d1791c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cacd522e6652fbc2dc0cc6ae11c4e30782fef14b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fbdc482d43eda40a70de4b0155843d5472f6de62

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card