Linux
virt: sev-guest: Explicitly leak pages in unknown state
In the Linux kernel, the following vulnerability has been resolved: virt: sev-guest: Explicitly leak pages in unknown state When set_memory_{encrypted,decrypted}() fail, the user cannot know at which point the function failed, meaning that the pages are left in an unknown state from the point of view of the caller. Since the pages may be left in an unencrypted state, they are not suitable for general use, and cannot be returned safely to the buddy allocator. Avoid the issue by never freeing the pages, and then do the proper accounting by calling snp_leak_pages().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3e385c0d6ce88ac9916dcf84267bd5855d830748, < bee400ad4f4259c9c0758e4f1960a1eed6f6f9f0
- >= 3e385c0d6ce88ac9916dcf84267bd5855d830748, < 3d0cd0065deeb054b4b29236432e851806b7cc81
- >= 3e385c0d6ce88ac9916dcf84267bd5855d830748, < fd948c3f96b18ff9ba7d3e8eae13d196593e1aaf
- 0b16521f95c875e79d657cb8d6911c15080dbb80
- >= 6.13.8, < 6.14
Fixed in bee400ad4f4259c9c0758e4f1960a1eed6f6f9f0, 3d0cd0065deeb054b4b29236432e851806b7cc81, fd948c3f96b18ff9ba7d3e8eae13d196593e1aaf, 6.14
- 6.14
Fixed in 0, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to bee400ad4f4259c9c0758e4f1960a1eed6f6f9f0 or 3d0cd0065deeb054b4b29236432e851806b7cc81 or fd948c3f96b18ff9ba7d3e8eae13d196593e1aaf or 6.14 or later.
Upgrade Linux to 0 or 6.18.34 or 7.0.11 or 7.1 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.