{"id":"CVE-2021-47226","published":"2024-05-21T14:19:30Z","modified":"2026-08-05T08:46:49Z","title":"x86/fpu: Invalidate FPU state after a failed XRSTOR from a user buffer","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/fpu: Invalidate FPU state after a failed XRSTOR from a user buffer\n\nBoth Intel and AMD consider it to be architecturally valid for XRSTOR to\nfail with #PF but nonetheless change the register state.  The actual\nconditions under which this might occur are unclear [1], but it seems\nplausible that this might be triggered if one sibling thread unmaps a page\nand invalidates the shared TLB while another sibling thread is executing\nXRSTOR on the page in question.\n\n__fpu__restore_sig() can execute XRSTOR while the hardware registers\nare preserved on behalf of a different victim task (using the\nfpu_fpregs_owner_ctx mechanism), and, in theory, XRSTOR could fail but\nmodify the registers.\n\nIf this happens, then there is a window in which __fpu__restore_sig()\ncould schedule out and the victim task could schedule back in without\nreloading its own FPU registers. This would result in part of the FPU\nstate that __fpu__restore_sig() was attempting to load leaking into the\nvictim task's user-visible state.\n\nInvalidate preserved FPU registers on XRSTOR failure to prevent this\nsituation from corrupting any state.\n\n[1] Frequent readers of the errata lists might imagine \"complex\n    microarchitectural conditions\".","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00314,"percentile":0.16786,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a7748e021b9fb7739e3cb88449296539de0b6817","tags":[]},{"url":"https://git.kernel.org/stable/c/002665dcba4bbec8c82f0aeb4bd3f44334ed2c14","tags":[]},{"url":"https://git.kernel.org/stable/c/d8778e393afa421f1f117471144f8ce6deb6953a","tags":[]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":3.36},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1d731e731c4cd7cbd3b1aa295f0932e7610da82f, < a7748e021b9fb7739e3cb88449296539de0b6817",">= 1d731e731c4cd7cbd3b1aa295f0932e7610da82f, < 002665dcba4bbec8c82f0aeb4bd3f44334ed2c14",">= 1d731e731c4cd7cbd3b1aa295f0932e7610da82f, < d8778e393afa421f1f117471144f8ce6deb6953a"]},{"vendor":"Linux","product":"Linux","versions":["5.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-21T15:36:03.024870Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33874","exploited":false,"provenance":"source"}}