<?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 20:17:50 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-31718 — ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-31718</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;ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger&lt;/p&gt;
&lt;p&gt;When a durable file handle survives session disconnect (TCP close without
SMB2_LOGOFF), session_fd_check() sets fp-&amp;gt;conn = NULL to preserve the
handle for later reconnection. However, it did not clean up the byte-range
locks on fp-&amp;gt;lock_list.&lt;/p&gt;
&lt;p&gt;Later, when the durable scavenger thread times out and calls
__ksmbd_close_fd(NULL, fp), the lock cleanup loop did:&lt;/p&gt;
&lt;p&gt;spin_lock(&amp;amp;fp-&amp;gt;conn-&amp;gt;llist_lock);&lt;/p&gt;
&lt;p&gt;This caused a slab use-after-free because fp-&amp;gt;conn was NULL and the
original connection object had already been freed by
ksmbd_tcp_disconnect().&lt;/p&gt;
&lt;p&gt;The root cause is asymmetric cleanup: lock entries (smb_lock-&amp;gt;clist) were
left dangling on the freed conn-&amp;gt;lock_list while fp-&amp;gt;conn was nulled out.&lt;/p&gt;
&lt;p&gt;To fix this issue properly, we need to handle the lifetime of
smb_lock-&amp;gt;clist across three paths:
 - Safely skip clist deletion when list is empty and fp-&amp;gt;conn is NULL.
 - Remove the lock from the old connection&amp;#39;s lock_list in
   session_fd_check()
 - Re-add the lock to the new connection&amp;#39;s lock_list in
   ksmbd_reopen_durable_fd().&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;ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger&lt;/p&gt;
&lt;p&gt;When a durable file handle survives session disconnect (TCP close without
SMB2_LOGOFF), session_fd_check() sets fp-&amp;gt;conn = NULL to preserve the
handle for later reconnection. However, it did not clean up the byte-range
locks on fp-&amp;gt;lock_list.&lt;/p&gt;
&lt;p&gt;Later, when the durable scavenger thread times out and calls
__ksmbd_close_fd(NULL, fp), the lock cleanup loop did:&lt;/p&gt;
&lt;p&gt;spin_lock(&amp;amp;fp-&amp;gt;conn-&amp;gt;llist_lock);&lt;/p&gt;
&lt;p&gt;This caused a slab use-after-free because fp-&amp;gt;conn was NULL and the
original connection object had already been freed by
ksmbd_tcp_disconnect().&lt;/p&gt;
&lt;p&gt;The root cause is asymmetric cleanup: lock entries (smb_lock-&amp;gt;clist) were
left dangling on the freed conn-&amp;gt;lock_list while fp-&amp;gt;conn was nulled out.&lt;/p&gt;
&lt;p&gt;To fix this issue properly, we need to handle the lifetime of
smb_lock-&amp;gt;clist across three paths:
 - Safely skip clist deletion when list is empty and fp-&amp;gt;conn is NULL.
 - Remove the lock from the old connection&amp;#39;s lock_list in
   session_fd_check()
 - Re-add the lock to the new connection&amp;#39;s lock_list in
   ksmbd_reopen_durable_fd().&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-31718</guid>
    </item>
  </channel>
</rss>
