<?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 08:34:24 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-40039 — ksmbd: Fix race condition in RPC handle list access</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-40039</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 race condition in RPC handle list access&lt;/p&gt;
&lt;p&gt;The &amp;#39;sess-&amp;gt;rpc_handle_list&amp;#39; XArray manages RPC handles within a ksmbd
session. Access to this list is intended to be protected by
&amp;#39;sess-&amp;gt;rpc_lock&amp;#39; (an rw_semaphore). However, the locking implementation was
flawed, leading to potential race conditions.&lt;/p&gt;
&lt;p&gt;In ksmbd_session_rpc_open(), the code incorrectly acquired only a read lock
before calling xa_store() and xa_erase(). Since these operations modify
the XArray structure, a write lock is required to ensure exclusive access
and prevent data corruption from concurrent modifications.&lt;/p&gt;
&lt;p&gt;Furthermore, ksmbd_session_rpc_method() accessed the list using xa_load()
without holding any lock at all. This could lead to reading inconsistent
data or a potential use-after-free if an entry is concurrently removed and
the pointer is dereferenced.&lt;/p&gt;
&lt;p&gt;Fix these issues by:
1. Using down_write() and up_write() in ksmbd_session_rpc_open()
   to ensure exclusive access during XArray modification, and ensuring
   the lock is correctly released on error paths.
2. Adding down_read() and up_read() in ksmbd_session_rpc_method()
   to safely protect the lookup.&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 race condition in RPC handle list access&lt;/p&gt;
&lt;p&gt;The &amp;#39;sess-&amp;gt;rpc_handle_list&amp;#39; XArray manages RPC handles within a ksmbd
session. Access to this list is intended to be protected by
&amp;#39;sess-&amp;gt;rpc_lock&amp;#39; (an rw_semaphore). However, the locking implementation was
flawed, leading to potential race conditions.&lt;/p&gt;
&lt;p&gt;In ksmbd_session_rpc_open(), the code incorrectly acquired only a read lock
before calling xa_store() and xa_erase(). Since these operations modify
the XArray structure, a write lock is required to ensure exclusive access
and prevent data corruption from concurrent modifications.&lt;/p&gt;
&lt;p&gt;Furthermore, ksmbd_session_rpc_method() accessed the list using xa_load()
without holding any lock at all. This could lead to reading inconsistent
data or a potential use-after-free if an entry is concurrently removed and
the pointer is dereferenced.&lt;/p&gt;
&lt;p&gt;Fix these issues by:
1. Using down_write() and up_write() in ksmbd_session_rpc_open()
   to ensure exclusive access during XArray modification, and ensuring
   the lock is correctly released on error paths.
2. Adding down_read() and up_read() in ksmbd_session_rpc_method()
   to safely protect the lookup.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-40039</guid>
    </item>
  </channel>
</rss>
