CVE-2022-49804
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.0.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 30de14b1884ba609fc1acfba5b40309e3a6ccefe, 30de14b1884ba609fc1acfba5b40309e3a6ccefe |
| Linux | Linux | 5.18, 0, 6.0.10 |
| Linux | Linux | 6.0.10, 0, 6.1 |
| linux | linux_kernel | 5.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