{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-99336","published":"2026-11-19T15:17:44.610000Z","last_modified":"2026-11-22T11:16:47.793000Z","status":"Received","cvss":{"version":"3.1","score":7.0,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","primary":false},"auth":true,"cwes":[],"cpes":[],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux"],"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":46,"links":{"html_es":"/es/cve/CVE-2026-99336/","html_en":"/en/cve/CVE-2026-99336/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99336","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99336"},"untrusted":{"vendor_name":"Linux","product_name":"Linux","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: guest_memfd: take the invalidate lock when unbinding a dying file\n\nkvm_gmem_unbind() takes mapping->invalidate_lock only if the\nget_file_active() succeeds. When the guest_memfd file is dying, its\nreference count is already zero so get_file_active fails and the binding\nis removed without holding the invalidate lock.\n\nkvm_gmem_invalidate_{start,end}() checks f->bindings independently to\ndecide whether to begin or end KVM MMU invalidation. So, the bindings\nmust therefore remain stable between the two calls. Otherwise, unbind\ncan remove a binding after start increments mmu_invalidate_in_progress,\nbut before end finds the binding and decrements it.\nExample, unbind race with memory failure:\n\n  CPU 0: memory failure               CPU 1: memslot delete\n  ----------------------------------  ---------------------------\n                                      (guest_memfd file is dying)\n  kvm_gmem_error_folio()\n    kvm_gmem_invalidate_start()\n      finds binding\n      mmu_invalidate_in_progress++\n                                      kvm_gmem_unbind()\n                                        get_file_active() fails\n                                        removes binding\n    kvm_gmem_invalidate_end()\n      no binding found\n      counter stays elevated\n\nmmu_invalidate_retry() then returns 1 forever, so guest page faults\nretry without ever installing a mapping and the guest hangs.\n\nRemove the distinction between live and dying files in the unbind path.\nAlways use slot->gmem.file and take the invalidate lock when it's non-NULL.\nNormal unbind callers hold slots_lock, which prevents release from clearing\nthe pointer or freeing the file state until unbind completes. Final VM\nteardown can only see a NULL pointer because guest_memfd pins the KVM until\nrelease has cleared all bindings.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/024be82ac4c4df650cc6daca6d7db79daee95470","tags":[]},{"url":"https://git.kernel.org/stable/c/0ee2c883b62deb74d8c43007e8049dc006d3a2fb","tags":[]},{"url":"https://git.kernel.org/stable/c/3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a","tags":[]},{"url":"https://git.kernel.org/stable/c/4ae4316682cdc78d8f5a856ab0712a8281f211ca","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:12733-1","url":"https://www.suse.com/support/update/","published":"2026-11-30T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"kernel-devel-7.3.6-2.1 on GA media"}}]}