CVE-2024-36953·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr() vgic_v2_parse_attr() is responsible for finding the vCPU that matches the user-provided CPUID, which (of course) may not be valid. If the ID is invalid, kvm_get_vcpu_by_id() returns NULL, which isn't handled gracefully. Similar to the GICv3 uaccess flow, check that kvm_get_vcpu_by_id() actually returns something and fail the ioctl if not.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.8.10
- Published
- 2024-05-30
Affected versions
From: 6.7
Until: 6.8.10
Fixed in: 6.8.10
How to fix this CVE
Update your Linux kernel to version 6.8.10 or later to patch the vGIC-v2 null pointer dereference vulnerability. This fix adds proper validation when parsing vCPU attributes during KVM device operations, preventing kernel crashes when invalid CPU IDs are provided. Apply the update immediately to ensure system stability and prevent potential denial-of-service conditions.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version. Versions 6.7.x through 6.8.9 are vulnerable.
- Verify KVM is enabled by checking 'grep -i kvm /proc/cpuinfo' or 'lsmod | grep kvm'. If KVM modules are loaded, the system is at risk if running a vulnerable kernel version.
- Search kernel logs for vGIC-related errors using 'journalctl -u kernel | grep -i vgic' or 'dmesg | grep -i vgic' to identify any exploitation attempts.
- After patching, confirm the new kernel version with 'uname -r' and verify it is 6.8.10 or later, then reboot if needed and check 'uname -a' post-reboot.
FAQ
What is CVE-2024-36953?
CVE-2024-36953 is a null pointer dereference vulnerability in the Linux kernel's KVM vGIC-v2 device handling. When userspace provides an invalid vCPU ID during device attribute parsing, the kernel fails to validate that the lookup returned a valid vCPU, leading to a potential denial-of-service crash.
Is CVE-2024-36953 being actively exploited?
No, CVE-2024-36953 is not listed on CISA's Known Exploited Vulnerabilities catalog and no public exploit code is available. However, the vulnerability can be triggered by any local user with KVM access permissions.
What versions of Kernel are affected by CVE-2024-36953?
Linux kernel versions 6.7.x through 6.8.9 are affected. Kernel 6.8.10 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2024-36953?
Run 'uname -r' to display your kernel version. If the output shows 6.7.x or 6.8.0 through 6.8.9, your system is vulnerable. For a detailed check, also verify KVM is active with 'lsmod | grep kvm'.
Does Defensia detect CVE-2024-36953?
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-36953 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/01981276d64e542c177b243f7c979fee855d5487
- https://git.kernel.org/stable/c/17db92da8be5dd3bf63c01f4109fe47db64fc66f
- https://git.kernel.org/stable/c/3a5b0378ac6776c7c31b18e0f3c1389bd6005e80
- https://git.kernel.org/stable/c/4404465a1bee3607ad90a4c5f9e16dfd75b85728
- https://git.kernel.org/stable/c/6ddb4f372fc63210034b903d96ebbeb3c7195adb
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-36953. Free for 1 server.
Get started free