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 2E90E3FFAA4 for ; Wed, 27 May 2026 12:26:36 +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=1779884797; cv=none; b=RZM45j+D6qJGEN1FWE8YTxtc/ACZ5fNf2HVZSuvzve6pNDxEtlYHSwClaW91RJFZgwiiEAbVxhvV4dc22uof5Tw1PO0rlPN7brM9ajz9VvbNTrC0ubFvhzwkYhuhUFqN/qGRHYI+QYiOQPRuzElZn+s+eoWSv3nqdW0ade0LkiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884797; c=relaxed/simple; bh=yLlM8BcZe8woIunaLCQCNyMmg/9v74MIhss/h8VVL5I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MXxrj+RRX+RmA3RS1vgKo2w2BZBbh02yyHCtjOR8XR1+ziYFqvirb6QYM+Ya9apbWWpOWOeXm67nQqfkxFiaKUDboWF68t6XgODAsQaowolQMSzvPW/fuX3lbwhrINQj4T3G1nrDaYzfmClsTxx9eaq1vyL56rRJI9cpTjC75kA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yurd7WHx; 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="Yurd7WHx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74EFA1F000E9; Wed, 27 May 2026 12:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884796; bh=Wr8Zay1Y7ohAnLyk6CMIhOxHpVc6CU/+v9AnbQfVueM=; h=From:To:Cc:Subject:Date:Reply-To; b=Yurd7WHxDd2pP+J+v/rlCAbD1aDg3MIKRZsuZSEoUEPE3f+KrwdJLLwU8uj7rKWtw /7tXBsdgpvTtF7mZiByjunZRQWhagMA9R0vp5gngWy6nFuT2Azp3dCYXLUfVoWXOkZ ptrwuZDwcr3GCvAepyY1MJ6Wgi8jAN7s4hUYGDjQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45972: smb: client: fix potential UAF and double free in smb2_open_file() Date: Wed, 27 May 2026 14:20:14 +0200 Message-ID: <2026052736-CVE-2026-45972-6b55@gregkh> X-Mailer: git-send-email 2.54.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=2829; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uBRiE9UZzGPkV5YLgDY8cwrUZUYhBvo7fZJR7jtGWwg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD2WEvPNmlSeuOv5m699DX6aEBz+1+iufffFMy4lOB ddf9i7GHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRRiaG+Xlt8vMFbINPZyUe 8S+qXdV+p9gpmWGeSor5PjWJnSYOxXX/En/k5fvPCQ8BAA== 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: client: fix potential UAF and double free in smb2_open_file() Zero out @err_iov and @err_buftype before retrying SMB2_open() to prevent an UAF bug if @data != NULL, otherwise a double free. The Linux kernel CVE team has assigned CVE-2026-45972 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.163 with commit 743f70406264348c0830f38409eb6c40a42fb2db and fixed in 6.1.165 with commit 96e53bb3ee2f354cf6b4ab07bcc56e500f8b3f74 Issue introduced in 6.6.124 with commit 3a6d6b332f92990958602c1e35ce0173e2dd62e9 and fixed in 6.6.128 with commit 7425453ea16dbc3bbb0f6cac4d60b537e5e4d151 Issue introduced in 6.12.70 with commit b64e3b5d8d759dd4333992e4ba4dadf9359952c8 and fixed in 6.12.75 with commit 4d339b219004869e96c4ce56b8891f83a38da4c0 Issue introduced in 6.18.10 with commit 9ee608a64e37cea5b4b13e436c559dd0fb2ad1b5 and fixed in 6.18.14 with commit e66dcf7bb9c4df5582c82bc3582725abcbfbea73 Issue introduced in 6.19 with commit e3a43633023e3cacaca60d4b8972d084a2b06236 and fixed in 6.19.4 with commit 639deb962986ef2f5e2a6d5a600c66f922471e81 Issue introduced in 6.19 with commit e3a43633023e3cacaca60d4b8972d084a2b06236 and fixed in 7.0 with commit ebbbc4bfad4cb355d17c671223d0814ee3ef4eda 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-45972 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/smb2file.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/96e53bb3ee2f354cf6b4ab07bcc56e500f8b3f74 https://git.kernel.org/stable/c/7425453ea16dbc3bbb0f6cac4d60b537e5e4d151 https://git.kernel.org/stable/c/4d339b219004869e96c4ce56b8891f83a38da4c0 https://git.kernel.org/stable/c/e66dcf7bb9c4df5582c82bc3582725abcbfbea73 https://git.kernel.org/stable/c/639deb962986ef2f5e2a6d5a600c66f922471e81 https://git.kernel.org/stable/c/ebbbc4bfad4cb355d17c671223d0814ee3ef4eda