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

ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr

ndr_encode_v4_ntacl() allocates sd_ndr.data via kzalloc() at entry.
If any subsequent ndr_write_*() call returns error during encoding,
the allocated sd_ndr.data won't be freed and causes memory leak.

Move kfree(sd_ndr.data) into out label to ensure the buffer gets
released on all success and error return paths.
Published: 2026-09-24
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via memory exhaustion
Action: Apply patch
AI Analysis

Impact

A memory leak occurs when the ksmbd component attempts to set a security descriptor attribute. The encoding routine allocates a buffer, but if an error occurs during subsequent writes, the buffer is not freed. Over time, repeated failures could consume extensive memory, potentially leading to system instability or crash. The vulnerability is a classic memory-leak flaw that compromises integrity and availability, not confidentiality.

Affected Systems

The flaw exists in the Linux kernel, affecting all distributions that ship the default ksmbd implementation. No specific vendor or distribution information is provided, and version details are not supplied in the advisory, so any system running an unpatched kernel may be vulnerable.

Risk and Exploitability

Because the CVSS score is not disclosed and the EPSS value is unavailable, the precise severity and exploitation likelihood are unknown. However, the flaw is exploitable via SMB traffic that triggers the security descriptor attribute handling. The lack of a KEV listing suggests no known widespread exploitation, but the memory leak can still be abused by an attacker controlling SMB requests to cause a denial of service. The likely attack vector is network-based SMB traffic; this inference is drawn from the fact that ksmbd handles SMB operations.

Generated by OpenCVE AI on September 25, 2026 at 05:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest stable release that includes the ksmbd memory‑leak fix or apply the patch referenced in the kernel commit series.
  • If you do not require SMB functionality, disable the ksmbd module or uninstall related packages to eliminate the attack surface.
  • After applying the patch or disabling ksmbd, restart the system or reload the kernel module to ensure the changes take effect.

Generated by OpenCVE AI on September 25, 2026 at 05:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 06:15: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 sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr ndr_encode_v4_ntacl() allocates sd_ndr.data via kzalloc() at entry. If any subsequent ndr_write_*() call returns error during encoding, the allocated sd_ndr.data won't be freed and causes memory leak. Move kfree(sd_ndr.data) into out label to ensure the buffer gets released on all success and error return paths.
Title ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr
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:20.537Z

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

Link: CVE-2026-93812

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-93812

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T06:00:13Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime