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.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to <c3836f55e0dab96314774215e12d87f63fa919f2; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to <6e6329322ad733c5b23555c609353841560b26bc; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to <d708a36634bb7b6f94d0e76d587d2ec50b2b93b5; 0 to <6.12.111; 0 to <6.18.53 |
| Linux | Linux | 6.12.111 to <=6.12.*; 6.18.53 to <=6.18.*; 7.2 to <=* |
References
Generated from the official CVE List on 25 Sep 2026 07:05 UTC.