x86/tdx: Fix data leak in mmio_read()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
x86/tdx: Fix data leak in mmio_read()
The mmio_read() function makes a TDVMCALL to retrieve MMIO data for an address from the VMM.
Sean noticed that mmio_read() unintentionally exposes the value of an initialized variable (val) on the stack to the VMM.
This variable is only needed as an output value. It did not need to be passed to the VMM in the first place.
Do not send the original value of *val to the VMM.
[ dhansen: clarify what 'val' is used for. ]
From the CVE record · Linux
The Linux kernel’s x86/tdx mmio_read() function can expose an initialized stack variable to the VMM during a TDVMCALL. A VMM can receive that value when the function retrieves MMIO data; the input does not specify an authentication requirement or user interaction.
Engineers running Linux kernels that use x86/tdx should check whether their kernel includes the fix; affected versions were not specified.