<?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://vulnerability.circl.lu</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>Tue, 29 Sep 2026 13:03:26 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-97992 — vhost-vdpa: protect config_ctx from being freed under the config callback</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-97992</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;vhost-vdpa: protect config_ctx from being freed under the config callback&lt;/p&gt;
&lt;p&gt;vhost_vdpa_config_cb() loads v-&amp;gt;config_ctx and signals it without taking
a reference and without holding any lock:&lt;/p&gt;
&lt;p&gt;struct eventfd_ctx *config_ctx = v-&amp;gt;config_ctx;&lt;/p&gt;
&lt;p&gt;if (config_ctx)
		eventfd_signal(config_ctx);&lt;/p&gt;
&lt;p&gt;VHOST_VDPA_SET_CONFIG_CALL replaces that field and drops what is normally
the last reference to the old context:&lt;/p&gt;
&lt;p&gt;swap(ctx, v-&amp;gt;config_ctx);&lt;/p&gt;
&lt;p&gt;if (ctx)
		eventfd_ctx_put(ctx);&lt;/p&gt;
&lt;p&gt;eventfd_ctx_put() drops the last kref and frees the context immediately,
with no RCU grace period, so a callback that has already loaded the
pointer goes on to dereference freed memory.  The two sides share no
lock: the ioctl runs under vhost_dev.mutex, while the parent invokes the
callback from its own interrupt or workqueue context.&lt;/p&gt;
&lt;p&gt;This is not the reopen refcount underflow fixed by commit f6bbf0010ba0
(&amp;#34;vhost-vdpa: fix use-after-free of v-&amp;gt;config_ctx&amp;#34;), which was about
vhost_vdpa_config_put() leaving a stale pointer behind.  Here the pointer
is maintained correctly and it is the read side that is unprotected.&lt;/p&gt;
&lt;p&gt;With VDUSE as the parent this is reachable from userspace with access to
/dev/vduse (root by default).  VDUSE_DEV_INJECT_CONFIG_IRQ queues
dev-&amp;gt;inject, and vduse_dev_irq_inject() runs the callback under VDUSE&amp;#39;s
own dev-&amp;gt;irq_lock, which vhost does not hold.  vduse_dev_reset() does
flush_work(&amp;amp;dev-&amp;gt;inject), but VHOST_VDPA_SET_CONFIG_CALL neve…&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;vhost-vdpa: protect config_ctx from being freed under the config callback&lt;/p&gt;
&lt;p&gt;vhost_vdpa_config_cb() loads v-&amp;gt;config_ctx and signals it without taking
a reference and without holding any lock:&lt;/p&gt;
&lt;p&gt;struct eventfd_ctx *config_ctx = v-&amp;gt;config_ctx;&lt;/p&gt;
&lt;p&gt;if (config_ctx)
		eventfd_signal(config_ctx);&lt;/p&gt;
&lt;p&gt;VHOST_VDPA_SET_CONFIG_CALL replaces that field and drops what is normally
the last reference to the old context:&lt;/p&gt;
&lt;p&gt;swap(ctx, v-&amp;gt;config_ctx);&lt;/p&gt;
&lt;p&gt;if (ctx)
		eventfd_ctx_put(ctx);&lt;/p&gt;
&lt;p&gt;eventfd_ctx_put() drops the last kref and frees the context immediately,
with no RCU grace period, so a callback that has already loaded the
pointer goes on to dereference freed memory.  The two sides share no
lock: the ioctl runs under vhost_dev.mutex, while the parent invokes the
callback from its own interrupt or workqueue context.&lt;/p&gt;
&lt;p&gt;This is not the reopen refcount underflow fixed by commit f6bbf0010ba0
(&amp;#34;vhost-vdpa: fix use-after-free of v-&amp;gt;config_ctx&amp;#34;), which was about
vhost_vdpa_config_put() leaving a stale pointer behind.  Here the pointer
is maintained correctly and it is the read side that is unprotected.&lt;/p&gt;
&lt;p&gt;With VDUSE as the parent this is reachable from userspace with access to
/dev/vduse (root by default).  VDUSE_DEV_INJECT_CONFIG_IRQ queues
dev-&amp;gt;inject, and vduse_dev_irq_inject() runs the callback under VDUSE&amp;#39;s
own dev-&amp;gt;irq_lock, which vhost does not hold.  vduse_dev_reset() does
flush_work(&amp;amp;dev-&amp;gt;inject), but VHOST_VDPA_SET_CONFIG_CALL neve…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-97992</guid>
    </item>
  </channel>
</rss>
