---
id: CVE-2026-93812
title: |-
  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 r…
summary: |-
  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 r…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    9b4dec75498fd0a1c9eaea680aef59c9519eb16f
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    c521dd78e036b5e0cfd394dd2ff2218890dd9e41
  - >-
    Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <
    d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7
  - Linux < 6.12.111
  - Linux < 6.18.53
  - Linux (all versions)
published: '2026-09-24'
updated: '2026-09-25'
sourceUpdated: '2026-09-25T13:17:22.053'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-93812'
references:
  - url: 'https://git.kernel.org/stable/c/9b4dec75498fd0a1c9eaea680aef59c9519eb16f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c521dd78e036b5e0cfd394dd2ff2218890dd9e41'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-24T16:47:15.894Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
