What’s Vulnerable › Vulnerabilities

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

How to fix

Upgrade to a fixed version: Linux kernel 6.11.11, 6.12.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-53228 or the next vulnerability affects your stack