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 arises when arch_set_shadow_stack_status() checks for a NULL return from alloc_gcs() while alloc_gcs() may return an error‑encoded pointer that is non‑NULL. The incorrect check allows the kernel to use an invalid GCS address, leading to memory corruption or a crash. This improper error handling can potentially be exploited by a malicious local user to gain elevated privileges or destabilize the system. (The attack vector is inferred to require local kernel access to trigger the error path.)

Affected Systems

Linux kernel on ARM64 architecture. All builds prior to the fix commit that added proper IS_ERR_VALUE() checking are affected. No precise version numbers are listed.

Risk and Exploitability

No CVSS or EPSS score is available, and the vulnerability is not listed in CISA KEV catalog. Exploitability depends on the attacker's ability to cause alloc_gcs() to fail, so the most likely scenario is local kernel exploitation that can lead to denial of service or privilege escalation. Given the lack of public exploit information, the risk is moderate but should be treated with due seriousness.

Generated by OpenCVE AI on May 27, 2026 at 20:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the arch_set_shadow_stack_status() error handling fix, ensuring that the commit adding IS_ERR_VALUE() handling is present.
  • If an immediate kernel upgrade is infeasible, consider disabling or restricting the ARM64 shadow stack feature through kernel configuration or sysctl options to reduce the attack surface while monitoring kernel logs for GCS‑related errors.
  • Implement standard kernel hardening measures such as enabling memory protection options and ensuring that systems are kept regularly updated with security patches.

Generated by OpenCVE AI on May 27, 2026 at 20:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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-05-27T14:48:31.480

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-27T20:45:25Z

Weaknesses