hv_netvsc: Don't free decrypted memory
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:
hv_netvsc: Don't free decrypted memory
In CoCo VMs it is possible for the untrusted host to cause set_memory_encrypted() or set_memory_decrypted() to fail such that an error is returned and the resulting memory is shared. Callers need to take care to handle these errors to avoid returning decrypted (shared) memory to the page allocator, which could lead to functional or security issues.
The netvsc driver could free decrypted/shared pages if set_memory_decrypted() fails. Check the decrypted field in the gpadl to decide whether to free the memory.
From the CVE record · Linux
In confidential computing (CoCo) VMs, the Linux kernel's hv_netvsc driver could return decrypted, shared pages to the page allocator if set_memory_decrypted() fails. An untrusted host can cause that failure, potentially leading to functional or security issues; no user interaction is described.
Engineers running Linux kernel CoCo VMs that use the hv_netvsc driver should check their deployments; affected versions are not specified.