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 8FE75340293 for ; Wed, 25 Mar 2026 10:30:21 +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=1774434621; cv=none; b=t1h2FGUJtuhZBN37lJbsCOSfB4ttVYhZChtBLdeEuwsBY/N4sfnLW6TyhIZ7OSC9D9eULuNvR/55TIxX3J2ZQySg3Be0s4gWDvYwUIp09bLtbTWHqz5gxAUppH4OTd9qRUaJ8YwmWQrh/8z+IkFhUsIUnGGmziwsOcjXvL4AUds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434621; c=relaxed/simple; bh=uDMOm6k8E2RGzevk0Yy/Eho0bB6mGx3SO2VZSvci1O0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M1wPQDDtNtdChEHJ6aS3Iqr3tRdrf54B0Gn4o3zGLn2N7gO8m++vtKawpf3b/vftbdWqjGzffHD5Nsq/PqYOsCpHiGtf5ET6LJLV88a5Y498aw3bmeXx8qEOKsPMZzoys8Rts17+eAdNJa133GrdgGL36aZFOIn/a8Wp8MH17Ew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eSf01WZE; 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="eSf01WZE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A559C4CEF7; Wed, 25 Mar 2026 10:30:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434621; bh=uDMOm6k8E2RGzevk0Yy/Eho0bB6mGx3SO2VZSvci1O0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=eSf01WZEGo82jglRNICmM2CRGXit2hhdaSFtaq5BLU5gecMqtPEsGv7WM6l5ymWAY nyr2qdtG13d5mjhSwbkCB8P2XN8qZ6xenJ5+m2F34pDMaBV3nIXJqgqilMmHd2VuLc yaihbfxO3eDWdBb+Rj/7CHkTJvfrVRyv7NpZKsb8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23344: crypto: ccp - Fix use-after-free on error path Date: Wed, 25 Mar 2026 11:27:28 +0100 Message-ID: <2026032535-CVE-2026-23344-0279@gregkh> X-Mailer: git-send-email 2.53.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=2130; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=llvaYfBrUMbvBp+6hvg91lMm/wAmbP3MsXOEQFHG2EI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd0Tf7dFn22z9xyDsjE3bouRkU60na79tqheZl2Nul Mcos39xRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEkJVhnqWeQ/Lb/Cdc1glX Uuq/G2fseT23g2F+Zqz9lvnLYtm99sYzRi4/66Zm3/QNAA== 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: crypto: ccp - Fix use-after-free on error path In the error path of sev_tsm_init_locked(), the code dereferences 't' after it has been freed with kfree(). The pr_err() statement attempts to access t->tio_en and t->tio_init_done after the memory has been released. Move the pr_err() call before kfree(t) to access the fields while the memory is still valid. This issue reported by Smatch static analyser The Linux kernel CVE team has assigned CVE-2026-23344 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 4be423572da1f4c11f45168e3fafda870ddac9f8 and fixed in 6.19.7 with commit 79a26fe3175b9ed7c0c9541b197cb9786237c0f7 Issue introduced in 6.19 with commit 4be423572da1f4c11f45168e3fafda870ddac9f8 and fixed in 7.0-rc3 with commit 889b0e2721e793eb46cf7d17b965aa3252af3ec8 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-23344 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: drivers/crypto/ccp/sev-dev-tsm.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/79a26fe3175b9ed7c0c9541b197cb9786237c0f7 https://git.kernel.org/stable/c/889b0e2721e793eb46cf7d17b965aa3252af3ec8