{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-49804",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-05-01T14:05:17.225Z",
        "datePublished": "2025-05-01T14:09:31.590Z",
        "dateUpdated": "2026-08-05T08:56:22.084Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:56:22.084Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ns390: avoid using global register for current_stack_pointer\n\nCommit 30de14b1884b (\"s390: current_stack_pointer shouldn't be a\nfunction\") made current_stack_pointer a global register variable like\non many other architectures. Unfortunately on s390 it uncovers old\ngcc bug which is fixed only since gcc-9.1 [gcc commit 3ad7fed1cc87\n(\"S/390: Fix PR89775. Stackpointer save/restore instructions removed\")]\nand backported to gcc-8.4 and later. Due to this bug gcc versions prior\nto 8.4 generate broken code which leads to stack corruptions.\n\nCurrent minimal gcc version required to build the kernel is declared\nas 5.1. It is not possible to fix all old gcc versions, so work\naround this problem by avoiding using global register variable for\ncurrent_stack_pointer."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The bug is broken s390 kernel code generation causing stack corruption in functions compiled after the global r15 register declaration; an attacker reaches it by making local syscalls that execute that kernel code, not via a network protocol path.\nAC:L - On a kernel built with the vulnerable GCC, corrupted prologues/epilogues execute deterministically when those functions run; an attacker can reliably exercise them via ordinary syscalls with no race or uncontrolled victim state.\nPR:L - Any unprivileged local user can invoke syscalls that enter kernel code compiled with the broken stack-pointer save/restore, so only a normal local account is required, not root or init-namespace admin.\nUI:N - Exploitation does not need a victim action such as mounting a filesystem or opening a file; the attacker triggers the vulnerable kernel paths themselves.\nS:U - Impact is privilege escalation and memory corruption within the host kernel's security authority, not a VM/hypervisor escape or other cross-boundary authority change.\nC:H - Kernel stack corruption from omitted r15 save/restore can overwrite frames and adjacent state, which is defensibly leveraged for arbitrary kernel memory disclosure.\nI:H - The same stack corruption enables control-flow hijacking and arbitrary kernel writes (CWE-787), so integrity impact is high rather than a pure crash.\nA:H - Broken stack frames cause kernel oopses, panics, or hangs when corrupted return addresses or frame data are used, so availability impact is high."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "arch/s390/include/asm/processor.h"
                    ],
                    "versions": [
                        {
                            "version": "30de14b1884ba609fc1acfba5b40309e3a6ccefe",
                            "lessThan": "a478952a8ac44e32316dc046a063a7dc34825aa6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "30de14b1884ba609fc1acfba5b40309e3a6ccefe",
                            "lessThan": "e3c11025bcd2142a61abe5806b2f86a0e78118df",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "arch/s390/include/asm/processor.h"
                    ],
                    "versions": [
                        {
                            "version": "5.18",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.18",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.10",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.18",
                                    "versionEndExcluding": "6.0.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.18",
                                    "versionEndExcluding": "6.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/a478952a8ac44e32316dc046a063a7dc34825aa6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e3c11025bcd2142a61abe5806b2f86a0e78118df"
                }
            ],
            "title": "s390: avoid using global register for current_stack_pointer",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}