CVE-2024-53228·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.2
- Published
- 2024-12-27
Affected versions
From: 6.12
Until: 6.12.2
Fixed in: 6.12.2
How to fix this CVE
Update your Linux kernel to version 6.12.2 or later to patch a critical memory access vulnerability in the RISC-V KVM subsystem. This vulnerability allows out-of-bounds array indexing that could lead to kernel memory corruption or system crashes. Apply the security update immediately using your distribution's package manager to ensure your virtualization infrastructure is protected.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and compare against 6.12.2
- Step 2: Verify if KVM for RISC-V is enabled with `grep -i kvm /boot/config-$(uname -r)` or `zgrep CONFIG_KVM /proc/config.gz`
- Step 3: Search kernel logs for memory corruption or NULL pointer dereference errors related to KVM with `sudo journalctl -b | grep -i 'kvm\|page fault\|segfault'`
- Step 4: After patching, confirm the new kernel version is active with `uname -r` and validate KVM stability by restarting any virtual machines
FAQ
What is CVE-2024-53228?
CVE-2024-53228 is a memory safety vulnerability in the Linux kernel's RISC-V KVM implementation where an unchecked out-of-bounds index is used to access an extensions array, potentially causing kernel memory corruption or crashes during virtual machine initialization.
Is CVE-2024-53228 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available, though system administrators should still apply patches promptly as a precautionary measure.
What versions of Kernel are affected by CVE-2024-53228?
Linux kernel versions 6.12 through 6.12.1 on RISC-V systems are affected; the vulnerability is resolved in version 6.12.2 and later.
How do I check if my server is vulnerable to CVE-2024-53228?
Run `uname -r` to display your kernel version; if it shows 6.12.0 or 6.12.1, your system is vulnerable. Additionally, verify RISC-V KVM support with `grep CONFIG_KVM /boot/config-$(uname -r)` to confirm the vulnerable component is present.
Does Defensia detect CVE-2024-53228?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-53228 will appear in your dashboard with remediation steps and patch availability for your distribution.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-53228. Free for 1 server.
Get started free