<?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-04T11:24:32.792133+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-2025-38475</id>
    <title>CVE-2025-38475 — smc: Fix various oops due to inet_sock type confusion.</title>
    <updated>2026-10-04T11:24:34.659486+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>smc: Fix various oops due to inet_sock type confusion.</p>
<p>syzbot reported weird splats [0][1] in cipso_v4_sock_setattr() while
freeing inet_sk(sk)-&gt;inet_opt.</p>
<p>The address was freed multiple times even though it was read-only memory.</p>
<p>cipso_v4_sock_setattr() did nothing wrong, and the root cause was type
confusion.</p>
<p>The cited commit made it possible to create smc_sock as an INET socket.</p>
<p>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.</p>
<p>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.</p>
<p>$ pahole -C inet_sock vmlinux
  struct inet_sock {
  ...
          struct ip_options_rcu *    inet_opt;             /*   784     8 */</p>
<p>$ pahole -C smc_sock vmlinux
  struct smc_sock {
  ...
          void                       (*clcsk_data_ready)(struct sock *); /*   784     8 */</p>
<p>The same issue for another field was reported before. [2][3]</p>
<p>At that time, an ugly hack was suggested [4], but it makes both INET
and SMC code error-prone and hard to change.</p>
<p>Also, yet another variant was fixed by a hacky commit 98d4435efcbf3
("net/smc: prevent NULL pointer dereference in txopt_get").</p>
<p>Instead of papering over the root cause by such hacks, we should not
allow non-INET socket to reuse the INET infra.</p>
<p>Let's add inet_sock as the first member o…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2025-38475"/>
  </entry>
</feed>
