CVE-2024-53228

published 27 Dec 2024 · updated 11 May 2026

riscv: kvm: Fix out-of-bounds array access

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 332fa4a802b16ccb727199da685294f85f9880cb, Kernel 3c49e1084a5df99807fc43dd318c491e6cbaa168 and Kernel b1af648f0d610665c956ea4604d9f797e5c7e991.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.7, >=56d8a385b60556019ecb45d6098830c9ef6a13e0 <332fa4a802b16ccb727199da685294f85f9880cb, >=56d8a385b60556019ecb45d6098830c9ef6a13e0 <3c49e1084a5df99807fc43dd318c491e6cbaa168, >=56d8a385b60556019ecb45d6098830c9ef6a13e0 <b1af648f0d610665c956ea4604d9f797e5c7e991332fa4a802b16ccb727199da685294f85f9880cb, 3c49e1084a5df99807fc43dd318c491e6cbaa168, b1af648f0d610665c956ea4604d9f797e5c7e991

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-53228 severity on Zeptric[![CVE-2024-53228](https://zeptric.io/badge/cve/CVE-2024-53228.svg)](https://zeptric.io/cve/CVE-2024-53228)