CVE-2024-47727 x86/tdx: Fix "in-kernel MMIO" check

High 7.8 Published Updated

A flaw in the Linux kernel TDX module allows userspace to trick the kernel into performing MMIO operations, potentially leading to privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-47727?

CVE-2024-47727 is a high-severity vulnerability in Linux kernel, published on 21 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-754

Which versions are affected by CVE-2024-47727?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-47727?

Apply the vendor's patch.

Is CVE-2024-47727 being exploited?

There is no known exploitation of CVE-2024-47727 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-50879, BELL-CVE-2024-47727, DEBIAN-CVE-2024-47727, GHSA-w36c-ppc4-pwgg, UBUNTU-CVE-2024-47727.

Is CVE-2024-47727 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free