<?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, 29 Sep 2026 21:27:00 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52986 — bpf, sockmap: Check for any of tcp_bpf_prots when cloning a listener</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-52986</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: Check for any of tcp_bpf_prots when cloning a listener&lt;/p&gt;
&lt;p&gt;A listening socket linked to a sockmap has its sk_prot overridden. It
points to one of the struct proto variants in tcp_bpf_prots. The variant
depends on the socket&amp;#39;s family and which sockmap programs are attached.&lt;/p&gt;
&lt;p&gt;A child socket cloned from a TCP listener initially inherits their sk_prot.
But before cloning is finished, we restore the child&amp;#39;s proto to the
listener&amp;#39;s original non-tcp_bpf_prots one. This happens in
tcp_create_openreq_child -&amp;gt; tcp_bpf_clone.&lt;/p&gt;
&lt;p&gt;Today, in tcp_bpf_clone we detect if the child&amp;#39;s proto should be restored
by checking only for the TCP_BPF_BASE proto variant. This is not
correct. The sk_prot of listening socket linked to a sockmap can point to
to any variant in tcp_bpf_prots.&lt;/p&gt;
&lt;p&gt;If the listeners sk_prot happens to be not the TCP_BPF_BASE variant, then
the child socket unintentionally is left if the inherited sk_prot by
tcp_bpf_clone.&lt;/p&gt;
&lt;p&gt;This leads to issues like infinite recursion on close [1], because the
child state is otherwise not set up for use with tcp_bpf_prot operations.&lt;/p&gt;
&lt;p&gt;Adjust the check in tcp_bpf_clone to detect all of tcp_bpf_prots variants.&lt;/p&gt;
&lt;p&gt;Note that it wouldn&amp;#39;t be sufficient to check the socket state when
overriding the sk_prot in tcp_bpf_update_proto in order to always use the
TCP_BPF_BASE variant for listening sockets. Since commit
b8b8315e39ff (&amp;#34;bpf, sockmap: Remove unhash handler for BPF sockmap usag…&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: Check for any of tcp_bpf_prots when cloning a listener&lt;/p&gt;
&lt;p&gt;A listening socket linked to a sockmap has its sk_prot overridden. It
points to one of the struct proto variants in tcp_bpf_prots. The variant
depends on the socket&amp;#39;s family and which sockmap programs are attached.&lt;/p&gt;
&lt;p&gt;A child socket cloned from a TCP listener initially inherits their sk_prot.
But before cloning is finished, we restore the child&amp;#39;s proto to the
listener&amp;#39;s original non-tcp_bpf_prots one. This happens in
tcp_create_openreq_child -&amp;gt; tcp_bpf_clone.&lt;/p&gt;
&lt;p&gt;Today, in tcp_bpf_clone we detect if the child&amp;#39;s proto should be restored
by checking only for the TCP_BPF_BASE proto variant. This is not
correct. The sk_prot of listening socket linked to a sockmap can point to
to any variant in tcp_bpf_prots.&lt;/p&gt;
&lt;p&gt;If the listeners sk_prot happens to be not the TCP_BPF_BASE variant, then
the child socket unintentionally is left if the inherited sk_prot by
tcp_bpf_clone.&lt;/p&gt;
&lt;p&gt;This leads to issues like infinite recursion on close [1], because the
child state is otherwise not set up for use with tcp_bpf_prot operations.&lt;/p&gt;
&lt;p&gt;Adjust the check in tcp_bpf_clone to detect all of tcp_bpf_prots variants.&lt;/p&gt;
&lt;p&gt;Note that it wouldn&amp;#39;t be sufficient to check the socket state when
overriding the sk_prot in tcp_bpf_update_proto in order to always use the
TCP_BPF_BASE variant for listening sockets. Since commit
b8b8315e39ff (&amp;#34;bpf, sockmap: Remove unhash handler for BPF sockmap usag…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-52986</guid>
    </item>
  </channel>
</rss>
