{"api_version":"1","generated_at":"2026-10-11T23:07:53+00:00","cve":"CVE-2022-49990","urls":{"html":"https://cve.report/CVE-2022-49990","api":"https://cve.report/api/cve/CVE-2022-49990.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-49990","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-49990"},"summary":{"title":"s390: fix double free of GS and RI CBs on fork() failure","description":"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 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.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-06-18 11:15:26","updated_at":"2026-08-04 10:18:02"},"problem_types":["CWE-415"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/25a95303b9e513cd2978aacc385d06e6fec23d07","name":"https://git.kernel.org/stable/c/25a95303b9e513cd2978aacc385d06e6fec23d07","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cacd522e6652fbc2dc0cc6ae11c4e30782fef14b","name":"https://git.kernel.org/stable/c/cacd522e6652fbc2dc0cc6ae11c4e30782fef14b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8195e065abf3df84eb0ad2987e76a40f21d1791c","name":"https://git.kernel.org/stable/c/8195e065abf3df84eb0ad2987e76a40f21d1791c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9","name":"https://git.kernel.org/stable/c/13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/297ae7e87a87a001dd3dfeac1cb26a42fd929708","name":"https://git.kernel.org/stable/c/297ae7e87a87a001dd3dfeac1cb26a42fd929708","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fbdc482d43eda40a70de4b0155843d5472f6de62","name":"https://git.kernel.org/stable/c/fbdc482d43eda40a70de4b0155843d5472f6de62","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-49990","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49990","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d9047f8b967ce6181fd824ae922978e1b055cc0 25a95303b9e513cd2978aacc385d06e6fec23d07 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d9047f8b967ce6181fd824ae922978e1b055cc0 cacd522e6652fbc2dc0cc6ae11c4e30782fef14b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d9047f8b967ce6181fd824ae922978e1b055cc0 297ae7e87a87a001dd3dfeac1cb26a42fd929708 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d9047f8b967ce6181fd824ae922978e1b055cc0 8195e065abf3df84eb0ad2987e76a40f21d1791c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d9047f8b967ce6181fd824ae922978e1b055cc0 fbdc482d43eda40a70de4b0155843d5472f6de62 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8d9047f8b967ce6181fd824ae922978e1b055cc0 13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e51ee1b76efc7b5e9404010793a39fde0e03cb7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 232b47b3c88af1da737cd7760f247c4ed58168cf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b8e212c599082896a180a18a0c9bd529526590be git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.4.105 4.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.9.68 4.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.14.5 4.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.19.257 4.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.212 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.140 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.64 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.19.6 5.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.0 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"49990","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["arch/s390/kernel/process.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"25a95303b9e513cd2978aacc385d06e6fec23d07","status":"affected","version":"8d9047f8b967ce6181fd824ae922978e1b055cc0","versionType":"git"},{"lessThan":"cacd522e6652fbc2dc0cc6ae11c4e30782fef14b","status":"affected","version":"8d9047f8b967ce6181fd824ae922978e1b055cc0","versionType":"git"},{"lessThan":"297ae7e87a87a001dd3dfeac1cb26a42fd929708","status":"affected","version":"8d9047f8b967ce6181fd824ae922978e1b055cc0","versionType":"git"},{"lessThan":"8195e065abf3df84eb0ad2987e76a40f21d1791c","status":"affected","version":"8d9047f8b967ce6181fd824ae922978e1b055cc0","versionType":"git"},{"lessThan":"fbdc482d43eda40a70de4b0155843d5472f6de62","status":"affected","version":"8d9047f8b967ce6181fd824ae922978e1b055cc0","versionType":"git"},{"lessThan":"13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9","status":"affected","version":"8d9047f8b967ce6181fd824ae922978e1b055cc0","versionType":"git"},{"status":"affected","version":"9e51ee1b76efc7b5e9404010793a39fde0e03cb7","versionType":"git"},{"status":"affected","version":"232b47b3c88af1da737cd7760f247c4ed58168cf","versionType":"git"},{"status":"affected","version":"b8e212c599082896a180a18a0c9bd529526590be","versionType":"git"},{"lessThan":"4.5","status":"affected","version":"4.4.105","versionType":"semver"},{"lessThan":"4.10","status":"affected","version":"4.9.68","versionType":"semver"},{"lessThan":"4.15","status":"affected","version":"4.14.5","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["arch/s390/kernel/process.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.15"},{"lessThan":"4.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"4.19.*","status":"unaffected","version":"4.19.257","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.212","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.140","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.64","versionType":"semver"},{"lessThanOrEqual":"5.19.*","status":"unaffected","version":"5.19.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.0","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.19.257","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.212","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.140","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.64","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.19.6","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.0","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.105","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9.68","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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 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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-08-04T09:07:20.375Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/25a95303b9e513cd2978aacc385d06e6fec23d07"},{"url":"https://git.kernel.org/stable/c/cacd522e6652fbc2dc0cc6ae11c4e30782fef14b"},{"url":"https://git.kernel.org/stable/c/297ae7e87a87a001dd3dfeac1cb26a42fd929708"},{"url":"https://git.kernel.org/stable/c/8195e065abf3df84eb0ad2987e76a40f21d1791c"},{"url":"https://git.kernel.org/stable/c/fbdc482d43eda40a70de4b0155843d5472f6de62"},{"url":"https://git.kernel.org/stable/c/13cccafe0edcd03bf1c841de8ab8a1c8e34f77d9"}],"title":"s390: fix double free of GS and RI CBs on fork() failure","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2022-49990","datePublished":"2025-06-18T11:00:51.035Z","dateReserved":"2025-06-18T10:57:27.386Z","dateUpdated":"2026-08-04T09:07:20.375Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-06-18 11:15:26","lastModifiedDate":"2026-08-04 10:18:02","problem_types":["CWE-415"],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.105","versionEndExcluding":"4.5","matchCriteriaId":"1CA907F3-954E-46E2-9D62-011352BFC8AD"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9.68","versionEndExcluding":"4.10","matchCriteriaId":"F852DBF1-7260-4E35-8D25-C8F8EEF895D3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14.5","versionEndExcluding":"4.19.257","matchCriteriaId":"32888C7E-F8E5-4CB9-94D8-DEA0CD7188B1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.4.212","matchCriteriaId":"BEFFBCD7-9B53-46AB-B3FD-53EAD80FD3E1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.140","matchCriteriaId":"A26216A8-920B-4892-A1EB-143451AFFC31"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.64","matchCriteriaId":"292F3687-ADC2-4F3D-9710-3BCAD11A52BE"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"5.19.6","matchCriteriaId":"89E99903-E16D-475D-954B-2BAC46C98262"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:*","matchCriteriaId":"E8BD11A3-8643-49B6-BADE-5029A0117325"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.0:rc2:*:*:*:*:*:*","matchCriteriaId":"5F0AD220-F6A9-4012-8636-155F1B841FAD"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"49990","Ordinal":"1","Title":"s390: fix double free of GS and RI CBs on fork() failure","CVE":"CVE-2022-49990","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"49990","Ordinal":"1","NoteData":"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 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.","Type":"Description","Title":"s390: fix double free of GS and RI CBs on fork() failure"}]}}}