CVE-2026-93812

ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr

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.

Key facts

Published
24 Sep 2026
Last changed
3 Oct 2026
Assigned by
Linux
EPSS
0.173% likely to be exploited in the next 30 days, higher than 6.741% of CVEs (scores for 17 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 303fff2b8c77a85c62dbde3b27c24b084144c04c up to but excluding 306d6f370da7e0e5532dc51c972f4ce101e42431 (affected)
  • 303fff2b8c77a85c62dbde3b27c24b084144c04c up to but excluding dc55270e410ccb4d24e637c13b5c4c25bcd106d7 (affected)
  • 303fff2b8c77a85c62dbde3b27c24b084144c04c up to but excluding c866c3314a6853eb06c7a8bef67f43c8a8bdfb6e (affected)
  • 303fff2b8c77a85c62dbde3b27c24b084144c04c up to but excluding 9b4dec75498fd0a1c9eaea680aef59c9519eb16f (affected)
  • 303fff2b8c77a85c62dbde3b27c24b084144c04c up to but excluding c521dd78e036b5e0cfd394dd2ff2218890dd9e41 (affected)
  • 303fff2b8c77a85c62dbde3b27c24b084144c04c up to but excluding d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7 (affected)
LinuxLinux
  • Default status: affected
  • 5.15 (affected)
  • 0 up to but excluding 5.15 (unaffected)
  • 5.15.222 up to and including 5.15.* (unaffected)
  • 6.1.189 up to and including 6.1.* (unaffected)
  • 6.6.158 up to and including 6.6.* (unaffected)
  • 6.12.111 up to and including 6.12.* (unaffected)
  • 6.18.53 up to and including 6.18.* (unaffected)
  • 7.2 up to and including * (unaffected)

Timeline

  1. 24 Sep 2026 Published

References