{"id":"CVE-2026-93812","summary":"ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr\n\nndr_encode_v4_ntacl() allocates sd_ndr.data via kzalloc() at entry.\nIf any subsequent ndr_write_*() call returns error during encoding,\nthe allocated sd_ndr.data won't be freed and causes memory leak.\n\nMove kfree(sd_ndr.data) into out label to ensure the buffer gets\nreleased on all success and error return paths.","modified":"2026-09-26T03:48:29.251293383Z","published":"2026-09-24T16:02:49.060Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93812.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/9b4dec75498fd0a1c9eaea680aef59c9519eb16f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c521dd78e036b5e0cfd394dd2ff2218890dd9e41"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93812.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93812"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"303fff2b8c77a85c62dbde3b27c24b084144c04c"},{"fixed":"9b4dec75498fd0a1c9eaea680aef59c9519eb16f"},{"fixed":"c521dd78e036b5e0cfd394dd2ff2218890dd9e41"},{"fixed":"d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93812.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.12.111"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.53"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93812.json"}}],"schema_version":"1.9.0"}