CVE-2026-93811

ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling

State
Published
Severity
Not scored
Published
Sep 24, 2026
Updated
Oct 3, 2026
Reserved
Sep 18, 2026

Read the record on cve.org

Description

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

ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling

1. When ndr_decode_v4_ntacl() fails, the code jumped to free_n_data which only freed n.data, skipping kfree(acl.sd_buf) and leaking the buffer. Zero-initialize struct xattr_ntacl acl, reorder error labels to out_free to release acl.sd_buf on all error paths.

2. if (acl.sd_size < sizeof(struct smb_ntsd)) is true, original code returned success without freeing sd_buf and left stale *pntsd. Set rc = -EINVAL before jumping to out_free to return error code and free buffer.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • cb69d4d6f709f87c94afa28ae64c501576692171 to before f46a70a082bdbfecbe074af8a719c26c4deb58c6Affected
  • 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to before 86c2625fb9863139b359805fc6be1e31edbd3d65Affected
  • 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to before edc17db83085624a2b1bacf6a4521d7f15571737Affected
  • 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to before c3836f55e0dab96314774215e12d87f63fa919f2Affected
  • 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to before 6e6329322ad733c5b23555c609353841560b26bcAffected
  • 8f0541186e9ad1b62accc9519cc2b7a7240272a7 to before d708a36634bb7b6f94d0e76d587d2ec50b2b93b5Affected
  • 6e8f4abf584253cbaa596ea4ad13110cf61cd4c9Affected
  • 8e33102309bd6839b2e2e158f93a7b378cb4655dAffected
  • 5.15.62 to before 5.15.222Affected
  • 5.18.18 to before 5.19Affected
  • 5.19.2 to before 5.20Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 5.15.222 through 5.15.*Not affected
  • 6.1.189 through 6.1.*Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.111 through 6.12.*Not affected
  • 6.18.53 through 6.18.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.