CVE-2024-47727·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: x86/tdx: Fix "in-kernel MMIO" check TDX only supports kernel-initiated MMIO operations. The handle_mmio() function checks if the #VE exception occurred in the kernel and rejects the operation if it did not. However, userspace can deceive the kernel into performing MMIO on its behalf. For example, if userspace can point a syscall to an MMIO address, syscall does get_user() or put_user() on it, triggering MMIO #VE. The kernel will treat the #VE as in-kernel MMIO. Ensure that the target MMIO address is within the kernel before decoding instruction.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.2
- Published
- 2024-10-21
Affected versions
From: 6.11
Until: 6.11.2
Fixed in: 6.11.2
How to fix this CVE
Update the Linux kernel to version 6.11.2 or later to patch the TDX MMIO validation bypass vulnerability. This fix adds a critical check to ensure MMIO addresses originate from kernel space rather than userspace, preventing privilege escalation attacks. Systems running kernel versions 6.11 through 6.11.1 should prioritize this update immediately.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check the currently running kernel version and verify it is 6.11.2 or later
- Verify TDX capability with 'grep -i tdx /proc/cpuinfo' to confirm if the system uses TDX features
- Check for MMIO-related #VE exceptions in kernel logs using 'sudo dmesg | grep -i mmio' or 'sudo journalctl | grep -i mmio'
- After patching, reboot and confirm the new kernel version with 'uname -r', then validate no MMIO validation errors appear in dmesg
FAQ
What is CVE-2024-47727?
CVE-2024-47727 is a vulnerability in the Linux kernel's TDX (Intel Trust Domain Extensions) implementation where insufficient validation of MMIO address origins allows unprivileged userspace processes to trick the kernel into performing memory-mapped I/O operations on their behalf, bypassing TDX security boundaries.
Is CVE-2024-47727 being actively exploited?
No, CVE-2024-47727 is not currently listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, the vulnerability carries high severity due to its potential for privilege escalation on TDX-enabled systems.
What versions of Kernel are affected by CVE-2024-47727?
Linux kernel versions 6.11.0, 6.11.1, and 6.11.2 (prior to the patch) are affected. The vulnerability is resolved in kernel 6.11.2 and later.
How do I check if my server is vulnerable to CVE-2024-47727?
Run 'uname -r' to get your kernel version. If it shows 6.11.0 or 6.11.1, you are vulnerable. You can also verify TDX enablement with 'dmesg | grep -i tdx' to confirm if your hardware supports the affected feature.
Does Defensia detect CVE-2024-47727?
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-47727 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/18ecd5b74682839e7cdafb7cd1ec106df7baa18c
- https://git.kernel.org/stable/c/25703a3c980e21548774eea8c8a87a75c5c8f58c
- https://git.kernel.org/stable/c/4c0c5dcb5471de5fc8f0a1c4980e5815339e1cee
- https://git.kernel.org/stable/c/bca2e29f7e26ce7c3522f8b324c0bd85612f68e3
- https://git.kernel.org/stable/c/d4fc4d01471528da8a9797a065982e05090e1d81
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-47727. Free for 1 server.
Get started free