<?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>Mon, 28 Sep 2026 23:40:58 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-53186 — ksmbd: fix use-after-free in SMB request handling</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-53186</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 SMB request handling&lt;/p&gt;
&lt;p&gt;A race condition exists between SMB request handling in
`ksmbd_conn_handler_loop()` and the freeing of `ksmbd_conn` in the
workqueue handler `handle_ksmbd_work()`. This leads to a UAF.
- KASAN: slab-use-after-free Read in handle_ksmbd_work
- KASAN: slab-use-after-free in rtlock_slowlock_locked&lt;/p&gt;
&lt;p&gt;This race condition arises as follows:
- `ksmbd_conn_handler_loop()` waits for `conn-&amp;gt;r_count` to reach zero:
  `wait_event(conn-&amp;gt;r_count_q, atomic_read(&amp;amp;conn-&amp;gt;r_count) == 0);`
- Meanwhile, `handle_ksmbd_work()` decrements `conn-&amp;gt;r_count` using
  `atomic_dec_return(&amp;amp;conn-&amp;gt;r_count)`, and if it reaches zero, calls
  `ksmbd_conn_free()`, which frees `conn`.
- However, after `handle_ksmbd_work()` decrements `conn-&amp;gt;r_count`,
  it may still access `conn-&amp;gt;r_count_q` in the following line:
  `waitqueue_active(&amp;amp;conn-&amp;gt;r_count_q)` or `wake_up(&amp;amp;conn-&amp;gt;r_count_q)`
  This results in a UAF, as `conn` has already been freed.&lt;/p&gt;
&lt;p&gt;The discovery of this UAF can be referenced in the following PR for
syzkaller&amp;#39;s support for SMB requests.&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 SMB request handling&lt;/p&gt;
&lt;p&gt;A race condition exists between SMB request handling in
`ksmbd_conn_handler_loop()` and the freeing of `ksmbd_conn` in the
workqueue handler `handle_ksmbd_work()`. This leads to a UAF.
- KASAN: slab-use-after-free Read in handle_ksmbd_work
- KASAN: slab-use-after-free in rtlock_slowlock_locked&lt;/p&gt;
&lt;p&gt;This race condition arises as follows:
- `ksmbd_conn_handler_loop()` waits for `conn-&amp;gt;r_count` to reach zero:
  `wait_event(conn-&amp;gt;r_count_q, atomic_read(&amp;amp;conn-&amp;gt;r_count) == 0);`
- Meanwhile, `handle_ksmbd_work()` decrements `conn-&amp;gt;r_count` using
  `atomic_dec_return(&amp;amp;conn-&amp;gt;r_count)`, and if it reaches zero, calls
  `ksmbd_conn_free()`, which frees `conn`.
- However, after `handle_ksmbd_work()` decrements `conn-&amp;gt;r_count`,
  it may still access `conn-&amp;gt;r_count_q` in the following line:
  `waitqueue_active(&amp;amp;conn-&amp;gt;r_count_q)` or `wake_up(&amp;amp;conn-&amp;gt;r_count_q)`
  This results in a UAF, as `conn` has already been freed.&lt;/p&gt;
&lt;p&gt;The discovery of this UAF can be referenced in the following PR for
syzkaller&amp;#39;s support for SMB requests.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-53186</guid>
    </item>
  </channel>
</rss>
