x86/sev: Make enc_dec_hypercall() accept a size instead of npages
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/sev: Make enc_dec_hypercall() accept a size instead of npages
enc_dec_hypercall() accepted a page count instead of a size, which forced its callers to round up. As a result, non-page aligned vaddrs caused pages to be spuriously marked as decrypted via the encryption status hypercall, which in turn caused consistent corruption of pages during live migration. Live migration requires accurate encryption status information to avoid migrating pages from the wrong perspective.
From the CVE record · Linux
The x86/sev encryption-status hypercall can spuriously mark pages as decrypted when given non-page-aligned virtual addresses. This can cause consistent page corruption during live migration; the input does not describe an attacker, authentication requirement, or user interaction.
Engineers running Linux kernels that use x86/sev live migration should check their deployments; affected versions were not provided.