CVE-2026-139615

Not scored yetLast modified Nov 30, 2026

Description

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

vfio: Reject a second cdev open before mutating shared device state

The cdev single-open check lives in vfio_df_open(), which runs at the end of the bind ioctl, after vfio_df_ioctl_bind_iommufd() has already updated state shared across all opens: vfio_df_check_token() can set the PF vf_token and vfio_df_get_kvm_safe() records the caller's KVM pointer in device->kvm and takes a reference.

A second cdev bind of an already-open device runs both, only to be rejected in vfio_df_open(). The error path clears device->kvm and drops the reference, tearing down the current opener's KVM association and potentially resulting in an unbalanced reference on close or premature release, while the vf_token remains clobbered.

Move the single-open check into vfio_df_ioctl_bind_iommufd() ahead of both mutations, so a bind that cannot complete leaves the current opener's state untouched. df->group is NULL on this path, so a non-zero open_count is exactly what vfio_df_open() rejected. The test in vfio_df_open() becomes redundant and is removed.

Return -EBUSY rather than -EINVAL here. The arguments are not invalid, the device is in use, which could be a transient condition due to a delayed fput if the prior user is terminated. This provides compatibility with the group path, where a group open returns -EBUSY, and users may choose bounded polling to detect such a transient condition.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 839e692fa4eb7da5c541a65155f1dbc237d8afaa, < e5026289a555bc89647dd6476b8ab86556cf7adc; >= 839e692fa4eb7da5c541a65155f1dbc237d8afaa, < 52478ef75b37c264991119612ca06cb5217e4189; >= 839e692fa4eb7da5c541a65155f1dbc237d8afaa, < 258ba46543abdd36844f04bba8b4022a5731d873
LinuxLinux6.6

References

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139616In the Linux kernel, the following vulnerability has been resolved: platform/x86/intel/pmt: complete pcidev to device update The update thCVE-2026-139617In the Linux kernel, the following vulnerability has been resolved: fuse: zero the correct range on a short read reply When a read reply iCVE-2026-139618In the Linux kernel, the following vulnerability has been resolved: bpf: Fix uninit read for helper mem args on partially spilled slots chCVE-2026-139619In the Linux kernel, the following vulnerability has been resolved: powerpc/ftrace: Don't restore r13 during ftrace_regs_caller Michal repCVE-2026-139626.5Insufficient data validation in PDF in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the renderer proceCVE-2026-139620In the Linux kernel, the following vulnerability has been resolved: bpf: Fix uninit read for non-fetch atomics on partially spilled slots CVE-2026-139621In the Linux kernel, the following vulnerability has been resolved: bpf: Don't converge a loop on an iterator that was created anew When tCVE-2026-139622In the Linux kernel, the following vulnerability has been resolved: bpf: Fix overflow of jump offset in may_goto expansion may_goto is expCVE-2026-1396237.0In the Linux kernel, the following vulnerability has been resolved: bpf: Adjust pc-relative insn copied into its own patch bpf_do_misc_fixCVE-2026-139624In the Linux kernel, the following vulnerability has been resolved: bpf, x86: Fix timed may_goto with private stack arch_bpf_timed_may_gotCVE-2026-139625In the Linux kernel, the following vulnerability has been resolved: spi: rockchip-sfc: skip DMA cleanup in PIO mode With rockchip,sfc-no-dCVE-2026-139626In the Linux kernel, the following vulnerability has been resolved: ASoC: fsl_asrc_m2m: fix pm_runtime usage counter leak on error pm_runt
CVE-2026-139615: Unscored | Vulnix