CVE-2026-99450 in Linux
Summary
by MITRE • 11/19/2026
In the Linux kernel, the following vulnerability has been resolved:
vfio/nvgrace-gpu: Use a core-only open_device in fallback mode
When the ACPI memory properties are missing or the C2C link is down, the device is exposed through nvgrace_gpu_pci_core_ops. That table opens through nvgrace_gpu_open_device() but closes through vfio_pci_core_close_device(), so open and close are not symmetric.
nvgrace_gpu_open_device() registers nvdev->usemem for poison handling unconditionally. In fallback mode usemem.memlength is zero, and register_pfn_address_space() inserts a node covering [0, ULONG_MAX].
Nothing removes it: a second open fails with -EBUSY, and once the device is unbound the node outlives the nvdev that contains it. The next open after a rebind reports:
BUG: KASAN: slab-use-after-free in interval_tree_iter_first+0x209/0x310 Read of size 8 at addr ffff88800894aa30 by task nvgrace_repro/203 Call Trace: <TASK> dump_stack_lvl+0x5d/0x80 print_report+0x153/0x4c6 kasan_report+0xe4/0x1a0 interval_tree_iter_first+0x209/0x310 register_pfn_address_space+0x97/0x100 nvgrace_gpu_open_device+0x21c/0x730 vfio_df_open+0x213/0x520 vfio_df_ioctl_bind_iommufd+0x3e8/0x6e0 vfio_device_fops_unl_ioctl+0x782/0x1570 __x64_sys_ioctl+0x13c/0x1c0 do_syscall_64+0x106/0x630 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK>
Allocated by task 188: ... _vfio_alloc_device+0x3a/0x500 nvgrace_gpu_probe+0xcb/0x660 local_pci_probe+0xcf/0x170 ...
Freed by task 188: ... kfree+0x20d/0x600 device_release+0xcf/0x250 kobject_put+0x152/0x2f0 pci_device_remove+0xb0/0x1c0 device_release_driver_internal+0x38d/0x540 unbind_store+0xde/0x100 ...
Give the fallback table its own open_device that only calls vfio_pci_core_enable() and vfio_pci_core_finish_enable(), the counterpart of vfio_pci_core_close_device(). Fallback mode then never touches the nvgrace memory regions, as Alex suggested.
This should be safe because the fallback table uses the vfio-pci core read, write and mmap handlers, so nothing there uses the state nvgrace_gpu_open_device() sets up. The one visible difference is that a fallback open no longer fails when BAR0 cannot be mapped, which matches vfio-pci.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/20/2026
The Linux kernel vulnerability in the NVIDIA Grace GPU VFIO driver stems from an asymmetry between device opening and closing operations during fallback mode execution. When ACPI memory properties are unavailable or the C2C link is down, the system exposes the device using a specific set of core-only operations defined by nvgrace_gpu_pci_core_ops. This configuration triggers the use of nvgrace_gpu_open_device for initialization but relies on vfio_pci_core_close_device for teardown. The critical flaw lies within nvgrace_gpu_open_device, which unconditionally registers memory regions for poison handling via register_pfn_address_space. In fallback scenarios where the device lacks valid memory mappings, the length parameter is zero, causing the registration function to insert a node covering the entire address space from zero to ULONG_MAX. This creates an invalid and excessively broad interval tree entry that persists in kernel memory even after the device has been unbound or removed.
This improper resource management leads directly to severe stability issues including slab-use-after-free errors and busy state conflicts. Because the registration logic does not account for the fallback condition where no actual physical memory is mapped, it leaves behind a dangling interval tree node associated with the nvdev structure. When the device driver is subsequently unbound, the underlying nvgrace_gpu object is freed via kfree during pci_device_remove, but the previously registered address space node remains allocated in the kernel slab cache. Consequently, any subsequent attempt to open or bind the device after a rebind operation results in a failure due to an EBUSY error because the stale interval tree entry still claims ownership of the memory range. If access is attempted before unbinding completes fully, it can trigger a KASAN-reported slab-use-after-free crash as the kernel attempts to iterate over an interval tree containing references to freed memory structures.
From a security and reliability perspective, this vulnerability represents a classic resource management error that compromises system integrity. The issue aligns with CWE-416 Use After Free, where the lifecycle of allocated resources is not properly synchronized with the lifecycle of the objects they support. Furthermore, it reflects CWE-755 Improper Handling of Exceptional Conditions, as the code fails to validate whether memory mapping capabilities are actually available before attempting complex address space registrations. In terms of MITRE ATT&CK, this type of kernel-level instability can be leveraged for Denial of Service attacks if an attacker can trigger device unbinding and rebinding cycles rapidly, causing system crashes or hangs that disrupt critical workloads running within virtualized environments managed by VFIO.
The resolution involves decoupling the fallback mode operations from the standard memory-intensive initialization path. By assigning a dedicated open_device function to the fallback table that only invokes vfio_pci_core_enable and vfio_pci_core_finish, the driver ensures symmetry with the close operation which calls vfio_pci_core_close_device. This approach prevents the registration of invalid address space nodes in scenarios where physical memory is not mapped. Since the fallback mode utilizes standard VFIO-PCI core handlers for read, write, and mmap operations that do not depend on the specific state set up by nvgrace_gpu_open_device, this change maintains functional correctness while eliminating the risk of dangling pointers and interval tree corruption. This fix ensures that devices in degraded or fallback states are handled safely without compromising kernel memory integrity or causing subsequent binding failures.