CVE-2025-39815

Description

A flaw was found in the Linux kernel's KVM (Kernel-based Virtual Machine) implementation for RISC-V. A local user can exploit this vulnerability to cause a Denial of Service (DoS) or potentially execute arbitrary code by triggering a stack-based buffer overflow. This issue occurs because the kernel fails to validate input size when loading vector length registers from user space, allowing excess data to overwrite the stack buffer.

Statement

This vulnerability does not affect Red Hat Enterprise Linux as the affected RISC-V virtualization code is not supported or present in shipped kernels. The flaw exists exclusively in the KVM implementation for RISC-V platforms when processing vector extension registers. Supported Red Hat hardware architectures are therefore not exposed to this flaw.

Understanding the Weakness (CWE)

Integrity

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.

Other

Technical Impact: Unexpected State

Subsequent write operations can produce undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.