<?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:54:27 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-90162 — ksmbd: defer publishing granted locks to prevent UAF/double-free race</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-90162</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: defer publishing granted locks to prevent UAF/double-free race&lt;/p&gt;
&lt;p&gt;In smb2_lock(), mid-batch granted locks are published to connection-wide
(conn-&amp;gt;lock_list) and file-wide (fp-&amp;gt;lock_list) lists immediately upon
vfs_lock_file() success, while also remaining tracked on the stack-local
rollback_list.&lt;/p&gt;
&lt;p&gt;If a subsequent element in the same SMB2_LOCK request array fails
validation or execution, the thread jumps to out: and walks
rollback_list to undo previously granted locks. However, because the
granted lock was already published to conn-&amp;gt;lock_list, a concurrent
UNLOCK request on the same connection can find the lock object and
kfree() it before the rollback loop executes.&lt;/p&gt;
&lt;p&gt;When the granting thread subsequently walks rollback_list, it
dereferences and frees the already-freed ksmbd_lock structure, resulting
in a Use-After-Free and Double-Free (on both ksmbd_lock and struct
file_lock).&lt;/p&gt;
&lt;p&gt;Fix this by deferring the publication of granted locks to
conn-&amp;gt;lock_list and fp-&amp;gt;lock_list until after the entire array of lock
elements has been processed without error. Mid-batch grants remain
tracked exclusively on the request-local rollback_list until the whole
batch succeeds, eliminating the race window.&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: defer publishing granted locks to prevent UAF/double-free race&lt;/p&gt;
&lt;p&gt;In smb2_lock(), mid-batch granted locks are published to connection-wide
(conn-&amp;gt;lock_list) and file-wide (fp-&amp;gt;lock_list) lists immediately upon
vfs_lock_file() success, while also remaining tracked on the stack-local
rollback_list.&lt;/p&gt;
&lt;p&gt;If a subsequent element in the same SMB2_LOCK request array fails
validation or execution, the thread jumps to out: and walks
rollback_list to undo previously granted locks. However, because the
granted lock was already published to conn-&amp;gt;lock_list, a concurrent
UNLOCK request on the same connection can find the lock object and
kfree() it before the rollback loop executes.&lt;/p&gt;
&lt;p&gt;When the granting thread subsequently walks rollback_list, it
dereferences and frees the already-freed ksmbd_lock structure, resulting
in a Use-After-Free and Double-Free (on both ksmbd_lock and struct
file_lock).&lt;/p&gt;
&lt;p&gt;Fix this by deferring the publication of granted locks to
conn-&amp;gt;lock_list and fp-&amp;gt;lock_list until after the entire array of lock
elements has been processed without error. Mid-batch grants remain
tracked exclusively on the request-local rollback_list until the whole
batch succeeds, eliminating the race window.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-90162</guid>
    </item>
  </channel>
</rss>
