CVE-2026-93812

ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr

N/A
Published: September 24, 2026 at 04:02 PM UTC
Updated: October 3, 2026 at 11:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.2225.15 ≤ v < 6.1.1895.15 ≤ v < 6.12.1115.15 ≤ v < 6.18.535.15 ≤ v < 6.6.1585.15 ≤ v < 7.2303fff2b8c77a85c62dbde3b27c24b084144c04c5.15
Vendor states this is fixed in 306d6f370da7e0e5532dc51c972f4ce101e42431 (fixed)
Vendor states this is fixed in 9b4dec75498fd0a1c9eaea680aef59c9519eb16f (fixed)
Vendor states this is fixed in c521dd78e036b5e0cfd394dd2ff2218890dd9e41 (fixed)
Vendor states this is fixed in c866c3314a6853eb06c7a8bef67f43c8a8bdfb6e (fixed)
Vendor states this is fixed in d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7 (fixed)
Vendor states this is fixed in dc55270e410ccb4d24e637c13b5c4c25bcd106d7 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.222 (unaffected)
Vendor states this is fixed in 6.1.189 (unaffected)
Vendor states this is fixed in 6.12.111 (unaffected)
Vendor states this is fixed in 6.18.53 (unaffected)
Vendor states this is fixed in 6.6.158 (unaffected)
Vendor states this is fixed in 7.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusRECEIVED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card