<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 04 Dec 2026 18:56:46 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139615 — vfio: Reject a second cdev open before mutating shared device state</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139615</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;vfio: Reject a second cdev open before mutating shared device state&lt;/p&gt;
&lt;p&gt;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&amp;#39;s KVM
pointer in device-&amp;gt;kvm and takes a reference.&lt;/p&gt;
&lt;p&gt;A second cdev bind of an already-open device runs both, only to be
rejected in vfio_df_open().  The error path clears device-&amp;gt;kvm and
drops the reference, tearing down the current opener&amp;#39;s KVM association
and potentially resulting in an unbalanced reference on close or
premature release, while the vf_token remains clobbered.&lt;/p&gt;
&lt;p&gt;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&amp;#39;s state untouched.  df-&amp;gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;vfio: Reject a second cdev open before mutating shared device state&lt;/p&gt;
&lt;p&gt;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&amp;#39;s KVM
pointer in device-&amp;gt;kvm and takes a reference.&lt;/p&gt;
&lt;p&gt;A second cdev bind of an already-open device runs both, only to be
rejected in vfio_df_open().  The error path clears device-&amp;gt;kvm and
drops the reference, tearing down the current opener&amp;#39;s KVM association
and potentially resulting in an unbalanced reference on close or
premature release, while the vf_token remains clobbered.&lt;/p&gt;
&lt;p&gt;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&amp;#39;s state untouched.  df-&amp;gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139615</guid>
    </item>
  </channel>
</rss>
