GHSA-7f3p-w572-qm2qunknown
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix sd_ndr.data...
🔗 CVE IDs covered (1)
📋 Description
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr
ndr_encode_v4_ntacl() allocates sd_ndr.data via kzalloc() at entry. If any subsequent ndr_write_*() call returns error during encoding, the allocated sd_ndr.data won't be freed and causes memory leak.
Move kfree(sd_ndr.data) into out label to ensure the buffer gets released on all success and error return paths.
🔗 References (8)
- https://nvd.nist.gov/vuln/detail/CVE-2026-93812
- https://git.kernel.org/stable/c/9b4dec75498fd0a1c9eaea680aef59c9519eb16f
- https://git.kernel.org/stable/c/c521dd78e036b5e0cfd394dd2ff2218890dd9e41
- https://git.kernel.org/stable/c/d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7
- https://git.kernel.org/stable/c/306d6f370da7e0e5532dc51c972f4ce101e42431
- https://git.kernel.org/stable/c/c866c3314a6853eb06c7a8bef67f43c8a8bdfb6e
- https://git.kernel.org/stable/c/dc55270e410ccb4d24e637c13b5c4c25bcd106d7
- https://github.com/advisories/GHSA-7f3p-w572-qm2q