CVE-2026-31468
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 5d74781ebc86c5fa9e9d6934024c505412de9b52 before 83ad334afc9a645cef1062f5346526b1e36d6516, from 5d74781ebc86c5fa9e9d6934024c505412de9b52 before e98137f0a874ab36d0946de4707aa48cb7137d1c, 6.19
Not affected: before 6.19, from 6.19.11 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.19 before 6.19.11, 7.0NVD

Classification

CWE-415

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: vfio/pci: Corrección de doble liberación en la característica dma-buf La ruta de error a través de vfio_pci_core_feature_dma_buf() ignora su propio consejo de usar dma_buf_put() solo después de dma_buf_export(), cayendo en su lugar por toda la cadena de desenrollado. En el improbable caso de que encontremos agotamiento de descriptores de archivo, esto puede resultar en un recuento de referencias desequilibrado en el dispositivo vfio y doble liberación de objetos asignados. Evite esto al mover el put directamente a la ruta de error y devolver el errno en lugar de entrar en la cadena de desenrollado.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31468 changed 2026-10-19CVE Terms of Use
NVDCVE-2026-31468 changed 2026-11-11Public domain