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

ksmbd: reject undersized DACLs before parsing ACEs

parse_dacl() limits the attacker-controlled ACE count by comparing it
with the number of minimal ACEs that fit in the DACL size. The DACL size
field is 16 bits, but the expression subtracts sizeof(struct smb_acl).
Because sizeof() is unsigned, a DACL size smaller than the ACL header
underflows to a large size_t.

A malicious client can reach this with:

SMB2_SET_INFO (InfoType=SMB2_O_INFO_SECURITY)
-> smb2_set_info_sec()
-> set_info_sec()
-> parse_sec_desc()
-> parse_dacl()
-> init_acl_state(..., 0xffff)
-> init_acl_state(..., 0xffff)
-> kmalloc_objs(..., 0xffff)

Thus a malformed security descriptor can make num_aces pass the guard
and drive large temporary ACL state and pointer-array allocations.

Reject DACLs smaller than struct smb_acl before doing the subtraction,
so the ACE count check cannot be bypassed by the underflow.
Published: 2026-08-15
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s ksmbd component contains an integer underflow flaw in how it validates the DACL size field of a security descriptor. The DACL size is a 16‑bit value, but the subtraction of the ACL header size uses an unsigned expression. When the size field is smaller than the header, the subtraction underflows to a very large integer, enabling the caller to dictate an excessively large number of ACEs. A malicious SMB client can trigger this path through the SMB2_SET_INFO (InfoType=SMB2_O_INFO_SECURITY) operation, causing the kernel to allocate a huge temporary ACL state and pointer array. The resulting out‑of‑bounds allocation may corrupt memory, crash the kernel, or, if successfully exploited, provide a foothold for remote code execution. The patch adds a pre‑check that rejects DACLs smaller than the ACL header before performing the arithmetic, preventing the over‑allocation from occurring.

Affected Systems

The vulnerability affects all programs using the Linux kernel’s ksmbd SMB server. The affected product is the Linux kernel (Linux: Linux). No specific kernel revisions are listed, so any version up to the point when the patch was introduced may be vulnerable. All variants of the Linux distribution that ship a version of the kernel lacking the ksmbd DACL size validation are potentially impacted.

Risk and Exploitability

The CVSS score is 8.8, indicating a high severity, and the EPSS score is less than 1 %. The vulnerability is not currently listed in CISA’s Known Exploited Vulnerabilities catalog. Nevertheless, the exploit requires only that an SMB client be able to send a malformed SMB2_SET_INFO packet to the target, which can be achieved over the network from an unauthenticated or authenticated client. Because the kernel allocates large temporary buffers, an attacker is likely to cause a denial of service; if successful exploitation of the memory corruption leads to privilege escalation, arbitrary code execution becomes possible. The high CVSS score confirms the potential impact for exposed SMB services.

Generated by OpenCVE AI on August 18, 2026 at 19:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a revision that includes the ksmbd DACL size validation patch, which is available in the mainline kernel repository.
  • After applying the update, restart the system or reload the kernel to ensure the patch is active in the running kernel.
  • If the kernel update cannot be applied immediately, restrict SMB traffic using firewall rules to allow SMB connections only from trusted hosts, or block the SMB2_SET_INFO (SMB2_O_INFO_SECURITY) operation using advanced network filtering.

Generated by OpenCVE AI on August 18, 2026 at 19:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122
CWE-188

Tue, 18 Aug 2026 12:15:00 +0000

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

None

threat_severity

Moderate


Mon, 17 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122
CWE-188

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: reject undersized DACLs before parsing ACEs parse_dacl() limits the attacker-controlled ACE count by comparing it with the number of minimal ACEs that fit in the DACL size. The DACL size field is 16 bits, but the expression subtracts sizeof(struct smb_acl). Because sizeof() is unsigned, a DACL size smaller than the ACL header underflows to a large size_t. A malicious client can reach this with: SMB2_SET_INFO (InfoType=SMB2_O_INFO_SECURITY) -> smb2_set_info_sec() -> set_info_sec() -> parse_sec_desc() -> parse_dacl() -> init_acl_state(..., 0xffff) -> init_acl_state(..., 0xffff) -> kmalloc_objs(..., 0xffff) Thus a malformed security descriptor can make num_aces pass the guard and drive large temporary ACL state and pointer-array allocations. Reject DACLs smaller than struct smb_acl before doing the subtraction, so the ACE count check cannot be bypassed by the underflow.
Title ksmbd: reject undersized DACLs before parsing ACEs
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-08-17T05:43:33.111Z

Reserved: 2026-08-09T03:40:39.923Z

Link: CVE-2026-72382

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:11.707

Modified: 2026-08-17T06:18:42.640

Link: CVE-2026-72382

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72382 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T19:30:04Z

Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size