CVE-2024-36909 Drivers: hv: vmbus: Don't free ring buffers that couldn't be re-encrypted
An attacker in a CoCo VM can cause memory to remain shared, potentially exposing sensitive data due to improper handling of encryption failures.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-36909?
CVE-2024-36909 is a critical vulnerability in Linux kernel, published on 30 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
Drivers: hv: vmbus: Don't free ring buffers that couldn't be re-encrypted
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 VMBus ring buffer code could free decrypted/shared pages if set_memory_decrypted() fails. Check the decrypted field in the struct vmbus_gpadl for the ring buffers to decide whether to free the memory.
Weakness: CWE-401
Which versions are affected by CVE-2024-36909?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-36909?
Apply the vendor's patch.
Is CVE-2024-36909 being exploited?
There is no known exploitation of CVE-2024-36909 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-67991, BELL-CVE-2024-36909, DEBIAN-CVE-2024-36909, ROOT-OS-DEBIAN-11-CVE-2024-36909, ROOT-OS-UBUNTU-2204-CVE-2024-36909, UBUNTU-CVE-2024-36909.