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 9359D5FDA5 for ; Fri, 17 May 2024 14:27:18 +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=1715956038; cv=none; b=kq4XXgJ7hfbnd7v2q2F5qzqlZ9NLHJ2Uz2sloL2UYJtdcHCcSf3ctBINleho41umnYSnysfZ3alkIcOpHhteFhunOfGF7VEXerNJeH2Cw5HRGwnSC7fka0FMaBIrL2EA1Mze5Owi/nsGqzeODs/cuN8ZHw7NSCtqC6LX64ia/ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715956038; c=relaxed/simple; bh=4ByFr4q1Sa+AU+wEsiAJcVSmm7n71hI1JQnDyGwgWu4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T7oK3jYFcCmKFi0vF2AQ5BZ+QBXPe2dqVIYIIxz8SkyFQER0Efdl9ZI1nfJn38hWgz9sB23+sguuOmAzwQVj5SxQuKZtL3QwCv+7RbVN5Y40bM116Z70c1iWHV4AKcIHfelqYPDVRWIsERASS9W8ynLz9oRxl1/TUIK9hmbBTjw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1fAkiell; 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="1fAkiell" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17878C32789; Fri, 17 May 2024 14:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715956038; bh=4ByFr4q1Sa+AU+wEsiAJcVSmm7n71hI1JQnDyGwgWu4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1fAkielluDAnj6jFWIaT5guIwhIjRfJFT8xp2LlO6sPOdnoEBA4L8gJHW9xF2gMHP gVhaL48S5ZUJ08oNC7/9DSh77zd/7bv4PVznf64WT/t6G+jjCa2Q8KNtF3TthdUT8n 94I0jgqARFY/XLMli+TadXeAMswrC4DiwOd75Jlg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52687: crypto: safexcel - Add error handling for dma_map_sg() calls Date: Fri, 17 May 2024 16:27:00 +0200 Message-ID: <2024051752-CVE-2023-52687-b540@gregkh> X-Mailer: git-send-email 2.45.1 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=2277; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4ByFr4q1Sa+AU+wEsiAJcVSmm7n71hI1JQnDyGwgWu4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnumbozZx1z+Lif64knX7yr5GL1jLv2mV/zQ1ndNi0VY Dv95cqtjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIlz7DgstSUvFa+wpe+Vxm bbm0xY3rM19VGcOCFc9/TmD7Ld2rEukfrer3qPvrgUpFAA== 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: crypto: safexcel - Add error handling for dma_map_sg() calls Macro dma_map_sg() may return 0 on error. This patch enables checks in case of the macro failure and ensures unmapping of previously mapped buffers with dma_unmap_sg(). Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. The Linux kernel CVE team has assigned CVE-2023-52687 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 49186a7d9e46 and fixed in 6.1.75 with commit 4c0ac81a172a Issue introduced in 6.1 with commit 49186a7d9e46 and fixed in 6.6.14 with commit 8084b788c2fb Issue introduced in 6.1 with commit 49186a7d9e46 and fixed in 6.7.2 with commit fc0b785802b8 Issue introduced in 6.1 with commit 49186a7d9e46 and fixed in 6.8 with commit 87e02063d077 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-52687 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/inside-secure/safexcel_cipher.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/4c0ac81a172a69a7733290915276672787e904ec https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2 https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4 https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8