CVE-2024-36913·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: Drivers: hv: vmbus: Leak pages if set_memory_encrypted() fails 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. VMBus code could free decrypted pages if set_memory_encrypted()/decrypted() fails. Leak the pages if this happens.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.10
- Published
- 2024-05-30
Affected versions
From: 6.7
Until: 6.8.10
Fixed in: 6.8.10
How to fix this CVE
Update your Linux kernel to version 6.8.10 or later to resolve this memory encryption handling vulnerability in the Hyper-V VMBus driver. The patch prevents the freeing of improperly encrypted pages that could expose shared memory, which is critical for confidential computing environments. Systems running kernel versions 6.7 through 6.8.9 should prioritize this update to maintain memory integrity in CoCo VM deployments.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check the installed kernel version with: uname -r
- Verify if your system uses Hyper-V/VMBus by checking: grep -i hyperv /proc/cpuinfo or lsmod | grep hv_
- Search system logs for memory encryption errors: sudo journalctl -u kernel | grep -i 'set_memory_encrypted\|set_memory_decrypted'
- Confirm the patch is applied by checking if kernel version is 6.8.10 or later: uname -r | awk -F. '{if($1>=6 && $2>=8 && $3>=10) print "PATCHED"; else print "VULNERABLE"}'
FAQ
What is CVE-2024-36913?
This vulnerability affects the Linux kernel's Hyper-V VMBus driver and involves improper handling of memory encryption state transitions in confidential computing environments. If memory encryption or decryption operations fail on untrusted hosts, the driver may incorrectly free pages that remain in a shared (decrypted) state, compromising memory isolation guarantees.
Is CVE-2024-36913 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, its high CVSS score (8.1) reflects the severity of potential memory leakage in CoCo VM environments.
What versions of Kernel are affected by CVE-2024-36913?
Kernel versions 6.7 through 6.8.9 are vulnerable. The fix is available in kernel 6.8.10 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2024-36913?
Run `uname -r` to check your kernel version. If the output shows a version between 6.7 and 6.8.9, and your system uses Hyper-V (check with `lsmod | grep hv_`), then you are vulnerable and should update immediately.
Does Defensia detect CVE-2024-36913?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-36913 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/03f5a999adba062456c8c818a683beb1b498983a
- https://git.kernel.org/stable/c/6123a4e8e25bd40cf44db14694abac00e6b664e6
- https://git.kernel.org/stable/c/7f2afcbfe4f6b6047b5f68db5067b7321e5be125
- https://git.kernel.org/stable/c/e813a0fc2e597146e9cebea61ced9c796d4e308f
- https://git.kernel.org/stable/c/03f5a999adba062456c8c818a683beb1b498983a
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-36913. Free for 1 server.
Get started free