VDB

CVE-2022-49804

CVE-2022-49804 PUBLISHED CVSS 7.8 HIGH

s390: avoid using global register for current_stack_pointer

Reported by linux · Published May 1, 2025

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.

EPSS 0.19% · 9.2th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.0.10

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.19%
9.2th percentile

Affected products

VendorProductVersions
LinuxLinux30de14b1884ba609fc1acfba5b40309e3a6ccefe, 30de14b1884ba609fc1acfba5b40309e3a6ccefe
LinuxLinux5.18, 0, 6.0.10
LinuxLinux6.0.10, 0, 6.1
linuxlinux_kernel5.18, 5.18

Timeline

  • May 1, 2025 CVE Published
  • May 2, 2025 EPSS Score (30 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • May 23, 2026 Coalition ESS Score
  • Jun 2, 2026 Security Advisory
  • Aug 5, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-49804
vulnetix vdb fixes CVE-2022-49804

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-49804/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›