CVE-2024-53228 Details
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.
A vulnerability in the Linux kernel's KVM implementation for RISC-V architecture allows for out-of-bounds array access. This issue arises in the 'kvm_riscv_vcpu_sbi_init' function, where the 'entry->ext_idx' can contain an invalid index. This index serves as a special marker for base extensions that cannot be disabled. However, the function does not validate this marker before using it to index an array, leading to potential memory access violations. The vulnerability affects the Linux kernel stable tree.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched. The specific commit addressing this issue is available in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/332fa4a802b16ccb727199da685294f85f9880cb | kernel.org | Patch |
| https://git.kernel.org/stable/c/3c49e1084a5df99807fc43dd318c491e6cbaa168 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b1af648f0d610665c956ea4604d9f797e5c7e991 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-129 | Improper Validation of Array Index | [email protected] |
| CWE-129 | Improper Validation of Array Index | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.7, < 6.11.11 >= 6.12, < 6.12.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Jan 16, 2025 | Initial Analysis | [email protected] |
| Dec 27, 2024 | New CVE Received | kernel.org |