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

smb: client: fail DACL rewrite when the new DACL exceeds 64K

replace_sids_and_copy_aces() and set_chmod_dacl() accumulate the size of
the DACL they build in a u16. That accumulator can wrap.

validate_dacl() caps num_aces at (dacl_size - sizeof(struct smb_acl)) /
20, i.e. 3276 for a maximally sized DACL, while each rewritten ACE can
grow to sizeof(struct smb_ace) (76 bytes) once its SID is replaced with
one carrying SID_MAX_SUB_AUTHORITIES sub-authorities. The worst case is
therefore sizeof(struct smb_acl) + 3276 * 76 = 248984 bytes, far beyond
what a u16 can hold. A wraparound is reached with 863 ACEs.

After the wraparound, ndacl_ptr->size becomes meaningless and the offset
will point anywhere in the ACE array. As a result, we will see
corruption of the DACL, which then gets sent to the server. This is not
an out-of-bounds write as the allocation now covers the worst-case
expansion, so writes will always go into the buffer.

Adjust the code to use a u32 internally and return -EOVERFLOW in the
overflow case. The operation must be refused, because a DACL can only
hold 2^16-1 bytes on the wire and larger DACLs cannot be represented.

set_chmod_dacl() carries the same pattern and is fixed the same way. It
only wraps once the source DACL comes within roughly 380 bytes of the
64K ceiling, but the failure mode is identical.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via corrupted DACL
Action: Patch kernel
AI Analysis

Impact

The flaw resides in the Linux kernel SMB client’s handling of DACL rewrites. The code that aggregates the new DACL size uses a 16‑bit accumulator that can wrap when the DACL exceeds 64 KB. This wrap changes the size field to an invalid value, causing an internal offset to point to an arbitrary position within the ACE array and corrupting the DACL data that is ultimately sent to the SMB server. The corruption does not trigger an out‑of‑bounds write because the buffer allocates for the worst‑case expansion; instead it silently corrupts the ACL payload. The primary weakness is an integer overflow (CWE‑190), leading to memory corruption and potential denial of service for the SMB server.

Affected Systems

All Linux systems that ship a kernel version containing the vulnerable SMB client implementation are affected. The vulnerability applies to the Linux kernel’s SMB client component. Until the patch referenced in commit 2ef532a01f44687f5b95001e88247cf05bff9892 or later stable releases is applied, any distribution using the kernel before that commit is exposed.

Risk and Exploitability

The CVSS score of 5.5 indicates a medium severity, while the EPSS score of < 1 % implies a very low current exploitation probability. The vulnerability is not listed in the CISA KEV catalog, so no widespread exploitation is known. The likely attack vector is a remote client that can control the DACL being sent to the SMB server; a malicious or compromised client can craft an oversized ACL to trigger the wrap. Although the risk of exploitation is low, environments that heavily rely on SMB file sharing should consider the risk moderate and act accordingly.

Generated by OpenCVE AI on October 1, 2026 at 12:02 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that incorporates the SMB client patch from commit 2ef532a01f44687f5b95001e88247cf05bff9892 or the most recent stable kernel release.
  • If upgrading is not immediately feasible, restrict SMB client traffic to trusted hosts or block SMB traffic from untrusted networks using firewall rules.
  • Configure SMB clients to enforce a 64 KB ceiling on ACL sizes or reject any ACL that exceeds this limit before transmission.

Generated by OpenCVE AI on October 1, 2026 at 12:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Wed, 21 Oct 2026 13:15:00 +0000


Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 10:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
CWE-680

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
CWE-680

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: fail DACL rewrite when the new DACL exceeds 64K replace_sids_and_copy_aces() and set_chmod_dacl() accumulate the size of the DACL they build in a u16. That accumulator can wrap. validate_dacl() caps num_aces at (dacl_size - sizeof(struct smb_acl)) / 20, i.e. 3276 for a maximally sized DACL, while each rewritten ACE can grow to sizeof(struct smb_ace) (76 bytes) once its SID is replaced with one carrying SID_MAX_SUB_AUTHORITIES sub-authorities. The worst case is therefore sizeof(struct smb_acl) + 3276 * 76 = 248984 bytes, far beyond what a u16 can hold. A wraparound is reached with 863 ACEs. After the wraparound, ndacl_ptr->size becomes meaningless and the offset will point anywhere in the ACE array. As a result, we will see corruption of the DACL, which then gets sent to the server. This is not an out-of-bounds write as the allocation now covers the worst-case expansion, so writes will always go into the buffer. Adjust the code to use a u32 internally and return -EOVERFLOW in the overflow case. The operation must be refused, because a DACL can only hold 2^16-1 bytes on the wire and larger DACLs cannot be represented. set_chmod_dacl() carries the same pattern and is fixed the same way. It only wraps once the source DACL comes within roughly 380 bytes of the 64K ceiling, but the failure mode is identical.
Title smb: client: fail DACL rewrite when the new DACL exceeds 64K
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-21T12:53:17.080Z

Reserved: 2026-09-24T16:01:01.155Z

Link: CVE-2026-97559

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:06.430

Modified: 2026-10-21T13:21:13.647

Link: CVE-2026-97559

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97559 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T12:15:05Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound