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 6549117A2F1 for ; Thu, 27 Feb 2025 02:13:14 +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=1740622394; cv=none; b=jYlzgpwVL5rsOY1LSmKWTNyYdh4bpIbxwIuQK/Wx091HglB1KWAMSMl1Et3leEZfGLc97vDX/fAi8xvaLSC1y0TDIX5NsV3WYmYRZOJ+2wfVmsVNN+kOseMuycWn8ShMEQgx8/2Lfm8qLWWSax77gWfp5XOokts5Av1bywuTG6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622394; c=relaxed/simple; bh=OLdcYmExYVSG7fUk7gnT8S3JvUiBoSp5LCFOhE56Jag=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DqGc2Okb4jq3ESUBZAuqQsSNbaWYGZ8O6p1JAF2LuF85vKrd+nw/vnT/UJ1jdQNNk0woLWgYUKGBNYDd7uEPM3oyR56476IXR6W8qiFTKtm+DkvAMmW+QXdUCvt1QOdyqb6o1IFbSCB9UpZWrByYhfFDTtikZ2p9Mz9gkBuca+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gjrcSIyQ; 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="gjrcSIyQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7028C4CEE2; Thu, 27 Feb 2025 02:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622393; bh=OLdcYmExYVSG7fUk7gnT8S3JvUiBoSp5LCFOhE56Jag=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gjrcSIyQiIehJRnnCpD0tbyScpQctXNN8/CZZ7UslfCZpkeI3MlVE5LN9WT0lFS72 SeXenWzb+4FyrJ44cjnR+vvbht6ehhEyDH4AixO/qOramzRDpJMhpJ577CahQLO8je pLqr6miTiFxYm0XfCKAToX0ylsYj+S37y4qNF58A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58008: KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y Date: Wed, 26 Feb 2025 18:11:02 -0800 Message-ID: <2025022656-CVE-2024-58008-548d@gregkh> X-Mailer: git-send-email 2.48.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=2452; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OLdcYmExYVSG7fUk7gnT8S3JvUiBoSp5LCFOhE56Jag=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T27wuzxDWOz+vYapORddklfurqhc2X1g91G77f5y3 vzqC332d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVu1nWLA/9aj3Ue15637m lB7W/PIvxMBzgQzDXDnNg0l1zBlFyR1nqvjPtzjKWLw9CgA= 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: KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y With vmalloc stack addresses enabled (CONFIG_VMAP_STACK=y) DCP trusted keys can crash during en- and decryption of the blob encryption key via the DCP crypto driver. This is caused by improperly using sg_init_one() with vmalloc'd stack buffers (plain_key_blob). Fix this by always using kmalloc() for buffers we give to the DCP crypto driver. The Linux kernel CVE team has assigned CVE-2024-58008 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb and fixed in 6.12.14 with commit 3192f1c54dddb9b5820bf5e8677809949d8e9c66 Issue introduced in 6.11 with commit 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb and fixed in 6.13.3 with commit 3355594de46fb1cba663f12b9644b664b8a609f4 Issue introduced in 6.11 with commit 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb and fixed in 6.14-rc1 with commit e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4 Issue introduced in 6.10.7 with commit 9e3b266afcfe4294e84496f50f006f029d3100db 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-2024-58008 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: security/keys/trusted-keys/trusted_dcp.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/3192f1c54dddb9b5820bf5e8677809949d8e9c66 https://git.kernel.org/stable/c/3355594de46fb1cba663f12b9644b664b8a609f4 https://git.kernel.org/stable/c/e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4