First published: Thu May 01 2025(Updated: )
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.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
GNU Compiler Collection (GCC) | <8.4 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-49804 has been classified as a moderate severity vulnerability affecting the Linux kernel.
To fix CVE-2022-49804, update to the latest version of the affected Linux kernel or apply the recommended patch.
CVE-2022-49804 affects specific versions of the Linux kernel prior to the inclusion of the patch that resolves the issue.
CVE-2022-49804 is a vulnerability related to improper use of global registers in the s390 architecture of the Linux kernel.
Yes, if unpatched, CVE-2022-49804 could potentially be exploited to affect system stability or security.