<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-04T19:44:21.924813+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2024-53095</id>
    <title>CVE-2024-53095 — smb: client: Fix use-after-free of network namespace.</title>
    <updated>2026-10-04T19:44:21.926756+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>smb: client: Fix use-after-free of network namespace.</p>
<p>Recently, we got a customer report that CIFS triggers oops while
reconnecting to a server.  [0]</p>
<p>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.</p>
<p>The root cause is wrong reference counting for network namespace.</p>
<p>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.</p>
<p>The repro steps are roughly:</p>
<p>1. mount CIFS in a non-root netns
  2. drop packets from the netns
  3. destroy the netns
  4. unmount CIFS</p>
<p>We can reproduce the issue quickly with the script [1] below and see
the splat [2] if CONFIG_NET_NS_REFCNT_TRACKER is enabled.</p>
<p>When the socket is TCP, it is hard to guarantee the netns lifetime
without holding refcnt due to async timers.</p>
<p>Let's hold netns refcnt for each socket as done for SMC in commit
9744d2bf1976 ("smc: Fix use-after-free in tcp_write_timer_handler().").</p>
<p>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().</p>
<p>Also, maybe_get_net() cannot be put just before __sock_create() because
the code is not under RCU and…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2024-53095"/>
  </entry>
</feed>
