CVE-2026-139457

vfio/pci: Drain eventfd RCU callbacks on module exit

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

vfio/pci: Drain eventfd RCU callbacks on module exit

vfio_pci_eventfd_replace_locked() defers freeing replaced eventfds to
vfio_pci_eventfd_rcu_free(). A callback can remain queued after
close_device() 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.

Analysis

AI-generated

Technical impact

The Linux kernel contained a flaw in the vfio‑pci driver where eventfd callbacks queued via RCU were not drained before the module was unloaded. After close_device() returns, a callback can still be pending while the driver module reference is dropped. When the dependent module is removed, vfio‑pci‑core may exit while the callback still points into freed module text, resulting in a use‑after‑free. This can cause an out‑of‑band kernel crash, data corruption, or a privilege escalation scenario for a user with sufficient permissions to control VFIO devices.

Affected Systems

All Linux kernel releases that include the vfio‑pci core driver before the fix were affected. No specific kernel version range is listed, so any distribution that ships the vulnerable driver prior to the upstream commit that implements proper callback draining is at risk.

Risk and Exploitability

The CVSS score is not provided and EPSS is unavailable, but the vulnerability is a classic use‑after‑free that requires the attacker to trigger a module unload while a VFIO device is still open. This limits the attack to users that can instantiate VFIO devices and unload kernel modules, typically requiring root or equivalent privileges. Because the exploit depends on module unload timing, the attack surface is narrower than a publicly exploitable remote flaw, yet the impact is high enough to warrant prompt patching. The vulnerability is not listed in CISA’s KEV catalog, but its severity and potential for kernel compromise justify remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor‑supplied kernel update that merges the commit draining eventfd RCU callbacks on module exit
  • If the patch cannot be applied immediately, prevent unloading of the vfio‑pci module and disable any services that expose VFIO devices until the fix is in place
  • Ensure all VFIO devices are closed and no user space processes hold references before attempting to unload the v‑fd‑pci module to avoid keeping callbacks alive

Generated by OpenCVE AI on November 30, 2026 at 23:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: vfio/pci: Drain eventfd RCU callbacks on module exit vfio_pci_eventfd_replace_locked() defers freeing replaced eventfds to vfio_pci_eventfd_rcu_free(). A callback can remain queued after close_device() 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.
Title vfio/pci: Drain eventfd RCU callbacks on module exit
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM