<?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>Tue, 29 Sep 2026 08:46:27 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-31706 — ksmbd: validate num_aces and harden ACE walk in smb_inherit_dacl()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-31706</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: validate num_aces and harden ACE walk in smb_inherit_dacl()&lt;/p&gt;
&lt;p&gt;smb_inherit_dacl() trusts the on-disk num_aces value from the parent
directory&amp;#39;s DACL xattr and uses it to size a heap allocation:&lt;/p&gt;
&lt;p&gt;aces_base = kmalloc(sizeof(struct smb_ace) * num_aces * 2, ...);&lt;/p&gt;
&lt;p&gt;num_aces is a u16 read from le16_to_cpu(parent_pdacl-&amp;gt;num_aces)
without checking that it is consistent with the declared pdacl_size.
An authenticated client whose parent directory&amp;#39;s security.NTACL is
tampered (e.g. via offline xattr corruption or a concurrent path that
bypasses parse_dacl()) can present num_aces = 65535 with minimal
actual ACE data.  This causes a ~8 MB allocation (not kzalloc, so
uninitialized) that the subsequent loop only partially populates, and
may also overflow the three-way size_t multiply on 32-bit kernels.&lt;/p&gt;
&lt;p&gt;Additionally, the ACE walk loop uses the weaker
offsetof(struct smb_ace, access_req) minimum size check rather than
the minimum valid on-wire ACE size, and does not reject ACEs whose
declared size is below the minimum.&lt;/p&gt;
&lt;p&gt;Reproduced on UML + KASAN + LOCKDEP against the real ksmbd code path.
A legitimate mount.cifs client creates a parent directory over SMB
(ksmbd writes a valid security.NTACL xattr), then the NTACL blob on
the backing filesystem is rewritten to set num_aces = 0xFFFF while
keeping the posix_acl_hash bytes intact so ksmbd_vfs_get_sd_xattr()&amp;#39;s
hash check still passes.  A subsequent SMB2 CREATE of a child…&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: validate num_aces and harden ACE walk in smb_inherit_dacl()&lt;/p&gt;
&lt;p&gt;smb_inherit_dacl() trusts the on-disk num_aces value from the parent
directory&amp;#39;s DACL xattr and uses it to size a heap allocation:&lt;/p&gt;
&lt;p&gt;aces_base = kmalloc(sizeof(struct smb_ace) * num_aces * 2, ...);&lt;/p&gt;
&lt;p&gt;num_aces is a u16 read from le16_to_cpu(parent_pdacl-&amp;gt;num_aces)
without checking that it is consistent with the declared pdacl_size.
An authenticated client whose parent directory&amp;#39;s security.NTACL is
tampered (e.g. via offline xattr corruption or a concurrent path that
bypasses parse_dacl()) can present num_aces = 65535 with minimal
actual ACE data.  This causes a ~8 MB allocation (not kzalloc, so
uninitialized) that the subsequent loop only partially populates, and
may also overflow the three-way size_t multiply on 32-bit kernels.&lt;/p&gt;
&lt;p&gt;Additionally, the ACE walk loop uses the weaker
offsetof(struct smb_ace, access_req) minimum size check rather than
the minimum valid on-wire ACE size, and does not reject ACEs whose
declared size is below the minimum.&lt;/p&gt;
&lt;p&gt;Reproduced on UML + KASAN + LOCKDEP against the real ksmbd code path.
A legitimate mount.cifs client creates a parent directory over SMB
(ksmbd writes a valid security.NTACL xattr), then the NTACL blob on
the backing filesystem is rewritten to set num_aces = 0xFFFF while
keeping the posix_acl_hash bytes intact so ksmbd_vfs_get_sd_xattr()&amp;#39;s
hash check still passes.  A subsequent SMB2 CREATE of a child…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-31706</guid>
    </item>
  </channel>
</rss>
