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: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via memory exhaustion
Action: Apply patch
AI Analysis

Impact

A memory leak occurs in the Linux kernel’s ksmbd component when setting a security descriptor attribute. The nk_encode_v4_ntacl() routine allocates a buffer and if a subsequent ndr_write_*() error occurs, that buffer is not released, causing the leak. Repeated failures can deplete kernel memory, potentially bringing the system down or breaking services.

Affected Systems

The flaw exists in the Linux kernel’s default ksmbd implementation, affecting all Linux distributions that ship the unrepaired kernel. No version information is supplied, so any system running a kernel before the fix could be vulnerable.

Risk and Exploitability

The CVSS score of 7.0 classifies the vulnerability as medium severity, while the EPSS score of < 1% indicates a very low but non‑zero exploitation probability. The flaw is not listed in the CISA KEV catalog, meaning no widespread exploitation has been reported. Attackers would need to drive the ksmbd service with SMB traffic that triggers the security‑descriptor attribute handling; this is inferred from the fact that ksmbd processes SMB requests.

Generated by OpenCVE AI on October 1, 2026 at 19:59 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that incorporates the ksmbd memory‑leak fix or apply the kernel patch referenced in the commit history.
  • If SMB support is not required, disable or remove the ksmbd functionality to eliminate the vulnerability surface.
  • After updating or disabling ksmbd, reboot the system or reload the kernel module to ensure the changes take effect.

Generated by OpenCVE AI on October 1, 2026 at 19:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 17:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Tue, 29 Sep 2026 13:15:00 +0000

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

None

cvssV3_1

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

threat_severity

Moderate


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-10-03T10:57:44.701Z

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-10-03T11:17:50.993

Link: CVE-2026-93812

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-24T00:00:00Z

Links: CVE-2026-93812 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T20:00:12Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime