Look up another CVE · open CVE-2024-36911 in the interactive tracker
CVE-2024-36911
hv_netvsc: Don't free decrypted memory
Published 2024-05-30 (2 years ago) by the Linux kernel CNA. Subsystem drivers/net. Debian urgency: not yet assigned.
What to do, per Debian release
Debian's own status for CVE-2024-36911 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | vulnerable | 6.1.190-1 | No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication. |
| Debian 13trixie | fixed | 6.8.11-1 | Update the kernel and reboot. Fixed in 6.8.11-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 6.8.11-1 | Update the kernel and reboot. Fixed in 6.8.11-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 6.8.11-1 | Update the kernel and reboot. Fixed in 6.8.11-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
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.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
drivers/net/hyperv/netvsc.c
- What this is
- Hyper-V/Azure CORE AND DRIVERSMAINTAINERS section matched on drivers/net/hyperv/ · linux-hyperv@vger.kernel.org · Supported
- Kernel module
- hv_netvsc
Check it on the machine
grep -w CONFIG_HYPERV_NET /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
lsmod | grep -w hv_netvscPrints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.
Show whether Debian builds this, per release
Debian builds this, but not on every flavour. At least one release below builds the code on some of its kernel flavours and not on others, so the answer depends on the architecture and flavour installed.
- bookwormMnot built on armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp, ppc64el/powerpc64le
- trixieMnot built on armel/rpi, armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp, ppc64el/powerpc64le, ppc64el/powerpc64le-64k, riscv64/riscv64, s390x/s390x
- forky, sidMnot built on armhf/armmp, armhf/armmp-lpae, loong64/loong64, ppc64el/powerpc64le, ppc64el/powerpc64le-64k, riscv64/riscv64, s390x/s390x
- M
- a module where it is built at all; some flavours do not build it
- Build switch
- CONFIG_HYPERV_NET
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2024-05-30 (2 years ago)source
- CVSS
- 9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- network (AV:N)source
- EPSS
- 0.62%, higher than 48.5% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- not yet assignedsource
- Subsystem
- drivers/net
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 5.16 | 6.6.31 | a56fe6113263 |
| 5.16 | 6.8.10 | 4aaed9dbe8ac |
| 5.16 | 6.9 | bbf9ac34677b |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:NAttack vector, network
- The attacker is the untrusted hypervisor/host, which reaches the guest only through the paravirtualized VMBus/hypercall interface rather than any network stack; from the guest's perspective this is the local virtual-hardware path (`tdx_map_gpa()` / `hv_mark_gpa_visibility()` return values). No network, adjacent-network, or physical access to the guest is involved.
- AC:LAttack complexity, low
- The host deterministically controls the outcome — it simply returns an error from the TDVMCALL<MapGPA> or HVCALL_MODIFY_SPARSE_GPA_PAGE_HOST_VISIBILITY hypercall at a moment of its choosing, and the PTE encryption bit has already been cleared by `__change_page_attr_set_clr()` before that call. It can also force unlimited retries via suspend/resume and VF hot-plug cycles, so nothing depends on conditions outside its control.
- PR:NPrivileges required, none
- In the confidential-computing threat model the host holds zero privileges inside the guest — that is the entire premise of TDX/SEV-SNP — and needs no guest account or capability to fail the conversion hypercall. The vulnerable path runs at netvsc probe during guest boot with no guest-side authentication.
- UI:NUser interaction, none
- The GPADL for the receive/send buffers is established automatically during `netvsc_init_buf()` at driver probe on every guest boot, and the host can independently drive further detach/attach cycles via `netvsc_suspend`/`netvsc_resume`. No guest user action is required.
- S:UScope, unchanged
- The impacted resources are guest kernel and guest userspace memory, which fall under the same security authority as the vulnerable component (the guest Linux kernel). This is a host-to-guest attack, not an escape from the vulnerable component's scope such as a guest-to-host breakout.
- C:HConfidentiality impact, high
- Up to 46MB of still-shared pages are returned to the buddy allocator and recycled for arbitrary kernel and user data, which the untrusted host can then read in plaintext — keys, credentials, and any guest secret that lands in those pages. This is a total loss of confidential-VM confidentiality, repeatable across reinit cycles.
- I:HIntegrity impact, high
- The same pages remain host-*writable*, so the host can modify arbitrary reallocated slab objects, page-cache contents, and function pointers in the guest, yielding an arbitrary-write primitive and code execution inside the guest kernel.
- A:HAvailability impact, high
- Guest reuse of pages whose private/shared state disagrees with the guest's expectation triggers #VE/#VC exceptions and memory corruption in arbitrary recycled kernel structures, leading to guest kernel panic. The host can induce this at will.