CVE-2026-99336
KVM: guest_memfd: take the invalidate lock when unbinding a dying file
Mitigation
- Upgrade Linux to 6.18 or later.
Who should check
- Anyone running Linux >= a8ac2bd0f98e1a230f1eb3260fa552bf2ef1753b, < 4ae4316682cdc78d8f5a856ab0712a8281f211ca; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 024be82ac4c4df650cc6daca6d7db79daee95470; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 0ee2c883b62deb74d8c43007e8049dc006d3a2fb; 393893693a523e053f84d69320d090b93503f79f; >= 6.12.59, < 6.12.118; >= 6.17.9, < 6.18
- Anyone running Linux 6.18
Vulnerability facts
- Affected
- Linux >= a8ac2bd0f98e1a230f1eb3260fa552bf2ef1753b, < 4ae4316682cdc78d8f5a856ab0712a8281f211ca; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 024be82ac4c4df650cc6daca6d7db79daee95470; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 0ee2c883b62deb74d8c43007e8049dc006d3a2fb; 393893693a523e053f84d69320d090b93503f79f; >= 6.12.59, < 6.12.118; >= 6.17.9, < 6.18; Linux 6.18
- Fixed in
- Linux 4ae4316682cdc78d8f5a856ab0712a8281f211ca, Linux 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a, Linux 024be82ac4c4df650cc6daca6d7db79daee95470, Linux 0ee2c883b62deb74d8c43007e8049dc006d3a2fb, Linux 6.12.118, Linux 6.18
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.15% chance of exploitation in 30 days (percentile 2, 2026-11-28)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a8ac2bd0f98e1a230f1eb3260fa552bf2ef1753b, < 4ae4316682cdc78d8f5a856ab0712a8281f211ca; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 024be82ac4c4df650cc6daca6d7db79daee95470; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 0ee2c883b62deb74d8c43007e8049dc006d3a2fb; 393893693a523e053f84d69320d090b93503f79f; >= 6.12.59, < 6.12.118; >= 6.17.9, < 6.18 | — | cvelist |
| Linux | 6.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-99336. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-99336.md Affected: Linux >= a8ac2bd0f98e1a230f1eb3260fa552bf2ef1753b, < 4ae4316682cdc78d8f5a856ab0712a8281f211ca; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 024be82ac4c4df650cc6daca6d7db79daee95470; >= ae431059e75d36170a5ae6b… Fixed in: Linux 4ae4316682cdc78d8f5a856ab0712a8281f211ca, Linux 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a, Linux 024be82ac4c4df650cc6daca6d7db79daee95470, Linux 0ee2c883b62deb74d8c43007e8049dc006d3a2fb, Linux 6.12.118, Linux 6.18 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-99336 being exploited?
There is no confirmed exploitation: CVE-2026-99336 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-99336?
High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-99336?
Linux >= a8ac2bd0f98e1a230f1eb3260fa552bf2ef1753b, < 4ae4316682cdc78d8f5a856ab0712a8281f211ca; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 024be82ac4c4df650cc6daca6d7db79daee95470; >= ae431059e75d36170a5ae6b44cc4d06d43613215, < 0ee2c883b62deb74d8c43007e8049dc006d3a2fb; 393893693a523e053f84d69320d090b93503f79f; >= 6.12.59, < 6.12.118; >= 6.17.9, < 6.18; Linux 6.18.
Is there a fix for CVE-2026-99336?
Yes. Fixed in Linux 4ae4316682cdc78d8f5a856ab0712a8281f211ca, Linux 3af94f4e3526efdf52d84d7ba8d9fb8e8facb93a, Linux 024be82ac4c4df650cc6daca6d7db79daee95470, Linux 0ee2c883b62deb74d8c43007e8049dc006d3a2fb, Linux 6.12.118, Linux 6.18. Upgrade Linux to 6.18 or later.
How do I check if I'm affected by CVE-2026-99336?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 7.0 | CVE-2026-137974 Tuned: local privilege escalation through untrusted mount table parsing in the spindown-disk profile | Linux kernel+1 | EPSS 31% | |
| HIGH 7.8 | CVE-2026-137941 Gimp: gimp: heap out-of-bounds write via unvalidated levels channel property | Linux kernel+1 | EPSS 11% | |
| HIGH 7.3 | CVE-2026-137898 Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling | Linux kernel+1 | EPSS 11% | |
| MEDIUM 6.5 | CVE-2026-102963 Use-after-return in getaddrinfo() when a DNS query that followed a CNAME cannot be cancelled | Linux kernel+1 | EPSS 24% | |
| MEDIUM 5.3 | CVE-2026-115841 Sequoia-openpgp: sequoia-openpgp: degenerate dsa keys are accepted on the nettle and openssl backendsa | Linux kernel+4 | EPSS 3% |