{"id":"CVE-2026-99473","summary":"KVM: guest_memfd: Gracefully handle xarray errors when binding a memslot","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: guest_memfd: Gracefully handle xarray errors when binding a memslot\n\nIf inserting a memslot into a guest_memfd's bindings xarray fails,\npropagate the error back to the caller, i.e. fail memslot creation as well.\nSignalling success and continuing on with memslot creation results in\nuse-after-free, as the guest_memfd instance will remain reachable via the\nmemslot after the file is freed (kvm_gmem_release() won't nullify the file\npointer due to lack of a valid binding).\n\nOpportunistically WARN and reject binding if KVM_MEMSLOT_GMEM_ONLY is\nalready set, partly to guard against goofs elsewhere, but mostly so that\nKVM doesn't need to worry about clobbering flags when unwinding on failure.\n\nRegarding the unwind, the slot must be fully prepared before inserting it\ninto the bindings, at which point the slot becomes reachable.  I.e. waiting\nto update the slot in order to avoid the ugly unwind isn't an option.  And\nas part of the unwind, explicitly nullify the relevant bindings, as xarray\ncan store a subset of entries when populating a range.","modified":"2026-11-19T17:00:46.344855417Z","published":"2026-11-19T14:43:02.008Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99473.json","cna_assigner":"Linux"},"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/1706461eb1af814366b6d0ab413edd0876bd8033"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2cfc1ccf67ffe96811c816d27d44128c5d5833ec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2fa83c615f8dbb240b262265e788b120b6384e7b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e6ecb88711d93b9e014532f17d3d29b57e80932c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99473.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99473"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a7800aa80ea4d5356b8474c2302812e9d4926fa6"},{"fixed":"2cfc1ccf67ffe96811c816d27d44128c5d5833ec"},{"fixed":"1706461eb1af814366b6d0ab413edd0876bd8033"},{"fixed":"2fa83c615f8dbb240b262265e788b120b6384e7b"},{"fixed":"e6ecb88711d93b9e014532f17d3d29b57e80932c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99473.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.8.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"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-99473.json"}}],"schema_version":"1.9.2"}