Linux
x86/sev: Evict cache lines during SNP memory validation
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4f9c403e44e5e88feb27d5e617d1adc9cc7ef684, < 1fec416c03d0a64cc21aa04ce4aa14254b017e6a
- >= 4f9c403e44e5e88feb27d5e617d1adc9cc7ef684, < 1fb873971e23c35c53823c62809a474a92bc3022
- >= 4f9c403e44e5e88feb27d5e617d1adc9cc7ef684, < aed15fc08f15dbb15822b2a0b653f67e76aa0fdf
- >= 4f9c403e44e5e88feb27d5e617d1adc9cc7ef684, < a762a4c8d9e768b538b3cc60615361a8cf377de8
- >= 4f9c403e44e5e88feb27d5e617d1adc9cc7ef684, < f92af52e6dbd8d066d77beba451e0230482dc45b
- >= 4f9c403e44e5e88feb27d5e617d1adc9cc7ef684, < 7b306dfa326f70114312b320d083b21fa9481e1e
Fixed in 1fec416c03d0a64cc21aa04ce4aa14254b017e6a, 1fb873971e23c35c53823c62809a474a92bc3022, aed15fc08f15dbb15822b2a0b653f67e76aa0fdf, a762a4c8d9e768b538b3cc60615361a8cf377de8, f92af52e6dbd8d066d77beba451e0230482dc45b, 7b306dfa326f70114312b320d083b21fa9481e1e
- 5.19
Fixed in 0, 6.1.148, 6.6.102, 6.12.42, 6.15.10, 6.16.1, 6.17
Mitigation
Upgrade Linux to 1fec416c03d0a64cc21aa04ce4aa14254b017e6a or 1fb873971e23c35c53823c62809a474a92bc3022 or aed15fc08f15dbb15822b2a0b653f67e76aa0fdf or a762a4c8d9e768b538b3cc60615361a8cf377de8 or f92af52e6dbd8d066d77beba451e0230482dc45b or 7b306dfa326f70114312b320d083b21fa9481e1e or later.
Upgrade Linux to 0 or 6.1.148 or 6.6.102 or 6.12.42 or 6.15.10 or 6.16.1 or 6.17 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.