<?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>Tue, 06 Oct 2026 14:13:17 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38154 — bpf, sockmap: Avoid using sk_socket after free when sending</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-38154</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;bpf, sockmap: Avoid using sk_socket after free when sending&lt;/p&gt;
&lt;p&gt;The sk-&amp;gt;sk_socket is not locked or referenced in backlog thread, and
during the call to skb_send_sock(), there is a race condition with
the release of sk_socket. All types of sockets(tcp/udp/unix/vsock)
will be affected.&lt;/p&gt;
&lt;p&gt;Race conditions:
&amp;#39;&amp;#39;&amp;#39;
CPU0                               CPU1&lt;/p&gt;
&lt;p&gt;backlog::skb_send_sock
  sendmsg_unlocked
    sock_sendmsg
      sock_sendmsg_nosec
                                   close(fd):
                                     ...
                                     ops-&amp;gt;release() -&amp;gt; sock_map_close()
                                     sk_socket-&amp;gt;ops = NULL
                                     free(socket)
      sock-&amp;gt;ops-&amp;gt;sendmsg
            ^
            panic here
&amp;#39;&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;The ref of psock become 0 after sock_map_close() executed.
&amp;#39;&amp;#39;&amp;#39;
void sock_map_close()
{
    ...
    if (likely(psock)) {
    ...
    // !! here we remove psock and the ref of psock become 0
    sock_map_remove_links(sk, psock)
    psock = sk_psock_get(sk);
    if (unlikely(!psock))
        goto no_psock; &amp;lt;=== Control jumps here via goto
        ...
        cancel_delayed_work_sync(&amp;amp;psock-&amp;gt;work); &amp;lt;=== not executed
        sk_psock_put(sk, psock);
        ...
}
&amp;#39;&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;Based on the fact that we already wait for the workqueue to finish in
sock_map_close() if psock is held, we simply increase the psock
reference count to avoid race conditions.&lt;/p&gt;
&lt;p&gt;With this patch, if t…&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;bpf, sockmap: Avoid using sk_socket after free when sending&lt;/p&gt;
&lt;p&gt;The sk-&amp;gt;sk_socket is not locked or referenced in backlog thread, and
during the call to skb_send_sock(), there is a race condition with
the release of sk_socket. All types of sockets(tcp/udp/unix/vsock)
will be affected.&lt;/p&gt;
&lt;p&gt;Race conditions:
&amp;#39;&amp;#39;&amp;#39;
CPU0                               CPU1&lt;/p&gt;
&lt;p&gt;backlog::skb_send_sock
  sendmsg_unlocked
    sock_sendmsg
      sock_sendmsg_nosec
                                   close(fd):
                                     ...
                                     ops-&amp;gt;release() -&amp;gt; sock_map_close()
                                     sk_socket-&amp;gt;ops = NULL
                                     free(socket)
      sock-&amp;gt;ops-&amp;gt;sendmsg
            ^
            panic here
&amp;#39;&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;The ref of psock become 0 after sock_map_close() executed.
&amp;#39;&amp;#39;&amp;#39;
void sock_map_close()
{
    ...
    if (likely(psock)) {
    ...
    // !! here we remove psock and the ref of psock become 0
    sock_map_remove_links(sk, psock)
    psock = sk_psock_get(sk);
    if (unlikely(!psock))
        goto no_psock; &amp;lt;=== Control jumps here via goto
        ...
        cancel_delayed_work_sync(&amp;amp;psock-&amp;gt;work); &amp;lt;=== not executed
        sk_psock_put(sk, psock);
        ...
}
&amp;#39;&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;Based on the fact that we already wait for the workqueue to finish in
sock_map_close() if psock is held, we simply increase the psock
reference count to avoid race conditions.&lt;/p&gt;
&lt;p&gt;With this patch, if t…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-38154</guid>
    </item>
  </channel>
</rss>
