{"id":"CVE-2026-99450","aliases":["CVE-2026-99450"],"related":[],"kind":"vulnerability","state":"published","title":"vfio/nvgrace-gpu: Use a core-only open_device in fallback mode","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/nvgrace-gpu: Use a core-only open_device in fallback mode\n\nWhen the ACPI memory properties are missing or the C2C link is down, the\ndevice is exposed through nvgrace_gpu_pci_core_ops.  That table opens\nthrough nvgrace_gpu_open_device() but closes through\nvfio_pci_core_close_device(), so open and close are not symmetric.\n\nnvgrace_gpu_open_device() registers nvdev->usemem for poison handling\nunconditionally.  In fallback mode usemem.memlength is zero, and\nregister_pfn_address_space() inserts a node covering [0, ULONG_MAX].\nNothing removes it: a second open fails with -EBUSY, and once the device\nis unbound the node outlives the nvdev that contains it.  The next open\nafter a rebind reports:\n\n  BUG: KASAN: slab-use-after-free in interval_tree_iter_first+0x209/0x310\n  Read of size 8 at addr ffff88800894aa30 by task nvgrace_repro/203\n  Call Trace:\n   <TASK>\n   dump_stack_lvl+0x5d/0x80\n   print_report+0x153/0x4c6\n   kasan_report+0xe4/0x1a0\n   interval_tree_iter_first+0x209/0x310\n   register_pfn_address_space+0x97/0x100\n   nvgrace_gpu_open_device+0x21c/0x730\n   vfio_df_open+0x213/0x520\n   vfio_df_ioctl_bind_iommufd+0x3e8/0x6e0\n   vfio_device_fops_unl_ioctl+0x782/0x1570\n   __x64_sys_ioctl+0x13c/0x1c0\n   do_syscall_64+0x106/0x630\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n   </TASK>\n\n  Allocated by task 188:\n   ...\n   _vfio_alloc_device+0x3a/0x500\n   nvgrace_gpu_probe+0xcb/0x660\n   local_pci_probe+0xcf/0x170\n   ...\n\n  Freed by task 188:\n   ...\n   kfree+0x20d/0x600\n   device_release+0xcf/0x250\n   kobject_put+0x152/0x2f0\n   pci_device_remove+0xb0/0x1c0\n   device_release_driver_internal+0x38d/0x540\n   unbind_store+0xde/0x100\n   ...\n\nGive the fallback table its own open_device that only calls\nvfio_pci_core_enable() and vfio_pci_core_finish_enable(), the\ncounterpart of vfio_pci_core_close_device().  Fallback mode then never\ntouches the nvgrace memory regions, as Alex suggested.\n\nThis should be safe because the fallback table uses the vfio-pci core\nread, write and mmap handlers, so nothing there uses the state\nnvgrace_gpu_open_device() sets up.  The one visible difference is that a\nfallback open no longer fails when BAR0 cannot be mapped, which matches\nvfio-pci.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/nvgrace-gpu: Use a core-only open_device in fallback mode\n\nWhen the ACPI memory properties are missing or the C2C link is down, the\ndevice is exposed through nvgrace_gpu_pci_core_ops.  That table opens\nthrough nvgrace_gpu_open_device() but closes through\nvfio_pci_core_close_device(), so open and close are not symmetric.\n\nnvgrace_gpu_open_device() registers nvdev->usemem for poison handling\nunconditionally.  In fallback mode usemem.memlength is zero, and\nregister_pfn_address_space() inserts a node covering [0, ULONG_MAX].\nNothing removes it: a second open fails with -EBUSY, and once the device\nis unbound the node outlives the nvdev that contains it.  The next open\nafter a rebind reports:\n\n  BUG: KASAN: slab-use-after-free in interval_tree_iter_first+0x209/0x310\n  Read of size 8 at addr ffff88800894aa30 by task nvgrace_repro/203\n  Call Trace:\n   <TASK>\n   dump_stack_lvl+0x5d/0x80\n   print_report+0x153/0x4c6\n   kasan_report+0xe4/0x1a0\n   interval_tree_iter_first+0x209/0x310\n   register_pfn_address_space+0x97/0x100\n   nvgrace_gpu_open_device+0x21c/0x730\n   vfio_df_open+0x213/0x520\n   vfio_df_ioctl_bind_iommufd+0x3e8/0x6e0\n   vfio_device_fops_unl_ioctl+0x782/0x1570\n   __x64_sys_ioctl+0x13c/0x1c0\n   do_syscall_64+0x106/0x630\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n   </TASK>\n\n  Allocated by task 188:\n   ...\n   _vfio_alloc_device+0x3a/0x500\n   nvgrace_gpu_probe+0xcb/0x660\n   local_pci_probe+0xcf/0x170\n   ...\n\n  Freed by task 188:\n   ...\n   kfree+0x20d/0x600\n   device_release+0xcf/0x250\n   kobject_put+0x152/0x2f0\n   pci_device_remove+0xb0/0x1c0\n   device_release_driver_internal+0x38d/0x540\n   unbind_store+0xde/0x100\n   ...\n\nGive the fallback table its own open_device that only calls\nvfio_pci_core_enable() and vfio_pci_core_finish_enable(), the\ncounterpart of vfio_pci_core_close_device().  Fallback mode then never\ntouches the nvgrace memory regions, as Alex suggested.\n\nThis should be safe because the fallback table uses the vfio-pci core\nread, write and mmap handlers, so nothing there uses the state\nnvgrace_gpu_open_device() sets up.  The one visible difference is that a\nfallback open no longer fails when BAR0 cannot be mapped, which matches\nvfio-pci.","source":"cvelist"}],"published":"2026-11-19T14:41:46.677Z","modified":"2026-11-19T15:17:58.833Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e5f19b619fa0b691ccb537d72240bd20eb72087c","fixed":"a2942b3abb5bddd1bac418abd61fb5f0616ab897","status":"affected"},{"type":"git","introduced":"e5f19b619fa0b691ccb537d72240bd20eb72087c","fixed":"9c48b994b66d7b585698f9aaee8ff559a7755c0a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.0","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a2942b3abb5bddd1bac418abd61fb5f0616ab897","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c48b994b66d7b585698f9aaee8ff559a7755c0a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99450","url":"https://www.cve.org/CVERecord?id=CVE-2026-99450","licence":"CVE Terms of Use","modified":"2026-11-19T14:41:46.677Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99450","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99450","licence":"Public domain","modified":"2026-11-19T15:17:58.833Z"}],"updatedAt":"2026-11-25T22:59:52.075Z","epss":{"score":0.00163,"percentile":0.05723,"date":"2026-12-01T12:00:22.000Z"}}