<?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>Fri, 02 Oct 2026 12:30:20 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-26865 — rds: tcp: Fix use-after-free of net in reqsk_timer_handler().</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-26865</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;rds: tcp: Fix use-after-free of net in reqsk_timer_handler().&lt;/p&gt;
&lt;p&gt;syzkaller reported a warning of netns tracker [0] followed by KASAN
splat [1] and another ref tracker warning [1].&lt;/p&gt;
&lt;p&gt;syzkaller could not find a repro, but in the log, the only suspicious
sequence was as follows:&lt;/p&gt;
&lt;p&gt;18:26:22 executing program 1:
  r0 = socket$inet6_mptcp(0xa, 0x1, 0x106)
  ...
  connect$inet6(r0, &amp;amp;(0x7f0000000080)={0xa, 0x4001, 0x0, @loopback}, 0x1c) (async)&lt;/p&gt;
&lt;p&gt;The notable thing here is 0x4001 in connect(), which is RDS_TCP_PORT.&lt;/p&gt;
&lt;p&gt;So, the scenario would be:&lt;/p&gt;
&lt;p&gt;1. unshare(CLONE_NEWNET) creates a per netns tcp listener in
      rds_tcp_listen_init().
  2. syz-executor connect()s to it and creates a reqsk.
  3. syz-executor exit()s immediately.
  4. netns is dismantled.  [0]
  5. reqsk timer is fired, and UAF happens while freeing reqsk.  [1]
  6. listener is freed after RCU grace period.  [2]&lt;/p&gt;
&lt;p&gt;Basically, reqsk assumes that the listener guarantees netns safety
until all reqsk timers are expired by holding the listener&amp;#39;s refcount.
However, this was not the case for kernel sockets.&lt;/p&gt;
&lt;p&gt;Commit 740ea3c4a0b2 (&amp;#34;tcp: Clean up kernel listener&amp;#39;s reqsk in
inet_twsk_purge()&amp;#34;) fixed this issue only for per-netns ehash.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s apply the same fix for the global ehash.&lt;/p&gt;
&lt;p&gt;[0]:
ref_tracker: net notrefcnt@0000000065449cc3 has 1/1 users at
     sk_alloc (./include/net/net_namespace.h:337 net/core/sock.c:2146)
     inet6_create (net/ipv6/af_inet6.c:192 net/ip…&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;rds: tcp: Fix use-after-free of net in reqsk_timer_handler().&lt;/p&gt;
&lt;p&gt;syzkaller reported a warning of netns tracker [0] followed by KASAN
splat [1] and another ref tracker warning [1].&lt;/p&gt;
&lt;p&gt;syzkaller could not find a repro, but in the log, the only suspicious
sequence was as follows:&lt;/p&gt;
&lt;p&gt;18:26:22 executing program 1:
  r0 = socket$inet6_mptcp(0xa, 0x1, 0x106)
  ...
  connect$inet6(r0, &amp;amp;(0x7f0000000080)={0xa, 0x4001, 0x0, @loopback}, 0x1c) (async)&lt;/p&gt;
&lt;p&gt;The notable thing here is 0x4001 in connect(), which is RDS_TCP_PORT.&lt;/p&gt;
&lt;p&gt;So, the scenario would be:&lt;/p&gt;
&lt;p&gt;1. unshare(CLONE_NEWNET) creates a per netns tcp listener in
      rds_tcp_listen_init().
  2. syz-executor connect()s to it and creates a reqsk.
  3. syz-executor exit()s immediately.
  4. netns is dismantled.  [0]
  5. reqsk timer is fired, and UAF happens while freeing reqsk.  [1]
  6. listener is freed after RCU grace period.  [2]&lt;/p&gt;
&lt;p&gt;Basically, reqsk assumes that the listener guarantees netns safety
until all reqsk timers are expired by holding the listener&amp;#39;s refcount.
However, this was not the case for kernel sockets.&lt;/p&gt;
&lt;p&gt;Commit 740ea3c4a0b2 (&amp;#34;tcp: Clean up kernel listener&amp;#39;s reqsk in
inet_twsk_purge()&amp;#34;) fixed this issue only for per-netns ehash.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s apply the same fix for the global ehash.&lt;/p&gt;
&lt;p&gt;[0]:
ref_tracker: net notrefcnt@0000000065449cc3 has 1/1 users at
     sk_alloc (./include/net/net_namespace.h:337 net/core/sock.c:2146)
     inet6_create (net/ipv6/af_inet6.c:192 net/ip…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-26865</guid>
    </item>
  </channel>
</rss>
