# CVE-2024-53228: riscv: kvm: Fix out-of-bounds array access

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-12-27T13:50:16.843Z
- Modified: 2026-06-17T08:08:38.943Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.7 before 6.11.11; from 6.12 before 6.12.2

## Every score

- CISA-ADP: 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`
- NVD: 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`

## References

- <https://git.kernel.org/stable/c/3c49e1084a5df99807fc43dd318c491e6cbaa168> (patch)
- <https://git.kernel.org/stable/c/b1af648f0d610665c956ea4604d9f797e5c7e991> (patch)
- <https://git.kernel.org/stable/c/332fa4a802b16ccb727199da685294f85f9880cb> (patch)

## Sources

- CVE List: [CVE-2024-53228](https://www.cve.org/CVERecord?id=CVE-2024-53228), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-53228](https://nvd.nist.gov/vuln/detail/CVE-2024-53228), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53228 · Whole record: https://cve.day/CVE-2024-53228.json · Rebuilt by cve.day 2026-11-25T22:58:50.429Z
