---
id: CVE-2024-36911
title: 'hv_netvsc: Don''t free decrypted memory'
summary: |-
  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…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= d4dccf353db80e209f262e3973c834e6e48ba9a9 <
    fb671512ffb26570c05ba3fbe20752e645809192
  - >-
    Linux >= d4dccf353db80e209f262e3973c834e6e48ba9a9 <
    a56fe611326332bf6b7126e5559590c57dcebad4
  - >-
    Linux >= d4dccf353db80e209f262e3973c834e6e48ba9a9 <
    4aaed9dbe8acd2b6114458f0498a617283d6275b
  - >-
    Linux >= d4dccf353db80e209f262e3973c834e6e48ba9a9 <
    bbf9ac34677b57506a13682b31a2a718934c0e31
  - Linux 5.16
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-05-30T18:46:51.712672Z'
published: '2024-05-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T12:18:27.153Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-36911'
references:
  - url: 'https://git.kernel.org/stable/c/fb671512ffb26570c05ba3fbe20752e645809192'
  - url: 'https://git.kernel.org/stable/c/a56fe611326332bf6b7126e5559590c57dcebad4'
  - url: 'https://git.kernel.org/stable/c/4aaed9dbe8acd2b6114458f0498a617283d6275b'
  - url: 'https://git.kernel.org/stable/c/bbf9ac34677b57506a13682b31a2a718934c0e31'
tags:
  - cve.org
epss: 0.00631
epssPercentile: 0.50537
ingestedAt: '2026-11-03T12:44:28.815Z'
---

## Overview

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.

## Affected

- `Linux >= d4dccf353db80e209f262e3973c834e6e48ba9a9 < fb671512ffb26570c05ba3fbe20752e645809192`
- `Linux >= d4dccf353db80e209f262e3973c834e6e48ba9a9 < a56fe611326332bf6b7126e5559590c57dcebad4`
- `Linux >= d4dccf353db80e209f262e3973c834e6e48ba9a9 < 4aaed9dbe8acd2b6114458f0498a617283d6275b`
- `Linux >= d4dccf353db80e209f262e3973c834e6e48ba9a9 < bbf9ac34677b57506a13682b31a2a718934c0e31`
- `Linux 5.16`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
