CVE-2026-72382

ksmbd: reject undersized DACLs before parsing ACEs

Published Aug 15, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-122
CWE-188
Type Values Removed Values Added
Weaknesses CWE-122
CWE-188
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'}

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
Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:29 PM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 30, 2026, 1:19 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM