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().
Published: 2026-05-27
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw originates in the arch_set_shadow_stack_status() routine on ARM64. When alloc_gcs() fails, it returns an error‑encoded pointer that should be detected with IS_ERR_VALUE(). The routine incorrectly checks only for a NULL pointer, allowing an error pointer to be interpreted as a valid GCS address. Using this invalid address can cause the kernel to read from or write to an unintended region, leading to memory corruption or a kernel panic. This weakness is categorized as CWE‑390 (Error Handling).

Affected Systems

Any Linux kernel running on ARM64 hardware that does not yet contain the commit adding IS_ERR_VALUE() error checking is vulnerable. The advisory does not specify particular release numbers, so any build before the patch is affected. The vulnerability applies across all Linux distributions that ship the kernel for ARM64, except where the kernel version includes the fix.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while the EPSS score of less than 1% suggests a low likelihood of exploitation in the wild. Because the flaw requires a failure in alloc_gcs() and subsequent use of the error pointer, it likely needs local privileges or a specific trigger such as a kernel memory mapping operation. The vulnerability is not listed in the CISA KEV catalog, and no public exploit is currently known. Overall, the risk is moderate but warrants timely remediation.

Generated by OpenCVE AI on May 28, 2026 at 17:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that includes the arch_set_shadow_stack_status error handling fix (commit that adds IS_ERR_VALUE() checking).
  • If updating the kernel is not immediately feasible, disable or remove GCS/Shadow Stack support through configuration options to avoid executing the vulnerable code path.
  • Continuously monitor system logs, such as dmesg, for GCS‑related error messages; investigate any anomalous entries promptly.

Generated by OpenCVE AI on May 28, 2026 at 17:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 16:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-682

Thu, 28 May 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-390
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Wed, 27 May 2026 21:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-682

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
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().
Title arm64/gcs: Fix error handling in arch_set_shadow_stack_status()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:16:43.350Z

Reserved: 2026-05-13T15:03:33.081Z

Link: CVE-2026-45876

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:01.280

Modified: 2026-06-17T10:52:39.173

Link: CVE-2026-45876

cve-icon Redhat

Severity : Low

Publid Date: 2026-05-27T00:00:00Z

Links: CVE-2026-45876 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T17:45:22Z

Weaknesses
  • CWE-390

    Detection of Error Condition Without Action