{"id":"CVE-2025-39815","summary":"RISC-V: KVM: fix stack overrun when loading vlenb","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRISC-V: KVM: fix stack overrun when loading vlenb\n\nThe userspace load can put up to 2048 bits into an xlen bit stack\nbuffer.  We want only xlen bits, so check the size beforehand.","modified":"2026-08-12T03:51:37.215455328Z","published":"2025-09-16T13:00:16.250Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39815.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6d28659b692a0212f360f8bd8a58712b339f9aac"},{"type":"WEB","url":"https://git.kernel.org/stable/c/799766208f09f95677a9ab111b93872d414fbad7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c76bf8359188a11f8fd790e5bbd6077894a245cc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39815.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39815"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2fa290372dfe7dd248b1c16f943f273a3e674f22"},{"fixed":"c76bf8359188a11f8fd790e5bbd6077894a245cc"},{"fixed":"6d28659b692a0212f360f8bd8a58712b339f9aac"},{"fixed":"799766208f09f95677a9ab111b93872d414fbad7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39815.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.8.0"},{"fixed":"6.12.45"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.16.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39815.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}