Bug 2540410 (CVE-2026-93812) - CVE-2026-93812 kernel: ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr
Summary: CVE-2026-93812 kernel: ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd...
Keywords:
Status: NEW
Alias: CVE-2026-93812
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-24 16:43 UTC by OSIDB Bzimport
Modified: 2026-09-28 13:35 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-24 16:43:23 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.