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 6652520E70D for ; Wed, 26 Feb 2025 02:00:10 +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=1740535211; cv=none; b=B4zfK4tMDFlv/cTKxT08/oDIbAXa0pyA9rb3Jb7lJoJ5aXCAsxUzB0BnOiRjRK5VkCN4yLX+QO07pMog+vbHELdpaSxdBuaAeXCeYxVbXZpdsVgeQRml/OcuEVonDe4GOAS1CBh1k6tZSyMDKZrgsx+KuK8gTHxsS4Ex8ch/PaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535211; c=relaxed/simple; bh=MOIbiPQx1ii+zdRKLtV+A+y+13QYcO9x8PlWubfD44E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H83Mhrfg9Q5Hbb+z1og0k5+V6CqZjyrdDWUUA5y9FbGbbH18BYN/Q/3Ywy2Zi+Fi89uPAOJE4go0RAVArn5OQ5l/LTvkIr3dU9Z01DEMm8BI0YRUDUUwLCux9s7m+dvQ2tEU9CJerGIXlGKNQbrBtTzDNAIfxqckoS53W7sAU0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tQTMq+wO; 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="tQTMq+wO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7173C4CEE6; Wed, 26 Feb 2025 02:00:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535210; bh=MOIbiPQx1ii+zdRKLtV+A+y+13QYcO9x8PlWubfD44E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tQTMq+wOEHKU61vdKZLfs0Vf/BUtyIaq600AAK7Z6KiddT0QizCQJ7h93xN3hlaWi XPw8oxS9OpN4apEII0CER+WnFJsP1/ckG38P1VKNWNzBGgPkLM/J7Ck6IR7X60hULD /OuG8RjuKS3ndghbXfXYi31ar+EwIy+lDENEq+KU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49262: crypto: octeontx2 - remove CONFIG_DM_CRYPT check Date: Wed, 26 Feb 2025 02:57:47 +0100 Message-ID: <2025022628-CVE-2022-49262-c11a@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=2818; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MOIbiPQx1ii+zdRKLtV+A+y+13QYcO9x8PlWubfD44E=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SkIOh7CHCrJWrFITq9sYaVR7JDxvWY9wz8oANl3TO RZvp7R3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETuyzHMs5QPWB7M33y+83fj 83k32dKjFb+9YZgryHmWkdFJzKKwzHz1hvvx/+q6sn8AAA== 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: octeontx2 - remove CONFIG_DM_CRYPT check No issues were found while using the driver with dm-crypt enabled. So CONFIG_DM_CRYPT check in the driver can be removed. This also fixes the NULL pointer dereference in driver release if CONFIG_DM_CRYPT is enabled. ... Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 ... Call trace: crypto_unregister_alg+0x68/0xfc crypto_unregister_skciphers+0x44/0x60 otx2_cpt_crypto_exit+0x100/0x1a0 otx2_cptvf_remove+0xf8/0x200 pci_device_remove+0x3c/0xd4 __device_release_driver+0x188/0x234 device_release_driver+0x2c/0x4c ... The Linux kernel CVE team has assigned CVE-2022-49262 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 6f03f0e8b6c8a82d8e740ff3a87ed407ad423243 and fixed in 5.15.33 with commit e6374086f249295121384bfaa7cdcc8d461146f0 Issue introduced in 5.12 with commit 6f03f0e8b6c8a82d8e740ff3a87ed407ad423243 and fixed in 5.16.19 with commit a462214866eebbca87e13ff6d73092b1c4895624 Issue introduced in 5.12 with commit 6f03f0e8b6c8a82d8e740ff3a87ed407ad423243 and fixed in 5.17.2 with commit a1bf728f3388ac3a2c2dffa57e25622e90b9f6f2 Issue introduced in 5.12 with commit 6f03f0e8b6c8a82d8e740ff3a87ed407ad423243 and fixed in 5.18 with commit 2d841af23ae8f398c85dd1ff2dc24b5ec8ba4569 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-2022-49262 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/marvell/octeontx2/otx2_cptvf_algs.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/e6374086f249295121384bfaa7cdcc8d461146f0 https://git.kernel.org/stable/c/a462214866eebbca87e13ff6d73092b1c4895624 https://git.kernel.org/stable/c/a1bf728f3388ac3a2c2dffa57e25622e90b9f6f2 https://git.kernel.org/stable/c/2d841af23ae8f398c85dd1ff2dc24b5ec8ba4569