CVE-2026-138870

Description

A flaw was found in the Linux kernel's RISC-V architecture support. A local user can exploit this vulnerability by supplying an unvalidated memory address during shadow stack restoration, a security mechanism used to protect program execution flow. Because the kernel does not verify that the target address belongs to user space prior to performing a memory write operation, the kernel may overwrite sensitive memory space. This flaw leads to kernel memory corruption, potentially resulting in a system crash and denial of service.

Statement

This vulnerability is rated as an Important impact because an authenticated local attacker could leverage improper bounds verification to overwrite kernel memory, potentially leading to privilege escalation or a denial of service. The underlying defect is strictly confined to the Linux kernel implementation of user-space control flow integrity shadow stacks on the RISC-V architecture. Because Red Hat Enterprise Linux does not support the RISC-V architecture in production releases, typical Red Hat enterprise environments are not exposed to this flaw.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.8N/AN/A
Attack VectorLocalN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredLowN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityHighN/AN/A
Integrity ImpactHighN/AN/A
Availability ImpactHighN/AN/A

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

If the dereferencing operation is for a read, then the attack might allow reading of sensitive data, cause a crash, or set a variable to an unexpected value (since the value will be read from an unexpected memory location).

Availability

Technical Impact: DoS: Crash, Exit, or Restart

If the untrusted pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" or larger than expected by a read or write operation, the application may terminate unexpectedly.

Integrity,Confidentiality,Availability

Technical Impact: Execute Unauthorized Code or Commands; Modify Memory

If the pointer is dereferenced for a write operation, the attack might allow modification of critical state variables, cause a crash, or execute code. If the untrusted pointer is used in a function call, then the attacker might be able to call arbitrary functions.

Frequently Asked Questions

Want to get errata notifications? Sign up here.