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 5EF0747CA79 for ; Thu, 24 Sep 2026 16:08:13 +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=1790266094; cv=none; b=eGaWssUnSn+058csukmOSvpxvOinl2dAzpkdeBq6Yuo21lLdbjJzlhBTEhpPT6hfZUyax5shzGIZ3tb4v88npgrDQd5IHk+WPmfD8iqQHvkoEbJ1WM0ZVb7tPCyLd07BI2ISeGI2XT3cUDA4+YpqyAqpu22Qjflp1HcveAySLRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266094; c=relaxed/simple; bh=4ipaX3dzlsHvVpLx257d/F45vLJaq767bKKGt/xBXE8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hBXr1jCpMNmFkulHujRy9zU6Rxdbsx8IIMa0DZ2siYfrbpBO/IigAJERpoV8ov1v1FS6CR09aAZ1+s7gXqpSoCVV8bYOtEW1UI3kwvEhBrDHeJ1zHARbFNa2ZzxvrX1L1lfPv/Dfbh/X7IpjA3BkF7uUSQm+NFGarJHuxCYri5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mqXvYB2X; 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="mqXvYB2X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CB981F000FF; Thu, 24 Sep 2026 16:08:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266093; bh=9qVE4LiJgiYz9VxvfGpJxffwd//PPjqv6j9t/ta9BcQ=; h=From:To:Cc:Subject:Date:Reply-To; b=mqXvYB2Xs8+9P04eNiEAAWwUghoIg95GR5Bzyh7EgUEa5MEJuPL5PdR5K8MCcHr2D pwSvUATeB6tvmWoLUBNfEmgkZ0jiQQ3hgDIsCUdAkTixxJrLVppszofWnMMWhzwfpz VcoWkwaKuZKAe3qZqVcX71Uk2hxHMsmlscK5O9bc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93811: ksmbd: Fix acl.sd_buf memory leak and invalid sd_size error handling Date: Thu, 24 Sep 2026 18:02:47 +0200 Message-ID: <2026092421-CVE-2026-93811-6167@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=2254; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F9cB+CUoQ9MKpGva7ZZam16RG0xBnZAJs3VuM6TyZLY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPXtZ4jVW6P89FzEzKdk8ennB049Pz1X9bHmjeK9/g ajo5gOsHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARf1+GBec0982z5PN583n2 /n91zNa+x9xvzWJY0BP8Sox9yj4O/TfvQra/+sek3R0bBwA= 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 acl.sd_buf memory leak and invalid sd_size error handling 1. When ndr_decode_v4_ntacl() fails, the code jumped to free_n_data which only freed n.data, skipping kfree(acl.sd_buf) and leaking the buffer. Zero-initialize struct xattr_ntacl acl, reorder error labels to out_free to release acl.sd_buf on all error paths. 2. if (acl.sd_size < sizeof(struct smb_ntsd)) is true, original code returned success without freeing sd_buf and left stale *pntsd. Set rc = -EINVAL before jumping to out_free to return error code and free buffer. The Linux kernel CVE team has assigned CVE-2026-93811 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit c3836f55e0dab96314774215e12d87f63fa919f2 Fixed in 6.18.53 with commit 6e6329322ad733c5b23555c609353841560b26bc Fixed in 7.2 with commit d708a36634bb7b6f94d0e76d587d2ec50b2b93b5 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-93811 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/c3836f55e0dab96314774215e12d87f63fa919f2 https://git.kernel.org/stable/c/6e6329322ad733c5b23555c609353841560b26bc https://git.kernel.org/stable/c/d708a36634bb7b6f94d0e76d587d2ec50b2b93b5