CVE-2024-36910: uio_hv_generic: Don't free decrypted memory
In the Linux kernel, the following vulnerability has been resolved:
uiohvgeneric: Don't free decrypted memory
In CoCo VMs it is possible for the untrusted host to cause setmemoryencrypted() or setmemorydecrypted() 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 device UIO driver could free decrypted/shared pages if setmemorydecrypted() fails. Check the decrypted field in the gpadl to decide whether to free the memory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1 - Configuration
Update uio_hv_generic so it checks whether the memory remains decrypted/shared via the gpadl "decrypted" field; only free memory when the gpadl indicates it is not decrypted. Specifically, ensure the driver does not free decrypted/shared pages if set_memory_encrypted() or set_memory_decrypted() returns an error.
uio_hv_generic (VMBus device UIO driver) free logic for decrypted/shared pages = Do not free decrypted/shared memory when set_memory_encrypted() or set_memory_decrypted() fails
Event History
Frequently Asked Questions
What is the severity of CVE-2024-36910?
CVE-2024-36910 has a severity rating that indicates it poses a security risk to the Linux kernel.
How do I fix CVE-2024-36910?
To fix CVE-2024-36910, upgrade to the patched versions of the Linux kernel: 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.16-1.
Which versions of Linux are affected by CVE-2024-36910?
CVE-2024-36910 affects Linux kernel versions up to 5.10.234-1.
What types of systems are impacted by CVE-2024-36910?
CVE-2024-36910 impacts systems running the Linux kernel, especially those in CoCo virtual machines.
Is CVE-2024-36910 a local or remote vulnerability?
CVE-2024-36910 is a local vulnerability that an untrusted host can exploit.