CVE-2022-49804
Last modified
CVE-2022-49804 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.18.1, < 6.0.10 | — |
| Linux | Linux Kernel | 5.18 | — |
| Linux | Linux Kernel | 6.1 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-49804?
How severe is CVE-2022-49804?
How do I fix CVE-2022-49804?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-49799In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2022-4980General Bytes Crypto Application Server (CAS) beginning with…9.3
- CVE-2022-49800In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49801In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49802In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49803In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49805In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49806In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49807In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49808In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49809In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-4981A vulnerability was detected in DCMTK up to 3.6.7. The impac…5.5
Are you affected by CVE-2022-49804?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
