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

ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling

1. When ndr_decode_v4_ntacl() fails, the code jumped to free_n_data
which only freed n.data, skipping kfree(acl.sd_buf) and leaking
the buffer. Zero-initialize struct xattr_ntacl acl, reorder error
labels to out_free to release acl.sd_buf on all error paths.

2. if (acl.sd_size < sizeof(struct smb_ntsd)) is true, original code
returned success without freeing sd_buf and left stale *pntsd.
Set rc = -EINVAL before jumping to out_free to return error code and
free buffer.
Published: 2026-09-24
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service (resource exhaustion)
Action: Immediate Patch
AI Analysis

Impact

The vulnerability occurs in the Linux kernel's ksmbd SMB server daemon. When the ACL buffer is decoded, the error handling path fails to free the allocated buffer, resulting in a memory leak. Additionally, the code incorrectly treats a short server data buffer as successful, leaving a stale pointer and still leaking memory. This flaw can cause the kernel to consume progressively more memory, potentially exhausting system resources and leading to a denial of service. The weakness is a classic memory resource mismanagement issue.

Affected Systems

All Linux kernel releases that contain the ksmbd component are affected. No specific version range is listed in the advisory, so any kernel that has not applied this patch could be vulnerable. The flaw affects the kernel's SMB server functionality, so systems running the ksmbd service or any applications that rely on SMB interoperability are in scope.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is unavailable, indicating that the likelihood of exploitation is not quantified. The vulnerability is documented in the kernel's source history and has an associated patch in the mainline. Although no denial of service exploits have been reported in the CISA KEV catalog, the bug can be exercised by triggering the offending ACL decode path in ksmbd, which would require an attacker to interact with the SMB service or otherwise cause the failure. The attack vector is inferred to be local or remote SMB traffic that leads to the decoding failure. Given the potential for resource exhaustion, system administrators should treat this as a high‑risk kernel defect until a patch is applied.

Generated by OpenCVE AI on September 25, 2026 at 06:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update your Linux kernel to a release that contains the ksmbd patch for the acl.sd_buf memory leak and invalid sd_size handling.
  • If an immediate kernel upgrade is not feasible, isolate the system from external SMB traffic or disable the ksmbd service until the patch can be installed.
  • Deploy firewall rules to block SMB ports (445 and 139) from untrusted networks until the kernel patch becomes available.

Generated by OpenCVE AI on September 25, 2026 at 06:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 06:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Thu, 24 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling 1. When ndr_decode_v4_ntacl() fails, the code jumped to free_n_data which only freed n.data, skipping kfree(acl.sd_buf) and leaking the buffer. Zero-initialize struct xattr_ntacl acl, reorder error labels to out_free to release acl.sd_buf on all error paths. 2. if (acl.sd_size < sizeof(struct smb_ntsd)) is true, original code returned success without freeing sd_buf and left stale *pntsd. Set rc = -EINVAL before jumping to out_free to return error code and free buffer.
Title ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling
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-09-25T12:43:19.408Z

Reserved: 2026-09-18T17:59:28.790Z

Link: CVE-2026-93811

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T17:17:14.550

Modified: 2026-09-25T13:17:21.963

Link: CVE-2026-93811

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T06:30:06Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime