Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E8D1320299B for ; Tue, 30 Dec 2025 12:03:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096225; cv=none; b=YyuRDOn6Ti3QIJGm1DbfROUksVZ1lkFAiOvvEvmjU60o4xoaR/PoKOm+V6IapKkygF86fNiRiLo+09jJvHf0tPdANyF28MgqMVo7W/skEaDWOwiRFSw5CCgSfUzzZaO61zxUjM9zux7qW3il3KsARzrwnDIoaJjOYnzPYQq1Lg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096225; c=relaxed/simple; bh=p1eXZ2n9RkwzjPJmq2xa4Nd9qzgsjVsT1EY/qInsuKs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JQjMwHEFIvRVGff2gtDIaxsj1V6lCU3fpov/OS2NOmhn1nm7o/bVGJjQH0i/HkEkEVCVXY5xOUUZwDPAyTV1kQF1cSoDNw9se9OqNglhbTbStXkpBKCKi0tHA0e1D4Yu42m6peoyxqT4WlWsJTr5fILWYH/YiCDd0+y4v8R8VlY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ck9gKAUn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ck9gKAUn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CC1BC4CEFB; Tue, 30 Dec 2025 12:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096224; bh=p1eXZ2n9RkwzjPJmq2xa4Nd9qzgsjVsT1EY/qInsuKs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Ck9gKAUn1SZKVdMDSccwXQ+qUGfeRAEmqkKiRCh5pOqUY0BnWkuZgrd42fUvA9mWG ad76nX9Vwzi97CTmMctYfaB95x+o9HHUKJMkzIhRL55+DNj4sdJc5Y/qE1fs2SZr92 hOpcWfJZEa2CIarZcPxJFRedS/qdfo6rf+2cTeRk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54162: ksmbd: fix possible memory leak in smb2_lock() Date: Tue, 30 Dec 2025 13:03:30 +0100 Message-ID: <2025123029-CVE-2023-54162-4725@gregkh> X-Mailer: git-send-email 2.52.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=2318; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZL496fzeaj4nAm7unHAo4mpYhjdtIiEXLHN7mfc7TiQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnB+ydeKtJcaHTV1eRdxWINZkUX/g/+7R0Pc7ewfvpca cps+6m2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaS/J1hwca7aVwf/CSTfa6v rTY8m5iV/DtzH8OCHSc5tn9csXih6+bTkzPiM3cVTdt9BAA= 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 possible memory leak in smb2_lock() argv needs to be free when setup_async_work fails or when the current process is woken up. The Linux kernel CVE team has assigned CVE-2023-54162 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 5.15.145 with commit bfe8372ef2dbdce97f13b21d76e2080ddeef5a79 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.1.16 with commit 6bf555ed8938444466c3d7f3252eb874a518f293 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.2.3 with commit 11d38f8a0c19763e34d2093b5ecb640e012cb2d2 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.3 with commit d3ca9f7aeba793d74361d88a8800b2f205c9236b 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-2023-54162 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/ksmbd/smb2pdu.c fs/ksmbd/vfs_cache.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/bfe8372ef2dbdce97f13b21d76e2080ddeef5a79 https://git.kernel.org/stable/c/6bf555ed8938444466c3d7f3252eb874a518f293 https://git.kernel.org/stable/c/11d38f8a0c19763e34d2093b5ecb640e012cb2d2 https://git.kernel.org/stable/c/d3ca9f7aeba793d74361d88a8800b2f205c9236b