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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-09-24T16:02:47.745Z
- Modified: 2026-10-03T11:17:50.870Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from cb69d4d6f709f87c94afa28ae64c501576692171 before f46a70a082bdbfecbe074af8a719c26c4deb58c6; from 8f0541186e9ad1b62accc9519cc2b7a7240272a7 before 86c2625fb9863139b359805fc6be1e31edbd3d65; from 8f0541186e9ad1b62accc9519cc2b7a7240272a7 before edc17db83085624a2b1bacf6a4521d7f15571737; from 8f0541186e9ad1b62accc9519cc2b7a7240272a7 before c3836f55e0dab96314774215e12d87f63fa919f2; from 8f0541186e9ad1b62accc9519cc2b7a7240272a7 before 6e6329322ad733c5b23555c609353841560b26bc; from 8f0541186e9ad1b62accc9519cc2b7a7240272a7 before d708a36634bb7b6f94d0e76d587d2ec50b2b93b5; 6e8f4abf584253cbaa596ea4ad13110cf61cd4c9; 8e33102309bd6839b2e2e158f93a7b378cb4655d; from 5.15.62 before 5.15.222; from 5.18.18 before 5.19; from 5.19.2 before 5.20; 6.0 (not affected: before 6.0; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/f46a70a082bdbfecbe074af8a719c26c4deb58c6>
- <https://git.kernel.org/stable/c/86c2625fb9863139b359805fc6be1e31edbd3d65>
- <https://git.kernel.org/stable/c/edc17db83085624a2b1bacf6a4521d7f15571737>
- <https://git.kernel.org/stable/c/c3836f55e0dab96314774215e12d87f63fa919f2>
- <https://git.kernel.org/stable/c/6e6329322ad733c5b23555c609353841560b26bc>
- <https://git.kernel.org/stable/c/d708a36634bb7b6f94d0e76d587d2ec50b2b93b5>

## Sources

- CVE List: [CVE-2026-93811](https://www.cve.org/CVERecord?id=CVE-2026-93811), CVE Terms of Use, modified 2026-10-03
- NVD: [CVE-2026-93811](https://nvd.nist.gov/vuln/detail/CVE-2026-93811), Public domain, modified 2026-10-03

---

Page: https://cve.day/CVE-2026-93811 · Whole record: https://cve.day/CVE-2026-93811.json · Rebuilt by cve.day 2026-11-25T22:59:40.834Z
