<?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-09-29T15:10:19.287241+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-2026-64436</id>
    <title>CVE-2026-64436 — net: af_key: initialize alg_key_len for IPComp states</title>
    <updated>2026-09-29T15:10:20.100935+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>net: af_key: initialize alg_key_len for IPComp states</p>
<p>pfkey_msg2xfrm_state() handles the IPComp (SADB_X_SATYPE_IPCOMP) case by
allocating x-&gt;calg and copying only the algorithm name:</p>
<p>x-&gt;calg = kmalloc_obj(*x-&gt;calg);
	if (!x-&gt;calg) {
		err = -ENOMEM;
		goto out;
	}
	strcpy(x-&gt;calg-&gt;alg_name, a-&gt;name);
	x-&gt;props.calgo = sa-&gt;sadb_sa_encrypt;</p>
<p>Unlike the authentication (x-&gt;aalg) and encryption (x-&gt;ealg) branches of
the same function, the compression branch never initializes
calg-&gt;alg_key_len.  IPComp carries no key and the allocation only
reserves sizeof(struct xfrm_algo) (i.e. no room for a key), so the field
is left containing uninitialized slab data.</p>
<p>calg-&gt;alg_key_len is later used as a length by xfrm_algo_clone() when an
IPComp state is cloned during XFRM_MSG_MIGRATE:</p>
<p>xfrm_state_migrate()
	  xfrm_state_clone_and_setup()
	    x-&gt;calg = xfrm_algo_clone(orig-&gt;calg);
	      kmemdup(orig, xfrm_alg_len(orig));</p>
<p>where xfrm_alg_len() returns sizeof(*alg) + (alg_key_len + 7) / 8.  With
a non-zero garbage alg_key_len, kmemdup() reads past the end of the
68-byte calg object.  Adding an IPComp SA via PF_KEY and then migrating
it triggers (net-next, KASAN, init_on_alloc=0):</p>
<p>BUG: KASAN: slab-out-of-bounds in kmemdup_noprof+0x44/0x60
  Read of size 4164 at addr ff11000025a74980 by task diag2/9287
  CPU: 3 UID: 0 PID: 9287 Comm: diag2 7.1.0-rc6-g903db046d557 #1
  Call Trace:
   &lt;TASK&gt;
   dump_stack_lvl+0x10e/0x1f0…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-64436"/>
  </entry>
</feed>
