<?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>Fri, 02 Oct 2026 01:50:01 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-64436 — net: af_key: initialize alg_key_len for IPComp states</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-64436</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;net: af_key: initialize alg_key_len for IPComp states&lt;/p&gt;
&lt;p&gt;pfkey_msg2xfrm_state() handles the IPComp (SADB_X_SATYPE_IPCOMP) case by
allocating x-&amp;gt;calg and copying only the algorithm name:&lt;/p&gt;
&lt;p&gt;x-&amp;gt;calg = kmalloc_obj(*x-&amp;gt;calg);
	if (!x-&amp;gt;calg) {
		err = -ENOMEM;
		goto out;
	}
	strcpy(x-&amp;gt;calg-&amp;gt;alg_name, a-&amp;gt;name);
	x-&amp;gt;props.calgo = sa-&amp;gt;sadb_sa_encrypt;&lt;/p&gt;
&lt;p&gt;Unlike the authentication (x-&amp;gt;aalg) and encryption (x-&amp;gt;ealg) branches of
the same function, the compression branch never initializes
calg-&amp;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.&lt;/p&gt;
&lt;p&gt;calg-&amp;gt;alg_key_len is later used as a length by xfrm_algo_clone() when an
IPComp state is cloned during XFRM_MSG_MIGRATE:&lt;/p&gt;
&lt;p&gt;xfrm_state_migrate()
	  xfrm_state_clone_and_setup()
	    x-&amp;gt;calg = xfrm_algo_clone(orig-&amp;gt;calg);
	      kmemdup(orig, xfrm_alg_len(orig));&lt;/p&gt;
&lt;p&gt;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):&lt;/p&gt;
&lt;p&gt;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:
   &amp;lt;TASK&amp;gt;
   dump_stack_lvl+0x10e/0x1f0…&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;net: af_key: initialize alg_key_len for IPComp states&lt;/p&gt;
&lt;p&gt;pfkey_msg2xfrm_state() handles the IPComp (SADB_X_SATYPE_IPCOMP) case by
allocating x-&amp;gt;calg and copying only the algorithm name:&lt;/p&gt;
&lt;p&gt;x-&amp;gt;calg = kmalloc_obj(*x-&amp;gt;calg);
	if (!x-&amp;gt;calg) {
		err = -ENOMEM;
		goto out;
	}
	strcpy(x-&amp;gt;calg-&amp;gt;alg_name, a-&amp;gt;name);
	x-&amp;gt;props.calgo = sa-&amp;gt;sadb_sa_encrypt;&lt;/p&gt;
&lt;p&gt;Unlike the authentication (x-&amp;gt;aalg) and encryption (x-&amp;gt;ealg) branches of
the same function, the compression branch never initializes
calg-&amp;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.&lt;/p&gt;
&lt;p&gt;calg-&amp;gt;alg_key_len is later used as a length by xfrm_algo_clone() when an
IPComp state is cloned during XFRM_MSG_MIGRATE:&lt;/p&gt;
&lt;p&gt;xfrm_state_migrate()
	  xfrm_state_clone_and_setup()
	    x-&amp;gt;calg = xfrm_algo_clone(orig-&amp;gt;calg);
	      kmemdup(orig, xfrm_alg_len(orig));&lt;/p&gt;
&lt;p&gt;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):&lt;/p&gt;
&lt;p&gt;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:
   &amp;lt;TASK&amp;gt;
   dump_stack_lvl+0x10e/0x1f0…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-64436</guid>
    </item>
  </channel>
</rss>
