Linux kernel page dirtying race in KVM SEV guest memory population
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:
KVM: SEV: Fix page dirtying in sev_gmem_post_populate()
set_page_dirty() requires that the caller holds some kind of lock to ensure that the page's mapping does not concurrently go away. That is not the case for a random page we got from get_user_pages_fast(), so use set_page_dirty_lock().
[sean: tag for stable]
From the CVE record · Linux
The Linux kernel’s KVM SEV code calls set_page_dirty() without the lock needed to prevent a page’s mapping from disappearing concurrently. The description does not specify what an attacker could accomplish or whether exploitation requires network access, authentication, local access, or user interaction.
Teams running Linux kernels with KVM SEV should check their kernel versions against the vendor advisory; affected versions are not specified.