{"id":"CVE-2022-49990","title":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390: fix double free of GS and RI CBs on fork() failure\n\nThe pointers for guarded storage and runtime instrumentation control\nblocks are stored in the thread_struct of…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390: fix double free of GS and RI CBs on fork() failure\n\nThe pointers for guarded storage and runtime instrumentation control\nblocks are stored in the thread_struct of…","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-415","CWE-1341"],"vendor":"linux","product":"linux_kernel","affected":["linux_kernel >= 4.4.105, < 4.5","linux_kernel >= 4.9.68, < 4.10","linux_kernel >= 4.14.5, < 4.19.257","linux_kernel >= 4.20, < 5.4.212","linux_kernel >= 5.5, < 5.10.140","linux_kernel >= 5.11, < 5.15.64","linux_kernel >= 5.16, < 5.19.6","linux_kernel = 6.0"],"patched":["linux_kernel 5.19.6"],"published":"2025-06-18","updated":"2026-10-15","sourceUpdated":"2026-10-15T22:17:26.823","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-49990","references":[{"url":"https://git.kernel.org/stable/c/13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/25a95303b9e513cd2978aacc385d06e6fec23d07","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/297ae7e87a87a001dd3dfeac1cb26a42fd929708","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8195e065abf3df84eb0ad2987e76a40f21d1791c","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/cacd522e6652fbc2dc0cc6ae11c4e30782fef14b","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/fbdc482d43eda40a70de4b0155843d5472f6de62","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49990.json"},{"url":"https://access.redhat.com/security/cve/CVE-2022-49990"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2373524"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-49990"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49990"},{"url":"https://lore.kernel.org/linux-cve-announce/2025061824-CVE-2022-49990-a8af@gregkh/T"},{"url":"https://access.redhat.com/errata/RHSA-2023:2458"}],"tags":["nvd","csaf","vex","red-hat","cve.org","score-dispute"],"epss":0.00267,"epssPercentile":0.18745,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:30:03.381873Z"},"scores":{"nvd":7.8,"vendor":5.5,"cna":7.8},"ingestedAt":"2026-10-15T21:45:11.284Z","slug":"CVE-2022-49990","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\ns390: fix double free of GS and RI CBs on fork() failure\n\nThe pointers for guarded storage and runtime instrumentation control\nblocks are stored in the thread_struct of the associated task. These\npointers are initially copied on fork() via arch_dup_task_struct()\nand then cleared via copy_thread() before fork() returns. If fork()\nhappens to fail after the initial task dup and before copy_thread(),\nthe newly allocated task and associated thread_struct memory are\nfreed via free_task() -> arch_release_task_struct(). This results in\na double free of the guarded storage and runtime info structs\nbecause the fields in the failed task still refer to memory\nassociated with the source task.\n\nThis problem can manifest as a BUG_ON() in set_freepointer() (with\nCONFIG_SLAB_FREELIST_HARDENED enabled) or KASAN splat (if enabled)\nwhen running trinity syscall fuzz tests on s390x. To avoid this\nproblem, clear the associated pointer fields in\narch_dup_task_struct() immediately after the new task is copied.\nNote that the RI flag is still cleared in copy_thread() because it\nresides in thread stack memory and that is where stack info is\ncopied.\n\n## Affected\n\n- `linux_kernel >= 4.4.105, < 4.5`\n- `linux_kernel >= 4.9.68, < 4.10`\n- `linux_kernel >= 4.14.5, < 4.19.257`\n- `linux_kernel >= 4.20, < 5.4.212`\n- `linux_kernel >= 5.5, < 5.10.140`\n- `linux_kernel >= 5.11, < 5.15.64`\n- `linux_kernel >= 5.16, < 5.19.6`\n- `linux_kernel = 6.0`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `linux_kernel 5.19.6`\n\n## Vendor advisories\n\n- **RHSA-2023:2458** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 9), Red Hat Enterprise Linux CRB (v. 9) · released 2023-05-09 · [advisory](https://access.redhat.com/errata/RHSA-2023:2458)\n- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49990.json)","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":230037,"id":"CVE-2022-49990","ts":1793124772841,"field":"cvss","old":"5.5","new":"7.8"},{"seq":230036,"id":"CVE-2022-49990","ts":1793124772841,"field":"severity","old":"medium","new":"high"},{"seq":222963,"id":"CVE-2022-49990","ts":1792151816244,"field":"cvss","old":"7.8","new":"5.5"},{"seq":222962,"id":"CVE-2022-49990","ts":1792151816244,"field":"severity","old":"high","new":"medium"}]}