CVE-2026-43490

ksmbd: validate inherited ACE SID length

Published May 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: 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.

Analysis

AI-generated

Technical impact

The bug sits in the Linux kernel’s ksmbd SMB server. When a directory’s DACL is inherited, the code checks only the fixed SID header of each Access Control Entry (ACE) and ignores whether the variable‑length SID, described by sid.num_subauth, is fully contained inside the ACE. If a malicious ACL advertises more subauthorities than are present, the compare_sids routine may read beyond the ACE’s boundaries, producing an out‑of‑bounds read that can be leveraged for kernel‑mode privilege escalation. Additionally, smb_set_ace uses the unchecked source SID count to compute the size of the inherited ACE, potentially advancing the copy buffer pointer past the allocated region and creating a buffer overrun. This combination of unchecked length verification and unchecked buffer sizing is the root of the risk. The vulnerability is a classic unchecked length and buffer overrun issue (CWE‑787, CWE‑805). An attacker with the ability to send a specially crafted SMB packet can thus read privileged kernel data or push the kernel into a state that may allow code execution or denial of service. The flaw is not an input validation defect but a memory safety problem that gives the attacker direct access to kernel memory. The potential impact therefore extends beyond information disclosure to include privilege escalation.

Affected Systems

All Linux kernel releases that ship the ksmbd module and have not applied the patch commit that adds SID‑length validation are at risk. The flaw is vendor‑neutral; it applies to any distribution whose kernel includes the ksmbd component, regardless of the exact version, as long as the SMB server is enabled. Systems that expose the built‑in SMB service over port 445/TCP are therefore the primary attack surface. Kernel builds that omit ksmbd or run a patched version are not affected.

Risk and Exploitability

The CVSS score of 8.8 reflects high severity, while the EPSS score of less than 1% indicates the current exploitation probability is very low. The vulnerability is not listed in CISA’s KEV catalog. From the description it is inferred that the attack vector is network‑based SMB traffic; an adversary must be able to send a crafted SMB packet to the target’s SMB service. If successful, the read may leak privileged data and, with further exploitation, elevate privileges or crash the kernel. Because the issue involves direct kernel memory corruption, the potential compromise is severe, even though the probability of exploitation remains low for most networks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the ksmbd SID‑validation patch, which fixes the SID length checks and eliminates the buffer overrun (CWE‑787, CWE‑805).
  • If a kernel upgrade cannot be performed immediately, disable or unload the ksmbd module to remove the vulnerable code path from the running kernel (CWE‑787 mitigation by code removal).
  • Restrict SMB traffic to trusted hosts or block SMB ports when the service is not required, thereby reducing the opportunity for an attacker to deliver malicious SMB packets (CWE‑787 mitigation by network isolation).
  • Continuously monitor kernel logs and SMB activity for anomalous read faults or repeated failures in ACL processing, and investigate any suspicious events promptly.

Generated by OpenCVE AI on August 14, 2026 at 02:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4906-1 linux security update
Debian DSA Debian DSA DSA-6274-1 linux security update
Ubuntu USN Ubuntu USN USN-8566-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8567-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8568-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-1 Linux kernel (GCP FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8596-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8608-1 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-3 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8665-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-125
CWE-190
CWE-20
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
Weaknesses CWE-125
CWE-190
CWE-20
Type Values Removed Values Added
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.
Title ksmbd: validate inherited ACE SID length
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-787

    Out-of-bounds Write

  • CWE-805

    Buffer Access with Incorrect Length Value

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:25 PM
Reserved
May 1, 2026, 2:12 PM
Status
Modified
Published
May 15, 2026, 6:16 AM
Modified
Oct 30, 2026, 1:18 PM
Severity
Public date
May 15, 2026, 12:00 AM