CVE-2026-139457: vfio/pci: Drain eventfd RCU callbacks on module exit
In the Linux kernel, the following vulnerability has been resolved:
vfio/pci: Drain eventfd RCU callbacks on module exit
vfiopcieventfdreplacelocked() defers freeing replaced eventfds to vfiopcieventfdrcufree(). A callback can remain queued after closedevice() returns and the device driver module reference is dropped. Once the dependent driver is removed, vfio-pci-core can be unloaded while the callback still points into its module text.
Wait for outstanding RCU callbacks before vfio-pci-core exits.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Wait for outstanding RCU callbacks before vfio-pci-core exits.
Event History
Frequently Asked Questions
What conditions are required for the unsafe callback to persist?
A replaced eventfd must have been deferred for RCU-based freeing, and the device must then be closed so that the dependent driver module reference is dropped. The problem arises if vfio-pci-core is unloaded before that queued RCU callback has completed.
What is the impact of unloading vfio-pci-core while such a callback is queued?
The queued callback can retain a pointer to code in the vfio-pci-core module. After the module is unloaded, execution of that callback can target unloaded module text.