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

vfio: Remove device debugfs before releasing devres

VFIO device debugfs files created with debugfs_create_devm_seqfile()
store a devres allocated debugfs_devm_entry as inode private data.
vfio_unregister_group_dev() currently calls vfio_device_del() before
vfio_device_debugfs_exit(), but device_del() releases devres. This can
leave debugfs entries visible with stale inode private data while
unregister waits for userspace references to drain.

Remove the per-device debugfs tree before vfio_device_del(). The debugfs
view is diagnostic only, so losing it at the start of unregister is
preferable to preserving entries whose backing storage may already have
been released.

Complete the teardown by clearing the per-device debugfs root after
removal. This matches the global debugfs root cleanup and prevents
future users from mistaking a removed dentry for a live debugfs tree
during the remainder of unregister.
Published: 2026-07-25
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises during the VFIO device unregistration routine when debugfs entries referencing a devres-allocated structure are removed after the structure has already been freed. This creates a use‑after‑free scenario where the debugfs inode still holds stale private data that may be accessed by user space. The impact is potential kernel instability, including crashes or memory corruption, which could disrupt system operation.

Affected Systems

The defect is present in all Linux kernel versions that have not applied the vfio: Remove device debugfs before releasing devres patch. It affects the VFIO subsystem across generic distributions and any custom kernels lacking the change. Devices that expose VFIO debugfs entries during unregistration are at risk.

Risk and Exploitability

The EPSS score indicates a very low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker would need privileged access to manipulate VFIO devices and be able to trigger device unregistration while the debugfs entries persist; this scenario suggests exploitation is possible but requires elevated privileges and timing, making it a local, but potentially high‑impact risk.

Generated by OpenCVE AI on August 2, 2026 at 12:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the VFIO debugfs removal patch.
  • If the kernel cannot be updated immediately, disable VFIO debugfs output by setting /sys/module/vfio/parameters/debugfs=0 before the device is unloaded, thereby eliminating the stale inode references.
  • Reduce the privilege level of services that unload VFIO devices or channel the device removal through a dedicated administrator process with strict access controls.

Generated by OpenCVE AI on August 2, 2026 at 12:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Sat, 01 Aug 2026 01:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Thu, 30 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-911
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


Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: vfio: Remove device debugfs before releasing devres VFIO device debugfs files created with debugfs_create_devm_seqfile() store a devres allocated debugfs_devm_entry as inode private data. vfio_unregister_group_dev() currently calls vfio_device_del() before vfio_device_debugfs_exit(), but device_del() releases devres. This can leave debugfs entries visible with stale inode private data while unregister waits for userspace references to drain. Remove the per-device debugfs tree before vfio_device_del(). The debugfs view is diagnostic only, so losing it at the start of unregister is preferable to preserving entries whose backing storage may already have been released. Complete the teardown by clearing the per-device debugfs root after removal. This matches the global debugfs root cleanup and prevents future users from mistaking a removed dentry for a live debugfs tree during the remainder of unregister.
Title vfio: Remove device debugfs before releasing devres
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-07-25T08:51:36.702Z

Reserved: 2026-07-19T15:36:31.790Z

Link: CVE-2026-64473

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-07-25T10:17:32.757

Modified: 2026-07-25T10:17:32.757

Link: CVE-2026-64473

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64473 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T12:30:05Z

Weaknesses
  • CWE-911

    Improper Update of Reference Count