CVE-2024-36911 hv_netvsc: Don't free decrypted memory

Critical 9.8 Published Updated

A flaw in the Linux kernel netvsc driver allows freeing decrypted memory, potentially exposing sensitive data or causing crashes in confidential computing environments.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-36911?

CVE-2024-36911 is a critical memory corruption vulnerability in Linux kernel, published on 30 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-401

Which versions are affected by CVE-2024-36911?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-36911?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-36911 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-67994, BELL-CVE-2024-36911, DEBIAN-CVE-2024-36911, ROOT-OS-DEBIAN-11-CVE-2024-36911, ROOT-OS-DEBIAN-12-CVE-2024-36911, ROOT-OS-UBUNTU-2204-CVE-2024-36911 and 1 more.

Is CVE-2024-36911 in your software?

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

Check your SBOMs for free