CVE-2024-53228

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

State
Published
Severity
7.8 High
Published
Dec 27, 2024
Updated
May 11, 2026
Reserved
Nov 19, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-129 Improper Validation of Array Index

Affected Products

ProductVersions
LinuxLinux
  • 56d8a385b60556019ecb45d6098830c9ef6a13e0 to before 3c49e1084a5df99807fc43dd318c491e6cbaa168Affected
  • 56d8a385b60556019ecb45d6098830c9ef6a13e0 to before b1af648f0d610665c956ea4604d9f797e5c7e991Affected
  • 56d8a385b60556019ecb45d6098830c9ef6a13e0 to before 332fa4a802b16ccb727199da685294f85f9880cbAffected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.11.11 through 6.11.*Not affected
  • 6.12.2 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.