CVE-2024-53228

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

High · published December 27, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
14.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00239 · 14.1th percentile
Published
2024-12-27T13:50Z
EPSS history
Timeline
  • 27 DEC 13:50Z
    riscv: kvm: Fix out-of-bounds array access
    cvelistv5