Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099261; b=S8SP7P7SP3ZuDxQWZKFuA4M8CViiLpOfX7PxXX9Z7weJH035jmHCAN+MM0X9CxLFYMOP J62Qoiln28RNEQKnR6mr0fPQp9csWpRYBubC/vhiomJ3VskkQnm+/g6hBs4tZ1ItQVR6z nOUChtzc/OJw28/z56ysAYV+SPcwvd+L2BZkrr5XTOd+/p6VZxIrhilborwWl7+vnIW03 VBjtIp/J+ay/uckRX9rr5dha5cKIbdMNQwxhkEg36y7oaIlrxl6VxgN6jH1BDtCF4u7Hx hzHTl1JtrCeYGyEe8C8glfAFnZdNqfYhHBiBf2GFO4P3CsDV8qEkG2HrPD+zEMXAdEw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099261; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=s3ggplgoOr1g4H/VyavYGLsIfttORBbLbiD1x6gJ0Gg=; b=F/v1+2UvYUyFD6NTYKe6pZ3icXiTqBv9ccMSzF0GoO0ZzEEPdn3B8VRpsoJ5JOfhSaW8 Ns5e+7ybBG8t0H+WC9tyJl7GsmSmV6dTduGaJ/cZ3cl6jp+enX2ZHRSLDR/kkixk5iK0F BGsLVgd2hrgsEIyGmlOCaDB3KFuHEnJdEBQscktT0d/VaXtOb67UK5OIzS3aH9TOkGVM8 fKb4UNdoDKUw4uViywXNdPcqCf9/BCb5YAXAAa425e7BvBDapQc17bi5cGjj2Pf/9y56h XnuAIYm8I257kpn5nsW/G3CJJ6G+7yY4lYiWyir2a+/2pYcOp9B0EPifwvkgEH5egWQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=1Iqf7G65; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D228606A324 for ; Thu, 19 Nov 2026 14:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=1Iqf7G65 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA75C1F000C4; Thu, 19 Nov 2026 14:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099261; bh=s3ggplgoOr1g4H/VyavYGLsIfttORBbLbiD1x6gJ0Gg=; h=From:To:Cc:Subject:Date:Reply-To; b=1Iqf7G655cxcOwtzEMA7F7eVKFzHBsugjP39U3GpTN1rLYkpv19xYPBX45apzNO3m W6+no0Z2mU9WAcInLtzTM0w51HwQ2HVp2gyJksc1wGNhNfNBri11awnAoISDSaPavR HgpWFt5dwQDQY6y6B0MbJykp+pQhgczBHrbG34CM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99389: smb: server: size directory name conversion buffer correctly Date: Thu, 19 Nov 2026 15:24:47 +0100 Message-ID: <2026111955-CVE-2026-99389-da9d@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2561; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/jjUtyzSozgNnPCAweuucpiYDMR1xBrfKl2dySbBhQs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aoDpz/8UptnaXznjX+nd4ps6vY61+vxF+YVq2gf1 LJ8u3N2RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkfy7DXKkvO/unLTeuab8t N3GOU+CNJNPeHQzz43+uXcUd6LlfdKfWyo6ilScKJiwNAwA= 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: smb: server: size directory name conversion buffer correctly A 2048-byte ASCII directory name needs 4098 bytes when converted to UTF-16, including the terminator. ksmbd_convert_dir_info_name() caps its allocation at PATH_MAX and writes past the end of that buffer. Allocate space for one UTF-16 code unit per input byte plus the terminator. Use kmalloc_array() to check the size calculation. The Linux kernel CVE team has assigned CVE-2026-99389 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.117 with commit e736ee3660eac5922729a9b3c55cecd74611663c Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.61 with commit 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.3.2 with commit c8a4c381fd68895bbb077df9b5322c8987b31cf5 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.4-rc1 with commit f1f37834eaba5904103af1f18afe3510c7e9dc71 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-99389 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/misc.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/e736ee3660eac5922729a9b3c55cecd74611663c https://git.kernel.org/stable/c/93d1fbe38f0c1f230fdd24410353b1fd9e5883d3 https://git.kernel.org/stable/c/c8a4c381fd68895bbb077df9b5322c8987b31cf5 https://git.kernel.org/stable/c/f1f37834eaba5904103af1f18afe3510c7e9dc71