
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-39815 is a stack overrun vulnerability in the Linux kernel's RISC-V KVM implementation when loading the vlenb (vector length in bytes) register. The flaw allows a low-privileged local user to trigger a kernel stack buffer overrun by supplying a userspace value of up to 2048 bits into an xlen-bit stack buffer, where only xlen bits are intended. Affected kernel versions span from 6.8 through 6.12.44 and 6.13 through 6.16.4, as well as release candidates 6.17-rc1 through 6.17-rc3. It was disclosed on September 16, 2025, and carries a CVSS v3.1 base score of 5.5 (Medium) (Red Hat Advisory, Red Hat Bugzilla).
The root cause is a missing size check (CWE-121: Stack-based Buffer Overflow) in the RISC-V KVM code path responsible for restoring the vlenb register from userspace during VM state load. Because the RISC-V vector extension supports up to 2048-bit vector registers, a malicious or malformed userspace value can overflow the xlen-bit stack buffer allocated to hold the result. The fix, applied in commits to the stable kernel tree, adds a bounds check on the incoming size before copying data into the stack buffer (Red Hat Bugzilla, Kernel Patch 1, Kernel Patch 2, Kernel Patch 3). Exploitation requires local access with low privileges and targets systems running RISC-V hardware with KVM virtualization enabled.
Successful exploitation can cause a kernel crash or system instability, resulting in a denial of service (high availability impact). Because the overflow occurs in kernel space within the KVM subsystem, it could potentially corrupt adjacent kernel stack data, though no confidentiality or integrity impact has been confirmed. The scope is limited to RISC-V systems running affected Linux kernel versions with KVM enabled (Red Hat Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.017%, reflecting a very low probability of exploitation in the near term. Exploitation requires local, low-privileged access on a RISC-V system with KVM enabled, significantly limiting the attack surface (Red Hat Advisory).
Patches are available in Linux kernel versions 6.12.45 and 6.16.5, as well as the 6.17-rc4 release candidate. Distribution-specific updates have been issued by Ubuntu (USN-8095-1 through USN-8095-5, USN-8100-1, USN-8125-1, USN-8165-1) and Debian (DSA-6008-1). Administrators should apply kernel updates from their official distribution repositories as the primary remediation. As a secondary measure, limiting local user access to RISC-V KVM hosts reduces exposure until patching is feasible (Red Hat Advisory, Kernel Patch 1).
Fix availability across major Linux distributions and their releases.
bionic
linux
bionic (esm-infra)
linux
bionic (fips-updates)
linux-fips
bionic (fips)
linux-fips
devel
linux
focal
linux
focal (esm-infra)
linux
focal (fips-updates)
linux-fips
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."