<?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>Sat, 05 Dec 2026 12:43:07 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-143091 — xen/privcmd: fix double free when an irqfd is shut down twice</title>
      <link>https://db.gcve.eu/vuln/cve-2026-143091</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;xen/privcmd: fix double free when an irqfd is shut down twice&lt;/p&gt;
&lt;p&gt;irqfd_deactivate() takes the irqfd off irqfds_list and queues
irqfd_shutdown().  queue_work() is not a once-only gate: it refuses to
enqueue a work item only while WORK_STRUCT_PENDING is set, and
process_one_work() clears that bit before it calls the work function.  So
nothing records that the shutdown work has already been queued, and
nothing protects the window between the start of irqfd_shutdown() and the
kfree() at its end.&lt;/p&gt;
&lt;p&gt;Two paths call irqfd_deactivate() for the same irqfd:&lt;/p&gt;
&lt;p&gt;- privcmd_irqfd_deassign(), from the PRIVCMD_IRQFD_FLAG_DEASSIGN ioctl;&lt;/p&gt;
&lt;p&gt;- irqfd_wakeup(), with EPOLLHUP set, when the last reference to the
    eventfd file goes away, which runs wake_up_poll(&amp;amp;ctx-&amp;gt;wqh, EPOLLHUP)
    from eventfd_release().&lt;/p&gt;
&lt;p&gt;irqfds_lock serialises the two calls, but it does not make the second one
a no-op, and eventfd_ctx_fdget() takes a reference to the eventfd_ctx,
not to the struct file, so the last fd can still be closed while the
ioctl is running:&lt;/p&gt;
&lt;p&gt;CPU0                                 CPU1&lt;/p&gt;
&lt;p&gt;eventfd_ctx_fdget()
  spin_lock(irqfds_lock)
  list_del_init(&amp;amp;kirqfd-&amp;gt;list)
  queue_work(&amp;amp;kirqfd-&amp;gt;shutdown)        close(fd)
                                         eventfd_release()
                                           wake_up_poll(EPOLLHUP)
                                         irqfd_wakeup()
                                         spin_…&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;xen/privcmd: fix double free when an irqfd is shut down twice&lt;/p&gt;
&lt;p&gt;irqfd_deactivate() takes the irqfd off irqfds_list and queues
irqfd_shutdown().  queue_work() is not a once-only gate: it refuses to
enqueue a work item only while WORK_STRUCT_PENDING is set, and
process_one_work() clears that bit before it calls the work function.  So
nothing records that the shutdown work has already been queued, and
nothing protects the window between the start of irqfd_shutdown() and the
kfree() at its end.&lt;/p&gt;
&lt;p&gt;Two paths call irqfd_deactivate() for the same irqfd:&lt;/p&gt;
&lt;p&gt;- privcmd_irqfd_deassign(), from the PRIVCMD_IRQFD_FLAG_DEASSIGN ioctl;&lt;/p&gt;
&lt;p&gt;- irqfd_wakeup(), with EPOLLHUP set, when the last reference to the
    eventfd file goes away, which runs wake_up_poll(&amp;amp;ctx-&amp;gt;wqh, EPOLLHUP)
    from eventfd_release().&lt;/p&gt;
&lt;p&gt;irqfds_lock serialises the two calls, but it does not make the second one
a no-op, and eventfd_ctx_fdget() takes a reference to the eventfd_ctx,
not to the struct file, so the last fd can still be closed while the
ioctl is running:&lt;/p&gt;
&lt;p&gt;CPU0                                 CPU1&lt;/p&gt;
&lt;p&gt;eventfd_ctx_fdget()
  spin_lock(irqfds_lock)
  list_del_init(&amp;amp;kirqfd-&amp;gt;list)
  queue_work(&amp;amp;kirqfd-&amp;gt;shutdown)        close(fd)
                                         eventfd_release()
                                           wake_up_poll(EPOLLHUP)
                                         irqfd_wakeup()
                                         spin_…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-143091</guid>
    </item>
  </channel>
</rss>
