{"id":"CVE-2026-99335","summary":"KVM: guest_memfd: Establish memslot\u003c=\u003eguest_memfd bindings *after* memslot is ready","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: guest_memfd: Establish memslot\u003c=\u003eguest_memfd bindings *after* memslot is ready\n\nWait to bind a memslot to a guest_memfd instance until *after* the memslot\nis fully prepared, as creating the binding in guest_memfd will effectively\nexpose the memslot to readers.  As pointed out by Sashiko, binding the\nmemslot before it's ready to be exposed to the rest of the world can break\nvarious memslot assumption and rules.  E.g. x86 could observe a NULL rmap\npointer if a PUNCH_HOLE hit the guest_memfd after the binding was created,\nbut before KVM made it through kvm_prepare_memory_region().","modified":"2026-11-19T17:00:59.826234761Z","published":"2026-11-19T14:21:41.400Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99335.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3fe5d2944e5ac3fc5073344b0982c73703332e18"},{"type":"WEB","url":"https://git.kernel.org/stable/c/698f807aa8df9414fdc23d9ea454f4883b5b08ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dc0cb5d30647b22a3da252a2847ed8f6afb5d567"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd224f1778e13660aec4e1f51fcdaeab5794e7ee"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99335.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99335"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a7800aa80ea4d5356b8474c2302812e9d4926fa6"},{"fixed":"698f807aa8df9414fdc23d9ea454f4883b5b08ff"},{"fixed":"dc0cb5d30647b22a3da252a2847ed8f6afb5d567"},{"fixed":"fd224f1778e13660aec4e1f51fcdaeab5794e7ee"},{"fixed":"3fe5d2944e5ac3fc5073344b0982c73703332e18"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99335.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.8.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99335.json"}}],"schema_version":"1.9.2"}