What’s Vulnerable › Vulnerabilities
CVE-2024-53228: riscv: kvm: Fix out-of-bounds array access
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-27 · updated 2026-06-17
- Weakness: CWE-129
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 products
- Linux kernel: from 6.7 before 6.11.11; from 6.12 before 6.12.2 — fixed in 6.11.11, 6.12.2
How to fix
Upgrade to a fixed version: Linux kernel 6.11.11, 6.12.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/332fa4a802b16ccb727199da685294f85f9880cb
- https://git.kernel.org/stable/c/3c49e1084a5df99807fc43dd318c491e6cbaa168
- https://git.kernel.org/stable/c/b1af648f0d610665c956ea4604d9f797e5c7e991
Get alerted when CVE-2024-53228 or the next vulnerability affects your stack