CVE-2021-47296·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: KVM: PPC: Fix kvm_arch_vcpu_ioctl vcpu_load leak vcpu_put is not called if the user copy fails. This can result in preempt notifier corruption and crashes, among other issues.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 5.13.6
- Published
- 2024-05-21
Affected versions
From: 5.11
Until: 5.13.6
Fixed in: 5.13.6
How to fix this CVE
Update your Linux kernel to version 5.13.6 or later to resolve a resource leak in KVM's PowerPC virtualization code. This vulnerability allows unprivileged local users to trigger preempt notifier corruption by failing user-space copy operations during vCPU I/O control, potentially leading to system instability or denial of service. Apply the patch immediately if you run KVM with PowerPC guests on affected kernel versions.
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 and confirm if it falls within the vulnerable range (5.11 to 5.13.5)
- Run 'cat /proc/cpuinfo | grep flags | grep -i vmx' or 'grep -i kvm /proc/modules' to verify KVM modules are loaded
- Search system logs with 'journalctl -xe | grep -i "kvm\|vcpu\|preempt"' for anomalies related to KVM operations
- After patching, run 'uname -r' again to confirm the kernel version is 5.13.6 or later
FAQ
What is CVE-2021-47296?
This vulnerability exists in KVM's PowerPC code where a failed user-space copy operation during vCPU I/O control skips the required vcpu_put() cleanup, leaving the vCPU in an inconsistent state and corrupting preempt notifiers.
Is CVE-2021-47296 being actively exploited?
No, this vulnerability is not listed on the CISA KEV catalog and has no known public exploits. However, it can be triggered by unprivileged local users with vCPU access.
What versions of Kernel are affected by CVE-2021-47296?
Linux kernel versions 5.11 through 5.13.5 are vulnerable. Kernel 5.13.6 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2021-47296?
Run 'uname -r' and compare your version against 5.13.6. If your version is between 5.11 and 5.13.5 and KVM is enabled (check with 'lsmod | grep kvm'), you are vulnerable.
Does Defensia detect CVE-2021-47296?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47296 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/9bafc34dc4ad0cef18727c557f21ed3c3304df50
- https://git.kernel.org/stable/c/a4a488915feaad38345cc01b80d52e8200ff5209
- https://git.kernel.org/stable/c/bc4188a2f56e821ea057aca6bf444e138d06c252
- https://git.kernel.org/stable/c/e14ef1095387f764d95614d3ec9e4d07c82a3533
- https://git.kernel.org/stable/c/f38527f1890543cdfca8dfd06f75f9887cce6151
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47296. Free for 1 server.
Get started free