Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-53228

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 56d8a385b60556019ecb45d6098830c9ef6a13e0 to < 3c49e1084a5df99807fc43dd318c491e6cbaa168affected
  • 56d8a385b60556019ecb45d6098830c9ef6a13e0 to < b1af648f0d610665c956ea4604d9f797e5c7e991affected
  • 56d8a385b60556019ecb45d6098830c9ef6a13e0 to < 332fa4a802b16ccb727199da685294f85f9880cbaffected

Linux Linux

Default version status: affected

  • 6.7affected
  • 0 to < 6.7unaffected
  • 6.11.11 to ≤ 6.11.*unaffected
  • 6.12.2 to ≤ 6.12.*unaffected
  • 6.13 to ≤ *unaffected

References