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 7C4C1218AC4 for ; Thu, 27 Mar 2025 16:47:40 +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=1743094060; cv=none; b=l3hNbTU7utg/Mvbs8Tvs4Oi8Xyv0ybNWVRQJgWUUa6cGinp5PS10W83e+XB3I/6duRCLq/Rs/cloI8FRYDIrzLQwstiO0Wg9niC4h0u//ioX7ROWQaODdjzbjDosOaWebV7PHeawLaQ9cKQdT2WxBYVcS1ynzFTKLO3/Iv+DeA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743094060; c=relaxed/simple; bh=fZbT/UvNcmhfAEE5mlgB4J65Ig6Z9VNrsIC+4JOZETs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lIlqFSz96s1VSX8lSKCr/ZVHFB3+LS1AFPYDGpLDiJqTk7uQjq5S0PIGl4qdMzhqbiOdqPnWabFltVyCjj/AyalY5CQijBhexyfHj2DpfRXW4Nlktwb8i16mB+srHAiW5KksqV0KKQi+nHSi5qv/vFoHnp4x/9w1xleddD8OkeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wZAt8sS3; 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="wZAt8sS3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0E7DC4CEE5; Thu, 27 Mar 2025 16:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743094060; bh=fZbT/UvNcmhfAEE5mlgB4J65Ig6Z9VNrsIC+4JOZETs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wZAt8sS3YaXQQKv8oilmLs9PTApMUUaUAMhI9+geANV7GB04OeNID4XPA2WzYAZNW APPmQtjnvSSRsNA2DWTK7s4hf8NZ1bkMo3c8I1eNNB44x09plnr2pYwhAHEo0pBRlW W3bILaly5mr7ttiOwsY1L0Kx10dV76tq68Ym/4dE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53008: cifs: fix potential memory leaks in session setup Date: Thu, 27 Mar 2025 17:43:55 +0100 Message-ID: <2025032714-CVE-2023-53008-415c@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1752; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fZbT/UvNcmhfAEE5mlgB4J65Ig6Z9VNrsIC+4JOZETs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG5TmhLAybz6yvedesSGzuPiyiZJhb17YfCzZudQ4l EFUlP9eRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkYCLDXJEL3zZs+zXJ4Lpe bJzr3cdTA2TbZjPM4bykYdd82XHX9nl3s8oqjKf71GcvAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: cifs: fix potential memory leaks in session setup Make sure to free cifs_ses::auth_key.response before allocating it as we might end up leaking memory in reconnect or mounting. The Linux kernel CVE team has assigned CVE-2023-53008 to this issue. Affected and fixed versions =========================== Fixed in 6.1.9 with commit 893d45394dbe4b5cbf3723c19e2ccc8b93a6ac9b Fixed in 6.2 with commit 2fe58d977ee05da5bb89ef5dc4f5bf2dc15db46f 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-53008 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/cifs/cifsencrypt.c fs/cifs/sess.c fs/cifs/smb2pdu.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/893d45394dbe4b5cbf3723c19e2ccc8b93a6ac9b https://git.kernel.org/stable/c/2fe58d977ee05da5bb89ef5dc4f5bf2dc15db46f