<?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>Wed, 30 Sep 2026 09:59:14 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-31712 — ksmbd: require minimum ACE size in smb_check_perm_dacl()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-31712</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: require minimum ACE size in smb_check_perm_dacl()&lt;/p&gt;
&lt;p&gt;Both ACE-walk loops in smb_check_perm_dacl() only guard against an
under-sized remaining buffer, not against an ACE whose declared
`ace-&amp;gt;size` is smaller than the struct it claims to describe:&lt;/p&gt;
&lt;p&gt;if (offsetof(struct smb_ace, access_req) &amp;gt; aces_size)
      break;
  ace_size = le16_to_cpu(ace-&amp;gt;size);
  if (ace_size &amp;gt; aces_size)
      break;&lt;/p&gt;
&lt;p&gt;The first check only requires the 4-byte ACE header to be in bounds;
it does not require access_req (4 bytes at offset 4) to be readable.
An attacker who has set a crafted DACL on a file they own can declare
ace-&amp;gt;size == 4 with aces_size == 4, pass both checks, and then&lt;/p&gt;
&lt;p&gt;granted |= le32_to_cpu(ace-&amp;gt;access_req);               /* upper loop */
  compare_sids(&amp;amp;sid, &amp;amp;ace-&amp;gt;sid);                         /* lower loop */&lt;/p&gt;
&lt;p&gt;reads access_req at offset 4 (OOB by up to 4 bytes) and ace-&amp;gt;sid at
offset 8 (OOB by up to CIFS_SID_BASE_SIZE + SID_MAX_SUB_AUTHORITIES
* 4 bytes).&lt;/p&gt;
&lt;p&gt;Tighten both loops to require&lt;/p&gt;
&lt;p&gt;ace_size &amp;gt;= offsetof(struct smb_ace, sid) + CIFS_SID_BASE_SIZE&lt;/p&gt;
&lt;p&gt;which is the smallest valid on-wire ACE layout (4-byte header +
4-byte access_req + 8-byte sid base with zero sub-auths).  Also
reject ACEs whose sid.num_subauth exceeds SID_MAX_SUB_AUTHORITIES
before letting compare_sids() dereference sub_auth[] entries.&lt;/p&gt;
&lt;p&gt;parse_sec_desc() already enforces an equivalent check (lines 441-448);
smb_check_perm_dacl() simply grew w…&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: require minimum ACE size in smb_check_perm_dacl()&lt;/p&gt;
&lt;p&gt;Both ACE-walk loops in smb_check_perm_dacl() only guard against an
under-sized remaining buffer, not against an ACE whose declared
`ace-&amp;gt;size` is smaller than the struct it claims to describe:&lt;/p&gt;
&lt;p&gt;if (offsetof(struct smb_ace, access_req) &amp;gt; aces_size)
      break;
  ace_size = le16_to_cpu(ace-&amp;gt;size);
  if (ace_size &amp;gt; aces_size)
      break;&lt;/p&gt;
&lt;p&gt;The first check only requires the 4-byte ACE header to be in bounds;
it does not require access_req (4 bytes at offset 4) to be readable.
An attacker who has set a crafted DACL on a file they own can declare
ace-&amp;gt;size == 4 with aces_size == 4, pass both checks, and then&lt;/p&gt;
&lt;p&gt;granted |= le32_to_cpu(ace-&amp;gt;access_req);               /* upper loop */
  compare_sids(&amp;amp;sid, &amp;amp;ace-&amp;gt;sid);                         /* lower loop */&lt;/p&gt;
&lt;p&gt;reads access_req at offset 4 (OOB by up to 4 bytes) and ace-&amp;gt;sid at
offset 8 (OOB by up to CIFS_SID_BASE_SIZE + SID_MAX_SUB_AUTHORITIES
* 4 bytes).&lt;/p&gt;
&lt;p&gt;Tighten both loops to require&lt;/p&gt;
&lt;p&gt;ace_size &amp;gt;= offsetof(struct smb_ace, sid) + CIFS_SID_BASE_SIZE&lt;/p&gt;
&lt;p&gt;which is the smallest valid on-wire ACE layout (4-byte header +
4-byte access_req + 8-byte sid base with zero sub-auths).  Also
reject ACEs whose sid.num_subauth exceeds SID_MAX_SUB_AUTHORITIES
before letting compare_sids() dereference sub_auth[] entries.&lt;/p&gt;
&lt;p&gt;parse_sec_desc() already enforces an equivalent check (lines 441-448);
smb_check_perm_dacl() simply grew w…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-31712</guid>
    </item>
  </channel>
</rss>
