Global Register Vulnerability in Linux Kernel - s390 Architecture

linux Updated 02 Oct 2025

Summary

01/05/2025
N/A
Yes i
Unrated
Not published

CVE-2022-49804: 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_sta... Affects linux versions < 6.0.10-1. Fixed in 6.0.10-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It is highly modular and supports a wide range of architectures, including s390, which is designed for IBM's mainframe systems. The kernel is responsible for managing system resources, and its integrity is crucial for system stability and security. This vulnerability specifically affects the s390 architecture, where a change in the handling of the current stack pointer has led to potential stack corruption issues.

Vulnerability Detail

In the Linux kernel, a vulnerability was introduced when the current_stack_pointer was made a global register variable. This change, made in commit 30de14b1884b, revealed a long-standing bug in older versions of the GCC compiler, specifically versions prior to 8.4. These versions generate faulty code that can lead to stack corruptions, posing significant risks to system stability and security. The minimal GCC version required to build the kernel is declared as 5.1, but the issue cannot be fixed in all older GCC versions, necessitating a workaround.

How To Fix

Minimum fixed version

6.0.10-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, avoid using the global register variable for current_stack_pointer in the kernel code. This is a temporary measure until the kernel can be updated to a version that resolves the issue.

Conclusion

The vulnerability CVE-2022-49804 in the Linux kernel for the s390 architecture poses significant risks due to stack corruption caused by older GCC versions. Users are advised to update their kernel to the patched version 6.0.10-1 or later to mitigate these risks. For those unable to update, a temporary workaround is available.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49804 is a vulnerability in the Linux kernel affecting the s390 architecture, which can lead to stack corruption due to a bug in older GCC versions.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

GCC versions prior to 8.4 are affected, as they generate broken code that can lead to stack corruption.

If you cannot update your GCC version, you should implement the workaround by avoiding the use of the global register variable for current_stack_pointer until you can upgrade.

Yes, the permanent fix is to update the Linux kernel to version 6.0.10-1 or later, which resolves the issue.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.0.10-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback