PT-2026-163656

CVE-2026-139615

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾