Bug 2334363 (CVE-2024-53228) - CVE-2024-53228 kernel: riscv: kvm: Fix out-of-bounds array access
Summary: CVE-2024-53228 kernel: riscv: kvm: Fix out-of-bounds array access
Keywords:
Status: NEW
Alias: CVE-2024-53228
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-27 14:02 UTC by OSIDB Bzimport
Modified: 2025-01-20 06:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-27 14:02:01 UTC
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.

Comment 1 Avinash Hanwate 2024-12-28 14:33:26 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122736-CVE-2024-53228-0c5f@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.