SecurityContext

CVE-2026-99336: Linux Kernel KVM guest_memfd - Race Condition

  • Cve: CVE-2026-99336
  • Name: Linux Kernel KVM guest_memfd - Race Condition
  • Description: In the Linux kernel, the following vulnerability has been resolved: KVM: guest_memfd: take the invalidate lock when unbinding a dying file kvm_gmem_unbind() takes mapping->invalidate_lock only if the get_file_active() succeeds. When the guest_memfd file is dying, its reference count is already zero so get_file_active fails and the binding is removed without holding the invalidate lock. kvm_gmem_invalidate_{start,end}() checks f->bindings independently to decide whether to begin or end KVM MMU invalidation. So, the bindings must therefore remain stable between the two calls. Otherwise, unbind can remove a binding after start increments mmu_invalidate_in_progress, but before end finds the binding and decrements it. Example, unbind race with memory failure: CPU 0: memory failure CPU 1: memslot delete ---------------------------------- --------------------------- (guest_memfd file is dying) kvm_gmem_error_folio() kvm_gmem_invalidate_start() finds binding mmu_invalidate_in_progress++ kvm_gmem_unbind() get_file_active() fails removes binding kvm_gmem_invalidate_end() no binding found counter stays elevated mmu_invalidate_retry() then returns 1 forever, so guest page faults retry without ever installing a mapping and the guest hangs. Remove the distinction between live and dying files in the unbind path. Always use slot->gmem.file and take the invalidate lock when it's non-NULL. Normal unbind callers hold slots_lock, which prevents release from clearing the pointer or freeing the file state until unbind completes. Final VM teardown can only see a NULL pointer because guest_memfd pins the KVM until release has cleared all bindings.
  • Impact: A race between memory failure and memslot deletion leaves the MMU invalidation counter elevated, causing guest page faults to retry indefinitely and the guest to hang.
  • Remediation: Update to the latest Linux kernel version containing the fix for KVM guest_memfd unbind locking.
  • Vulnerability type: race_condition
  • Vulnerability impact: denial_of_service
  • Requirements: Attacker needs to trigger a memory failure concurrent with a memslot delete on a dying guest_memfd file
  • Labels source: securitycontext
  • Severity: high
  • Cvss score: 7
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00165
  • Epss percentile: 0.05677
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2026-11-19T15:17:44Z
  • Age in days: 5
  • Modified at: 2026-11-22T11:16:47Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-99336
  • Nvd status: received
  • Checked, none or zero: cwe, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://git.kernel.org/stable/c/024be82ac4c4df650cc6daca6d7db79daee95470
https://git.kernel.org/stable/c/0ee2c883b62deb74d8c43007e8049dc006d3a2fb
https://git.kernel.org/stable/c/3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a
https://git.kernel.org/stable/c/4ae4316682cdc78d8f5a856ab0712a8281f211ca

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 6.18, < 7.4-rc1; >= 6.18, < 7.3.2; >= 6.18, < 6.18.64; >= 6.17.9; >= 6.12.59, < 6.12.118nocna/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports