<?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 11:24:33 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38475 — smc: Fix various oops due to inet_sock type confusion.</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-38475</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;smc: Fix various oops due to inet_sock type confusion.&lt;/p&gt;
&lt;p&gt;syzbot reported weird splats [0][1] in cipso_v4_sock_setattr() while
freeing inet_sk(sk)-&amp;gt;inet_opt.&lt;/p&gt;
&lt;p&gt;The address was freed multiple times even though it was read-only memory.&lt;/p&gt;
&lt;p&gt;cipso_v4_sock_setattr() did nothing wrong, and the root cause was type
confusion.&lt;/p&gt;
&lt;p&gt;The cited commit made it possible to create smc_sock as an INET socket.&lt;/p&gt;
&lt;p&gt;The issue is that struct smc_sock does not have struct inet_sock as the
first member but hijacks AF_INET and AF_INET6 sk_family, which confuses
various places.&lt;/p&gt;
&lt;p&gt;In this case, inet_sock.inet_opt was actually smc_sock.clcsk_data_ready(),
which is an address of a function in the text segment.&lt;/p&gt;
&lt;p&gt;$ pahole -C inet_sock vmlinux
  struct inet_sock {
  ...
          struct ip_options_rcu *    inet_opt;             /*   784     8 */&lt;/p&gt;
&lt;p&gt;$ pahole -C smc_sock vmlinux
  struct smc_sock {
  ...
          void                       (*clcsk_data_ready)(struct sock *); /*   784     8 */&lt;/p&gt;
&lt;p&gt;The same issue for another field was reported before. [2][3]&lt;/p&gt;
&lt;p&gt;At that time, an ugly hack was suggested [4], but it makes both INET
and SMC code error-prone and hard to change.&lt;/p&gt;
&lt;p&gt;Also, yet another variant was fixed by a hacky commit 98d4435efcbf3
(&amp;#34;net/smc: prevent NULL pointer dereference in txopt_get&amp;#34;).&lt;/p&gt;
&lt;p&gt;Instead of papering over the root cause by such hacks, we should not
allow non-INET socket to reuse the INET infra.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s add inet_sock as the first member o…&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;smc: Fix various oops due to inet_sock type confusion.&lt;/p&gt;
&lt;p&gt;syzbot reported weird splats [0][1] in cipso_v4_sock_setattr() while
freeing inet_sk(sk)-&amp;gt;inet_opt.&lt;/p&gt;
&lt;p&gt;The address was freed multiple times even though it was read-only memory.&lt;/p&gt;
&lt;p&gt;cipso_v4_sock_setattr() did nothing wrong, and the root cause was type
confusion.&lt;/p&gt;
&lt;p&gt;The cited commit made it possible to create smc_sock as an INET socket.&lt;/p&gt;
&lt;p&gt;The issue is that struct smc_sock does not have struct inet_sock as the
first member but hijacks AF_INET and AF_INET6 sk_family, which confuses
various places.&lt;/p&gt;
&lt;p&gt;In this case, inet_sock.inet_opt was actually smc_sock.clcsk_data_ready(),
which is an address of a function in the text segment.&lt;/p&gt;
&lt;p&gt;$ pahole -C inet_sock vmlinux
  struct inet_sock {
  ...
          struct ip_options_rcu *    inet_opt;             /*   784     8 */&lt;/p&gt;
&lt;p&gt;$ pahole -C smc_sock vmlinux
  struct smc_sock {
  ...
          void                       (*clcsk_data_ready)(struct sock *); /*   784     8 */&lt;/p&gt;
&lt;p&gt;The same issue for another field was reported before. [2][3]&lt;/p&gt;
&lt;p&gt;At that time, an ugly hack was suggested [4], but it makes both INET
and SMC code error-prone and hard to change.&lt;/p&gt;
&lt;p&gt;Also, yet another variant was fixed by a hacky commit 98d4435efcbf3
(&amp;#34;net/smc: prevent NULL pointer dereference in txopt_get&amp;#34;).&lt;/p&gt;
&lt;p&gt;Instead of papering over the root cause by such hacks, we should not
allow non-INET socket to reuse the INET infra.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s add inet_sock as the first member o…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-38475</guid>
    </item>
  </channel>
</rss>
