CVE-2026-99336Linux
NVDCVSS scored by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Vulnerability Summary
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.
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.
CVSS v3.1 Base Metrics — Score 7.0 (HIGH)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HAttack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Linux >= a8ac2bd0f98e1a230f1eb3260fa552bf2ef1753b and < 4ae4316682cdc78d8f5a856ab0712a8281f211ca
- Linux >= ae431059e75d36170a5ae6b44cc4d06d43613215 and < 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a
- Linux >= ae431059e75d36170a5ae6b44cc4d06d43613215 and < 024be82ac4c4df650cc6daca6d7db79daee95470
- Linux >= ae431059e75d36170a5ae6b44cc4d06d43613215 and < 0ee2c883b62deb74d8c43007e8049dc006d3a2fb
- Linux 393893693a523e053f84d69320d090b93503f79f
- Linux >= 6.12.59 and < 6.12.118
- Linux >= 6.17.9 and < 6.18
- Linux 6.18
- Linux 4ae4316682cdc78d8f5a856ab0712a8281f211ca
- Linux 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a
- Linux 024be82ac4c4df650cc6daca6d7db79daee95470
- Linux 0ee2c883b62deb74d8c43007e8049dc006d3a2fb
- Linux 6.12.118
- Linux 6.18
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run Linux and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 19, 2026Published
- Nov 22, 2026Record last modified
- Nov 22, 2026CVSS score changed: 0.0 to 7.0
- Nov 22, 2026Severity changed to HIGH
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Linux CVEsYou are reading CVE-2026-99336. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://git.kernel.org/stable/c/024be82ac4c4df650cc6daca6d7db79daee95470
- Referencehttps://git.kernel.org/stable/c/0ee2c883b62deb74d8c43007e8049dc006d3a2fb
- Referencehttps://git.kernel.org/stable/c/3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a
- Referencehttps://git.kernel.org/stable/c/4ae4316682cdc78d8f5a856ab0712a8281f211ca
Data last checked: Nov 24, 2026 15:13 UTC