CVE-2025-39815
Linux Debian vulnerability analysis and mitigation

Overview

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).

Technical details

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.

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

sid

linux: 6.16.5-1

Fixed

trixie

linux: 6.12.48-1

Fixed

Ubuntu

Fixed

bionic

linux

Not Affected

bionic (esm-infra)

linux

Not Affected

bionic (fips-updates)

linux-fips

Not Affected

bionic (fips)

linux-fips

Not Affected

devel

linux

Not Affected

focal

linux

Not Affected

focal (esm-infra)

linux

Not Affected

focal (fips-updates)

linux-fips

Not Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-44950CRITICAL9.5
  • Rocky Linux logoRocky Linux
  • libXfont-debuginfo
NoYesSep 10, 2026
CVE-2026-59679CRITICAL9.2
  • Rocky Linux logoRocky Linux
  • libXfont2-doc
NoYesSep 10, 2026
CVE-2026-88924HIGH7
  • Linux Debian logoLinux Debian
  • gvfs-afp
NoNoSep 10, 2026
CVE-2026-87933MEDIUM5.5
  • Linux Debian logoLinux Debian
  • cjson
NoNoSep 10, 2026
CVE-2026-61915MEDIUM4.2
  • Linux Debian logoLinux Debian
  • cyrus-imapd-doc-extra
NoNoSep 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management