CVE-2022-49804: s390: avoid using global register for current_stack_pointer

Published May 1, 2025
·
Updated

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

s390: avoid using global register for currentstackpointer

Commit 30de14b1884b ("s390: currentstackpointer shouldn't be a function") made currentstackpointer 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 currentstackpointer.

Affected Software

13 affected components
GNU gcc<8.4
Linux Linux kernel>=5.18.1<6.0.10
Linux Linux kernel=5.18
Linux Linux kernel=5.18-rc3
Linux Linux kernel=5.18-rc4
Linux Linux kernel=5.18-rc5
Linux Linux kernel=5.18-rc6
Linux Linux kernel=5.18-rc7
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4
Linux Linux kernel=6.1-rc5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel (S/390 fix PR89775) to a version that resolves this vulnerability.

    Patch 30de14b1884b
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 3ad7fed1cc87
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch PR89775

Event History

May 1, 2025
CVE Published
via MITRE·02:09 PM
Data Sourced
via MITRE·02:09 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-49804?

CVE-2022-49804 has been classified as a moderate severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2022-49804?

To fix CVE-2022-49804, update to the latest version of the affected Linux kernel or apply the recommended patch.

3

Which versions of the Linux kernel are affected by CVE-2022-49804?

CVE-2022-49804 affects specific versions of the Linux kernel prior to the inclusion of the patch that resolves the issue.

4

What type of vulnerability is CVE-2022-49804?

CVE-2022-49804 is a vulnerability related to improper use of global registers in the s390 architecture of the Linux kernel.

5

Is CVE-2022-49804 exploitable?

Yes, if unpatched, CVE-2022-49804 could potentially be exploited to affect system stability or security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203