Drivers: hv: vmbus: Track decrypted status in vmbus_gpadl
In confidential computing VMs, the Linux kernel's Hyper-V driver didn't properly track whether memory was successfully encrypted or decrypted, potentially allowing a malicious host to cause the system to return shared (decrypted) memory back to the allocator, leading to data leaks or system instability.
The vulnerability exists in the vmbus_gpadl structure where decryption status tracking was missing. An untrusted host in a CoCo VM can cause set_memory_encrypted() or set_memory_decrypted() calls to fail, resulting in shared memory being returned to page allocators. The fix adds a status field to track decryption state, enabling proper error handling by callers of vmbus_establish_gpadl() and vmbus_teardown_gpadl() to prevent memory mismanagement.
Want to know if your infrastructure is exposed to this?
Talk to TrueHacking →