Description
In the Linux kernel, the following vulnerability has been resolved:

vfio/pci: Fix double free in dma-buf feature

The error path through vfio_pci_core_feature_dma_buf() ignores its
own advice to only use dma_buf_put() after dma_buf_export(), instead
falling through the entire unwind chain. In the unlikely event that
we encounter file descriptor exhaustion, this can result in an
unbalanced refcount on the vfio device and double free of allocated
objects.

Avoid this by moving the "put" directly into the error path and return
the errno rather than entering the unwind chain.
Published: 2026-04-22
Score: 7.0 High
EPSS: n/a
KEV: No
Impact: Memory corruption potentially leading to denial of service or privilege escalation
Action: Patch
AI Analysis

Impact

The Linux kernel contains a double free bug in the vfio_pci_core_feature_dma_buf() path. When a VFIO PCI device runs out of file descriptors, the error handling bypasses a proper dma_buf_put(), causing the device’s reference count to become unbalanced. This unbalanced refcount can lead to multiple frees of the same memory region, corrupting kernel memory. If an attacker can trigger this scenario, they may cause a kernel panic or potentially leverage the memory corruption to gain higher privilege or execute arbitrary code.

Affected Systems

The flaw affects all Linux kernel versions that include the buggy vfio_pci code and have not yet applied the commit that moves the dma_buf_put() into the error path. Known affected vendors are any Linux distributions that ship the stock kernel. No specific version list is provided, so all current kernels prior to the fix are potentially impacted.

Risk and Exploitability

The CVSS score is not listed, and no EPSS score is available, so the exact severity cannot be quantified. The vulnerability is not included in CISA’s KEV catalog, thus no evidence of active exploitation. Based on the description, it is inferred that exploiting the double free would require local access to a VFIO PCI device that can exhaust file descriptors, implying the attack vector is local. Nonetheless, the potential for kernel memory corruption could lead to denial of service or privilege escalation, making the risk significant.

Generated by OpenCVE AI on April 22, 2026 at 19:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the fix introduced by commit 83ad334afc9a645cef1062f5346526b1e36d6516 or later.
  • As a temporary measure, disable or limit the use of VFIO PCI devices that rely on dma-buf usage to prevent file descriptor exhaustion.
  • Monitor kernel logs for panic indications and configure automatic reboot or failover to minimize disruption.

Generated by OpenCVE AI on April 22, 2026 at 19:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Apr 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-763
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


Wed, 22 Apr 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 22 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: vfio/pci: Fix double free in dma-buf feature The error path through vfio_pci_core_feature_dma_buf() ignores its own advice to only use dma_buf_put() after dma_buf_export(), instead falling through the entire unwind chain. In the unlikely event that we encounter file descriptor exhaustion, this can result in an unbalanced refcount on the vfio device and double free of allocated objects. Avoid this by moving the "put" directly into the error path and return the errno rather than entering the unwind chain.
Title vfio/pci: Fix double free in dma-buf feature
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-04-22T13:53:57.583Z

Reserved: 2026-03-09T15:48:24.097Z

Link: CVE-2026-31468

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-04-22T14:16:43.143

Modified: 2026-04-22T14:16:43.143

Link: CVE-2026-31468

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-04-22T00:00:00Z

Links: CVE-2026-31468 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T19:15:24Z

Weaknesses