A plain-language summary of this CVE is being written; the description below is the NVD's own text.
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
The NVD has not attached product data to this record yet; the description names what is affected.
References
- git.kernel.org /stable/c/6e6329322ad733c5b23555c609353841560b26bc
- git.kernel.org /stable/c/86c2625fb9863139b359805fc6be1e31edbd3d65
- git.kernel.org /stable/c/c3836f55e0dab96314774215e12d87f63fa919f2
- git.kernel.org /stable/c/d708a36634bb7b6f94d0e76d587d2ec50b2b93b5
- git.kernel.org /stable/c/edc17db83085624a2b1bacf6a4521d7f15571737
- git.kernel.org /stable/c/f46a70a082bdbfecbe074af8a719c26c4deb58c6
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning