CVE-2024-36912 Drivers: hv: vmbus: Track decrypted status in vmbus_gpadl

Critical 9.6 Published Updated

An untrusted host in a Confidential Computing VM can cause memory decryption failures, potentially leaking shared memory contents to the page allocator.

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-36912?

CVE-2024-36912 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: Track decrypted status in vmbus_gpadl

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.

In order to make sure callers of vmbus_establish_gpadl() and vmbus_teardown_gpadl() don't return decrypted/shared pages to allocators, add a field in struct vmbus_gpadl to keep track of the decryption status of the buffers. This will allow the callers to know if they should free or leak the pages.

Weakness: CWE-1258

Which versions are affected by CVE-2024-36912?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-36912?

Apply the vendor's patch.

Is CVE-2024-36912 being exploited?

There is no known exploitation of CVE-2024-36912 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-36912, DEBIAN-CVE-2024-36912, ROOT-OS-UBUNTU-2204-CVE-2024-36912, UBUNTU-CVE-2024-36912.

Is CVE-2024-36912 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free