# CVE-2025-39815: RISC-V: KVM: fix stack overrun when loading vlenb

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-16T13:00:16.250Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

RISC-V: KVM: fix stack overrun when loading vlenb

The userspace load can put up to 2048 bits into an xlen bit stack
buffer.  We want only xlen bits, so check the size beforehand.

(As written by CVE List.)

## Affected

- Linux Linux: from 2fa290372dfe7dd248b1c16f943f273a3e674f22 before c76bf8359188a11f8fd790e5bbd6077894a245cc; from 2fa290372dfe7dd248b1c16f943f273a3e674f22 before 6d28659b692a0212f360f8bd8a58712b339f9aac; from 2fa290372dfe7dd248b1c16f943f273a3e674f22 before 799766208f09f95677a9ab111b93872d414fbad7; 6.8 (not affected: before 6.8; from 6.12.45 up to 6.12.*; from 6.16.5 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.8 before 6.12.45; from 6.13 before 6.16.5; 6.17

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c76bf8359188a11f8fd790e5bbd6077894a245cc> (patch)
- <https://git.kernel.org/stable/c/6d28659b692a0212f360f8bd8a58712b339f9aac> (patch)
- <https://git.kernel.org/stable/c/799766208f09f95677a9ab111b93872d414fbad7> (patch)

## Sources

- CVE List: [CVE-2025-39815](https://www.cve.org/CVERecord?id=CVE-2025-39815), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39815](https://nvd.nist.gov/vuln/detail/CVE-2025-39815), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39815 · Whole record: https://cve.day/CVE-2025-39815.json · Rebuilt by cve.day 2026-11-25T22:59:04.725Z
