7.8high
riscv: kvm: Fix out-of-bounds array access
- Severity
- 7.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: kvm: Fix out-of-bounds array access In kvm_riscv_vcpu_sbi_init() the entry->ext_idx can contain an out-of-bound index. This is used as a special marker for the base extensions, that cannot be disabled. However, when traversing the extensions, that special marker is not checked prior indexing the array. Add an out-of-bounds check to the function.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 56d8a385b60556019ecb45d6098830c9ef6a13e0 before 3c49e1084a5df99807fc43dd318c491e6cbaa168, from 56d8a385b60556019ecb45d6098830c9ef6a13e0 before b1af648f0d610665c956ea4604d9f797e5c7e991, from 56d8a385b60556019ecb45d6098830c9ef6a13e0 before 332fa4a802b16ccb727199da685294f85f9880cb, 6.7 Not affected: before 6.7, from 6.11.11 up to 6.11.*, from 6.12.2 up to 6.12.*, from 6.13 up to * | CVE List |
| linux linux_kernel | from 6.7 before 6.11.11, from 6.12 before 6.12.2 | NVD |
All scores
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: riscv: kvm: Fix out-of-bounds array access In kvm_riscv_vcpu_sbi_init() the entry->ext_idx can contain an out-of-bound index. This is used as a special marker for the base extensions, that cannot be disabled. However, when traversing the extensions, that special marker is not checked prior indexing the array. Add an out-of-bounds check to the function.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: riscv: kvm: Fix out-of-bounds array access En kvm_riscv_vcpu_sbi_init(), entry->ext_idx puede contener un índice fuera de los límites. Esto se utiliza como un marcador especial para las extensiones base, que no se pueden deshabilitar. Sin embargo, al recorrer las extensiones, ese marcador especial no se verifica antes de indexar la matriz. Agregue una verificación fuera de los límites a la función.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-53228 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-53228 changed 2026-06-17 | Public domain |