CVE-2026-93812: ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr

Published Sep 24, 2026
·
Updated

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

ksmbd: fix sdndr.data memory leak in ksmbdvfssetsdxattr

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

Move kfree(sdndr.data) into out label to ensure the buffer gets released on all success and error return paths.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 24, 2026
CVE Published
via MITRE·04:02 PM
Data Sourced
via MITRE·04:02 PM
Description
Data Sourced
via NVD·05:17 PM
Description

Frequently Asked Questions

1

What systems are exposed to this leak?

The affected code is in ksmbd, the Linux kernel SMB server component. Exposure therefore depends on ksmbd being in use and on execution reaching the security-descriptor xattr update path.

2

What triggers the memory leak?

The leak occurs when ndr_encode_v4_ntacl() allocates sd_ndr.data and a later ndr_write_*() operation fails during encoding. On those error paths, the allocated buffer was not released.

3

How can I determine whether a kernel contains the fix?

Check whether the kernel source includes the change that moves kfree(sd_ndr.data) to the common out label in ksmbd_vfs_set_sd_xattr. The provided stable references identify commits carrying that change.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203