# CVE-2026-45876: arm64/gcs: Fix error handling in arch_set_shadow_stack_status()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-02)
- Published: 2026-05-27T12:16:43.350Z
- Modified: 2026-06-25T21:11:36.013Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

arm64/gcs: Fix error handling in arch_set_shadow_stack_status()

alloc_gcs() returns an error-encoded pointer on failure, which comes
from do_mmap(), not NULL.

The current NULL check fails to detect errors, which could lead to using
an invalid GCS address.

Use IS_ERR_VALUE() to properly detect errors, consistent with the
check in gcs_alloc_thread_stack().

(As written by CVE List.)

## Affected

- Linux Linux: from b57180c75c7ebff6613886cb69ef6e283a10358b before c787a235deb33be6eda40beee8f561da5fd8cb8c; from b57180c75c7ebff6613886cb69ef6e283a10358b before a4741114c9622346c4bbb8cc2bbd88153616ffaf; from b57180c75c7ebff6613886cb69ef6e283a10358b before 53c998527ffa60f9deda8974a11ad39790684159; 6.13 (not affected: before 6.13; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.13 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/c787a235deb33be6eda40beee8f561da5fd8cb8c> (patch)
- <https://git.kernel.org/stable/c/a4741114c9622346c4bbb8cc2bbd88153616ffaf> (patch)
- <https://git.kernel.org/stable/c/53c998527ffa60f9deda8974a11ad39790684159> (patch)

## Sources

- CVE List: [CVE-2026-45876](https://www.cve.org/CVERecord?id=CVE-2026-45876), CVE Terms of Use, modified 2026-05-27
- NVD: [CVE-2026-45876](https://nvd.nist.gov/vuln/detail/CVE-2026-45876), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-45876 · Whole record: https://cve.day/CVE-2026-45876.json · Rebuilt by cve.day 2026-11-25T22:59:22.486Z
