Bug 2320259 (CVE-2024-47727) - CVE-2024-47727 kernel: x86/tdx: Fix "in-kernel MMIO" check
Summary: CVE-2024-47727 kernel: x86/tdx: Fix "in-kernel MMIO" check
Keywords:
Status: NEW
Alias: CVE-2024-47727
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2320359
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 13:06 UTC by OSIDB Bzimport
Modified: 2024-12-30 16:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 13:06:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.