CVE-2026-43490

ksmbd: validate inherited ACE SID length

State
Published
Severity
8.8 High
Published
May 15, 2026
Updated
Oct 30, 2026
Reserved
May 1, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: validate inherited ACE SID length

smb_inherit_dacl() walks the parent directory DACL loaded from the security descriptor xattr. It verifies that each ACE contains the fixed SID header before using it, but does not verify that the variable-length SID described by sid.num_subauth is fully contained in the ACE.

A malformed inheritable ACE can advertise more subauthorities than are present in the ACE. compare_sids() may then read past the ACE. smb_set_ace() also clamps the copied destination SID, but used the unchecked source SID count to compute the inherited ACE size. That could advance the temporary inherited ACE buffer pointer and nt_size accounting past the allocated buffer.

Fix this by validating the parent ACE SID count and SID length before using the SID during inheritance. Compute the inherited ACE size from the copied SID so the size matches the bounded destination SID. Reject the inherited DACL if size accumulation would overflow smb_acl.size or the security descriptor allocation size.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 00f053d97b63591cafd791dce8d6c53e1625dad1Affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before a7fb771314fb3a265d30f8ac245869a367ab065cAffected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 47c6e37a77b10e74f70d845ba4ea5d3cafa00336Affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 1aa60fea7f637c071f529ad6784aecca2f2f0c5fAffected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before c1d95c995d5bcb24b639200a899eda59cb1e6d64Affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 996454bc0da84d5a1dedb1a7861823087e01a7aeAffected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.141 through 6.6.*Not affected
  • 6.12.88 through 6.12.*Not affected
  • 6.18.30 through 6.18.*Not affected
  • 7.0.7 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.