CVE-2026-93811: ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling

Published Sep 24, 2026
·
Updated

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

ksmbd: Fix acl.sdbuf memory leak and invalid sdsize error handling

1. When ndrdecodev4ntacl() fails, the code jumped to freendata which only freed n.data, skipping kfree(acl.sdbuf) and leaking the buffer. Zero-initialize struct xattrntacl acl, reorder error labels to outfree to release acl.sdbuf on all error paths.

2. if (acl.sdsize < sizeof(struct smbntsd)) is true, original code returned success without freeing sdbuf and left stale pntsd. Set rc = -EINVAL before jumping to outfree to return error code and free buffer.

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 are the effects of an NT ACL decode failure in the vulnerable code path?

A failure in ndr_decode_v4_ntacl() can leave acl.sd_buf allocated because the prior error path frees n.data but skips acl.sd_buf. The fix routes this path through cleanup that releases acl.sd_buf.

2

How does the corrected code handle a security descriptor that is smaller than struct smb_ntsd?

It returns -EINVAL and frees the associated buffer. Previously, this condition could return success, leave the buffer allocated, and retain a stale value in *pntsd.

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