<?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>Sun, 04 Oct 2026 19:44:17 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-53095 — smb: client: Fix use-after-free of network namespace.</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-53095</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;smb: client: Fix use-after-free of network namespace.&lt;/p&gt;
&lt;p&gt;Recently, we got a customer report that CIFS triggers oops while
reconnecting to a server.  [0]&lt;/p&gt;
&lt;p&gt;The workload runs on Kubernetes, and some pods mount CIFS servers
in non-root network namespaces.  The problem rarely happened, but
it was always while the pod was dying.&lt;/p&gt;
&lt;p&gt;The root cause is wrong reference counting for network namespace.&lt;/p&gt;
&lt;p&gt;CIFS uses kernel sockets, which do not hold refcnt of the netns that
the socket belongs to.  That means CIFS must ensure the socket is
always freed before its netns; otherwise, use-after-free happens.&lt;/p&gt;
&lt;p&gt;The repro steps are roughly:&lt;/p&gt;
&lt;p&gt;1. mount CIFS in a non-root netns
  2. drop packets from the netns
  3. destroy the netns
  4. unmount CIFS&lt;/p&gt;
&lt;p&gt;We can reproduce the issue quickly with the script [1] below and see
the splat [2] if CONFIG_NET_NS_REFCNT_TRACKER is enabled.&lt;/p&gt;
&lt;p&gt;When the socket is TCP, it is hard to guarantee the netns lifetime
without holding refcnt due to async timers.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s hold netns refcnt for each socket as done for SMC in commit
9744d2bf1976 (&amp;#34;smc: Fix use-after-free in tcp_write_timer_handler().&amp;#34;).&lt;/p&gt;
&lt;p&gt;Note that we need to move put_net() from cifs_put_tcp_session() to
clean_demultiplex_info(); otherwise, __sock_create() still could touch a
freed netns while cifsd tries to reconnect from cifs_demultiplex_thread().&lt;/p&gt;
&lt;p&gt;Also, maybe_get_net() cannot be put just before __sock_create() because
the code is not under RCU and…&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;smb: client: Fix use-after-free of network namespace.&lt;/p&gt;
&lt;p&gt;Recently, we got a customer report that CIFS triggers oops while
reconnecting to a server.  [0]&lt;/p&gt;
&lt;p&gt;The workload runs on Kubernetes, and some pods mount CIFS servers
in non-root network namespaces.  The problem rarely happened, but
it was always while the pod was dying.&lt;/p&gt;
&lt;p&gt;The root cause is wrong reference counting for network namespace.&lt;/p&gt;
&lt;p&gt;CIFS uses kernel sockets, which do not hold refcnt of the netns that
the socket belongs to.  That means CIFS must ensure the socket is
always freed before its netns; otherwise, use-after-free happens.&lt;/p&gt;
&lt;p&gt;The repro steps are roughly:&lt;/p&gt;
&lt;p&gt;1. mount CIFS in a non-root netns
  2. drop packets from the netns
  3. destroy the netns
  4. unmount CIFS&lt;/p&gt;
&lt;p&gt;We can reproduce the issue quickly with the script [1] below and see
the splat [2] if CONFIG_NET_NS_REFCNT_TRACKER is enabled.&lt;/p&gt;
&lt;p&gt;When the socket is TCP, it is hard to guarantee the netns lifetime
without holding refcnt due to async timers.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s hold netns refcnt for each socket as done for SMC in commit
9744d2bf1976 (&amp;#34;smc: Fix use-after-free in tcp_write_timer_handler().&amp;#34;).&lt;/p&gt;
&lt;p&gt;Note that we need to move put_net() from cifs_put_tcp_session() to
clean_demultiplex_info(); otherwise, __sock_create() still could touch a
freed netns while cifsd tries to reconnect from cifs_demultiplex_thread().&lt;/p&gt;
&lt;p&gt;Also, maybe_get_net() cannot be put just before __sock_create() because
the code is not under RCU and…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-53095</guid>
    </item>
  </channel>
</rss>
