CVE-2022-49804CWE-787

CVE-2022-49804

High · published May 1, 2025

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

In the Linux kernel, the following vulnerability has been resolved:

s390: avoid using global register for current_stack_pointer

Commit 30de14b1884b ("s390: current_stack_pointer shouldn't be a

function") made current_stack_pointer a global register variable like

on many other architectures. Unfortunately on s390 it uncovers old

gcc bug which is fixed only since gcc-9.1 [gcc commit 3ad7fed1cc87

("S/390: Fix PR89775. Stackpointer save/restore instructions removed")]

and backported to gcc-8.4 and later. Due to this bug gcc versions prior

to 8.4 generate broken code which leads to stack corruptions.

Current minimal gcc version required to build the kernel is declared

as 5.1. It is not possible to fix all old gcc versions, so work

around this problem by avoiding using global register variable for

current_stack_pointer.

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.00195 · 8.7th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2025-05-01T19:16Z
Affected products (12)
ProductVersionsFixed in
linux/linux_kernel≥ 5.18.1, < 6.0.106.0.10
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (2)
EPSS history
Timeline
  • 01 MAY 14:09Z
    s390: avoid using global register for current_stack_pointer
    cvelistv5