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 1E1C72877FE for ; Fri, 23 Jan 2026 14:15:52 +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=1769177753; cv=none; b=MZw3YVhjtvJoQPyR2AD8WpYDoJ6FPlKdvdl+I392O6QJCKUV7e8tNNA4vLOaWZWdy8vOGWN9DIXa8Xi+9XAIb6bJN7rpoGq1tmrqqXI9be8vsZGzFaQhEDcEByxemXe3TIeJBobcKBj/m8dL7yC+ShLb5WpvYsMHghAseH6PKPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769177753; c=relaxed/simple; bh=QFsQ2MFJrAkFHnwD0lk6oJw/pxMI6yXcK6Bqv2euSfY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gx+JbC+NdPrqMTMBPU1a21qVKPoWvWOoBsN0seTA+wK5mxawaq7DpAgZKU43TwiLsENOU7nGfnWFhZOp8mXtjnCpClaEv0R7FEgr1/3TOLxRoD2LTWt1EsdvudNRTQOyqoyNIaEC3UwOR+CbwFEAyHUYc1zUZ48f2BHjKaOZY90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BfzR4jaq; 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="BfzR4jaq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44F65C4CEF1; Fri, 23 Jan 2026 14:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769177752; bh=QFsQ2MFJrAkFHnwD0lk6oJw/pxMI6yXcK6Bqv2euSfY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=BfzR4jaqli1snyoRpL4Y3tjXnfy7QgGDh3zQ+duVqtwcXrLP4WCoHBkCiedvv4fX3 WSF06Q8w6DW5EQNFOM2D4kVYNxLb/b1P3kD9w5/Hje1ezhmi47jDnYuAWpL1xMtQaW cdx4KdGTvq/qzWqLHQ7Sd0EFktn/Hihi8SnPomM8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71151: cifs: Fix memory and information leak in smb3_reconfigure() Date: Fri, 23 Jan 2026 15:15:31 +0100 Message-ID: <2026012328-CVE-2025-71151-1a45@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=2669; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=js3PADmSNtJujkdaMnB2uus6O5kNpUbyInGcjXWS+mw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnFTY08qpZujCuSbyu8WRy5Zc4CoQ9N1t+vPclfcuNBy qefvt/UOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAipfwMc4WeekdxFkSflv+T cshIs+O37t+DnQwLpvQ47Jn5SvVNXO/djpUzUs/xagnIAgA= 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: cifs: Fix memory and information leak in smb3_reconfigure() In smb3_reconfigure(), if smb3_sync_session_ctx_passwords() fails, the function returns immediately without freeing and erasing the newly allocated new_password and new_password2. This causes both a memory leak and a potential information leak. Fix this by calling kfree_sensitive() on both password buffers before returning in this error case. The Linux kernel CVE team has assigned CVE-2025-71151 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.64 with commit 880a661e67648a3ffe85405e8de5f50650a3c0b2 and fixed in 6.6.120 with commit bc390b2737205163e48cc1655f6a0c8cd55b02fc Issue introduced in 6.12.2 with commit 0e4145774c016530bf99afb3675a1a0593c35642 and fixed in 6.12.64 with commit 5679cc90bb5415801fa29041da0319d9e15d295d Issue introduced in 6.13 with commit 0f0e357902957fba28ed31bde0d6921c6bd1485d and fixed in 6.18.3 with commit bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6 Issue introduced in 6.13 with commit 0f0e357902957fba28ed31bde0d6921c6bd1485d and fixed in 6.19-rc3 with commit cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d Issue introduced in 6.11.11 with commit 674ba43944dab8e8f87434e25d9d10c5152584bc 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-2025-71151 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/client/fs_context.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/bc390b2737205163e48cc1655f6a0c8cd55b02fc https://git.kernel.org/stable/c/5679cc90bb5415801fa29041da0319d9e15d295d https://git.kernel.org/stable/c/bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6 https://git.kernel.org/stable/c/cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d