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.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to <9b4dec75498fd0a1c9eaea680aef59c9519eb16f; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to <c521dd78e036b5e0cfd394dd2ff2218890dd9e41; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to <d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7; 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.