{"id":"CVE-2023-52874","published":"2024-05-21T15:32:07Z","modified":"2026-08-05T09:11:47Z","title":"x86/tdx: Zero out the missing RSI in TDX_HYPERCALL macro","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/tdx: Zero out the missing RSI in TDX_HYPERCALL macro\n\nIn the TDX_HYPERCALL asm, after the TDCALL instruction returns from the\nuntrusted VMM, the registers that the TDX guest shares to the VMM need\nto be cleared to avoid speculative execution of VMM-provided values.\n\nRSI is specified in the bitmap of those registers, but it is missing\nwhen zeroing out those registers in the current TDX_HYPERCALL.\n\nIt was there when it was originally added in commit 752d13305c78\n(\"x86/tdx: Expand __tdx_hypercall() to handle more arguments\"), but was\nlater removed in commit 1e70c680375a (\"x86/tdx: Do not corrupt\nframe-pointer in __tdx_hypercall()\"), which was correct because %rsi is\nlater restored in the \"pop %rsi\".  However a later commit 7a3a401874be\n(\"x86/tdx: Drop flags from __tdx_hypercall()\") removed that \"pop %rsi\"\nbut forgot to add the \"xor %rsi, %rsi\" back.\n\nFix by adding it back.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00256,"percentile":0.17593,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/2191950d35d8f81620ea8d4e04d983f664fe3a8a","tags":[]},{"url":"https://git.kernel.org/stable/c/de4c5bacca4f50233f1f791bec9eeb4dee1b14cd","tags":[]},{"url":"https://git.kernel.org/stable/c/5d092b66119d774853cc9308522620299048a662","tags":[]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":3.52},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < 2191950d35d8f81620ea8d4e04d983f664fe3a8a",">= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < de4c5bacca4f50233f1f791bec9eeb4dee1b14cd",">= 7a3a401874bea02f568aa416ac29170d8cde0dc2, < 5d092b66119d774853cc9308522620299048a662"]},{"vendor":"Linux","product":"Linux","versions":["6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:36:24.980070Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-59587","exploited":false,"provenance":"source"}}