<?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://cve.radiocsirt.org</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, 18 Oct 2026 09:18:50 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-31610 — ksmbd: fix mechToken leak when SPNEGO decode fails after token alloc</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2026-31610</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;ksmbd: fix mechToken leak when SPNEGO decode fails after token alloc&lt;/p&gt;
&lt;p&gt;The kernel ASN.1 BER decoder calls action callbacks incrementally as it
walks the input.  When ksmbd_decode_negTokenInit() reaches the mechToken
[2] OCTET STRING element, ksmbd_neg_token_alloc() allocates
conn-&amp;gt;mechToken immediately via kmemdup_nul().  If a later element in
the same blob is malformed, then the decoder will return nonzero after
the allocation is already live.  This could happen if mechListMIC [3]
overrunse the enclosing SEQUENCE.&lt;/p&gt;
&lt;p&gt;decode_negotiation_token() then sets conn-&amp;gt;use_spnego = false because
both the negTokenInit and negTokenTarg grammars failed.  The cleanup at
the bottom of smb2_sess_setup() is gated on use_spnego:&lt;/p&gt;
&lt;p&gt;if (conn-&amp;gt;use_spnego &amp;amp;&amp;amp; conn-&amp;gt;mechToken) {
		kfree(conn-&amp;gt;mechToken);
		conn-&amp;gt;mechToken = NULL;
	}&lt;/p&gt;
&lt;p&gt;so the kfree is skipped, causing the mechToken to never be freed.&lt;/p&gt;
&lt;p&gt;This codepath is reachable pre-authentication, so untrusted clients can
cause slow memory leaks on a server without even being properly
authenticated.&lt;/p&gt;
&lt;p&gt;Fix this up by not checking check for use_spnego, as it&amp;#39;s not required,
so the memory will always be properly freed.  At the same time, always
free the memory in ksmbd_conn_free() incase some other failure path
forgot to free it.&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;ksmbd: fix mechToken leak when SPNEGO decode fails after token alloc&lt;/p&gt;
&lt;p&gt;The kernel ASN.1 BER decoder calls action callbacks incrementally as it
walks the input.  When ksmbd_decode_negTokenInit() reaches the mechToken
[2] OCTET STRING element, ksmbd_neg_token_alloc() allocates
conn-&amp;gt;mechToken immediately via kmemdup_nul().  If a later element in
the same blob is malformed, then the decoder will return nonzero after
the allocation is already live.  This could happen if mechListMIC [3]
overrunse the enclosing SEQUENCE.&lt;/p&gt;
&lt;p&gt;decode_negotiation_token() then sets conn-&amp;gt;use_spnego = false because
both the negTokenInit and negTokenTarg grammars failed.  The cleanup at
the bottom of smb2_sess_setup() is gated on use_spnego:&lt;/p&gt;
&lt;p&gt;if (conn-&amp;gt;use_spnego &amp;amp;&amp;amp; conn-&amp;gt;mechToken) {
		kfree(conn-&amp;gt;mechToken);
		conn-&amp;gt;mechToken = NULL;
	}&lt;/p&gt;
&lt;p&gt;so the kfree is skipped, causing the mechToken to never be freed.&lt;/p&gt;
&lt;p&gt;This codepath is reachable pre-authentication, so untrusted clients can
cause slow memory leaks on a server without even being properly
authenticated.&lt;/p&gt;
&lt;p&gt;Fix this up by not checking check for use_spnego, as it&amp;#39;s not required,
so the memory will always be properly freed.  At the same time, always
free the memory in ksmbd_conn_free() incase some other failure path
forgot to free it.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2026-31610</guid>
    </item>
  </channel>
</rss>
