<?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>Wed, 30 Sep 2026 06:57:59 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-68366 — nbd: defer config unlock in nbd_genl_connect</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-68366</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;nbd: defer config unlock in nbd_genl_connect&lt;/p&gt;
&lt;p&gt;There is one use-after-free warning when running NBD_CMD_CONNECT and
NBD_CLEAR_SOCK:&lt;/p&gt;
&lt;p&gt;nbd_genl_connect
  nbd_alloc_and_init_config // config_refs=1
  nbd_start_device // config_refs=2
  set NBD_RT_HAS_CONFIG_REF			open nbd // config_refs=3
  recv_work done // config_refs=2
						NBD_CLEAR_SOCK // config_refs=1
						close nbd // config_refs=0
  refcount_inc -&amp;gt; uaf&lt;/p&gt;
&lt;p&gt;------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 24 PID: 1014 at lib/refcount.c:25 refcount_warn_saturate+0x12e/0x290
 nbd_genl_connect+0x16d0/0x1ab0
 genl_family_rcv_msg_doit+0x1f3/0x310
 genl_rcv_msg+0x44a/0x790&lt;/p&gt;
&lt;p&gt;The issue can be easily reproduced by adding a small delay before
refcount_inc(&amp;amp;nbd-&amp;gt;config_refs) in nbd_genl_connect():&lt;/p&gt;
&lt;p&gt;mutex_unlock(&amp;amp;nbd-&amp;gt;config_lock);
        if (!ret) {
                set_bit(NBD_RT_HAS_CONFIG_REF, &amp;amp;config-&amp;gt;runtime_flags);
+               printk(&amp;#34;before sleep\n&amp;#34;);
+               mdelay(5 * 1000);
+               printk(&amp;#34;after sleep\n&amp;#34;);
                refcount_inc(&amp;amp;nbd-&amp;gt;config_refs);
                nbd_connect_reply(info, nbd-&amp;gt;index);
        }&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;nbd: defer config unlock in nbd_genl_connect&lt;/p&gt;
&lt;p&gt;There is one use-after-free warning when running NBD_CMD_CONNECT and
NBD_CLEAR_SOCK:&lt;/p&gt;
&lt;p&gt;nbd_genl_connect
  nbd_alloc_and_init_config // config_refs=1
  nbd_start_device // config_refs=2
  set NBD_RT_HAS_CONFIG_REF			open nbd // config_refs=3
  recv_work done // config_refs=2
						NBD_CLEAR_SOCK // config_refs=1
						close nbd // config_refs=0
  refcount_inc -&amp;gt; uaf&lt;/p&gt;
&lt;p&gt;------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 24 PID: 1014 at lib/refcount.c:25 refcount_warn_saturate+0x12e/0x290
 nbd_genl_connect+0x16d0/0x1ab0
 genl_family_rcv_msg_doit+0x1f3/0x310
 genl_rcv_msg+0x44a/0x790&lt;/p&gt;
&lt;p&gt;The issue can be easily reproduced by adding a small delay before
refcount_inc(&amp;amp;nbd-&amp;gt;config_refs) in nbd_genl_connect():&lt;/p&gt;
&lt;p&gt;mutex_unlock(&amp;amp;nbd-&amp;gt;config_lock);
        if (!ret) {
                set_bit(NBD_RT_HAS_CONFIG_REF, &amp;amp;config-&amp;gt;runtime_flags);
+               printk(&amp;#34;before sleep\n&amp;#34;);
+               mdelay(5 * 1000);
+               printk(&amp;#34;after sleep\n&amp;#34;);
                refcount_inc(&amp;amp;nbd-&amp;gt;config_refs);
                nbd_connect_reply(info, nbd-&amp;gt;index);
        }&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-68366</guid>
    </item>
  </channel>
</rss>
