x86/sev: Evict cache lines during SNP memory validation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4f9c403e44e5e88feb27d5e617d1adc9cc7ef684 · < 7b306dfa326f70114312b320d083b21fa9481e1e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
x86/sev: Evict cache lines during SNP memory validation
An SNP cache coherency vulnerability requires a cache line eviction mitigation when validating memory after a page state change to private. The specific mitigation is to touch the first and last byte of each 4K page that is being validated. There is no need to perform the mitigation when performing a page state change to shared and rescinding validation.
CPUID bit Fn8000001F_EBX[31] defines the COHERENCY_SFW_NO CPUID bit that, when set, indicates that the software mitigation for this vulnerability is not needed.
Implement the mitigation and invoke it when validating memory (making it private) and the COHERENCY_SFW_NO bit is not set, indicating the SNP guest is vulnerable.
From the CVE record · Linux
A cache coherency vulnerability affects Linux kernel x86 SEV-SNP guests when memory is validated after being made private and the COHERENCY_SFW_NO CPU bit is not set. The input does not specify what an attacker could do or whether exploitation requires network access, authentication, local access, or user interaction.
Operators of Linux kernels running x86 SEV-SNP guests should check whether their kernel includes the fix; affected versions are not specified.