Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EE744AA3E0 for ; Thu, 24 Sep 2026 16:09:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266184; cv=none; b=CVWDWN6UYddKQiTM4iTNryEaDRubVz35xxQoHJAZ2dIdjoCNw8GoDKwWYKsB/KIvtEM1tGFeV1GO201O8R/MEsh6PNUa4SSGE/uANU0XpEUlcIva47Hcivpv8o7NqVrrGjgb4jnJ9qJ469jIcbabTXNaM4V9jJF5AJEzwk/W4RQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266184; c=relaxed/simple; bh=QLytW3pKdr+k644IZivZfYptAlIh1fxCud2DlA7yQXs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r1eypZrTIQ4t5+nh2rtF4uV2c9/jsHfQnsBODR8tAFCt9In22sRSH4C7KJquzURBt9/A8ZBb1JlGB/WC1BYKXjAgu0NA/w6JtuN87D/Hy5tFOuDkXRX/wR2Ce7E9VrkJMLMSE2kqrlZzat1c8vE+fHD0EpaQNDTx/MFUhfQTcIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nQu4e2tg; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nQu4e2tg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3FA91F000FF; Thu, 24 Sep 2026 16:09:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266182; bh=w7hvl1dASdEjIBDXxCjvk1R89OeaoG3RLdcixMMjvD4=; h=From:To:Cc:Subject:Date:Reply-To; b=nQu4e2tgZ1NS7MgTrgnjmibTTH3oLVxvuXjHeXMsKBPuxdsYppy7wSiN+l+SuLPpU 3qP3Qy/wrEfIdy+mDfwfP1ATIwRmbcTr7MkYBYnCCN9vvYYY2a3eit2sVZYZZfSj65 8/efMP71/Paq0duSGC/C+3udnnm5eQgan2K2uIoI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93812: ksmbd: fix sd_ndr.data memory leak in ksmbd_vfs_set_sd_xattr Date: Thu, 24 Sep 2026 18:02:48 +0200 Message-ID: <2026092421-CVE-2026-93812-6565@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2066; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1qAFhA7KtCmmKhzxyGgji2m9m++W5VYYphcH27uTqto=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPXufBHTJf34/I61FL49zX5j/tZB0Kb9il9tmmy0lD 303/9ffEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORUmWYn1D5VmSTi4XXBWvz 9HeTz292vM7ox7Bg6v0XX4yfnuOeV/onKiHq1eOl9TkPAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-93812 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit 9b4dec75498fd0a1c9eaea680aef59c9519eb16f Fixed in 6.18.53 with commit c521dd78e036b5e0cfd394dd2ff2218890dd9e41 Fixed in 7.2 with commit d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-93812 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/smb/server/vfs.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/9b4dec75498fd0a1c9eaea680aef59c9519eb16f https://git.kernel.org/stable/c/c521dd78e036b5e0cfd394dd2ff2218890dd9e41 https://git.kernel.org/stable/c/d4d56b00c7df88cd5751e7415bdfabc9fdbc82a7