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 1FE6FDF59 for ; Tue, 9 Dec 2025 00:04:52 +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=1765238692; cv=none; b=fWXR/scU2QK9HiPiXRKonwkdGdaUEFEk6E6e4alctFhaMMOQrwGCi5T7cnqdYbwuv56nKi22vsRgTaaPch/rGLzXaYZC9RxIUX4VXfL2aUCZ++w1cuCwXa+YZPx27MKUKbMw+HE5PbiDs9jPz3Hod65oczm394Umk35mCS3Slxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765238692; c=relaxed/simple; bh=jkjl5WXCnhwf0+T9XIsqZ+q9BeI0I/4+yfGUGjCSHNs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ToBLUMaR3RZsq4K8Z2IufwUh7PnVWPQTTfVxNKOHt6PxXOfd0fdbGyc4H5fCI/ugQ0o1mgkK2Ium9AqMqBR0xp0Sd40eise/439QxRHvB9ADyK7MNoV7aW6tOG0bvjqfaYGJNxlp2JLYcbz3LvXCJcc8eh718lWFsdvWCTLfk1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K4YYh+pL; 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="K4YYh+pL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEA42C4CEF1; Tue, 9 Dec 2025 00:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765238692; bh=jkjl5WXCnhwf0+T9XIsqZ+q9BeI0I/4+yfGUGjCSHNs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=K4YYh+pLu49KMrxjOQvnCEInmNlpthpFty9aVf35WK/mBvJ1TI/jOO0tOlTeckVx0 bg4NJitNRMlj12WcPY6ZkI5FZXWbi9RaKcDIYIx0J6CxGTd7+wNDpJPdw52OW4OC5Q BX5hTbYCNqaG9EkW2NwAK2wuJH/kABEOiIHK9FHk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53817: crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui() Date: Tue, 9 Dec 2025 09:02:38 +0900 Message-ID: <2025120945-CVE-2023-53817-49a5@gregkh> X-Mailer: git-send-email 2.52.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=2861; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4WBotog/eia5kImb9O3BSOdoMghEoZyHXGn69jcVRHQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmaS8dOjcqT7d5/FtUdNK94+w/1h6UkuVojS3NODFVh OlV9PP8jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIyjuG+TVpSrmeJZN23gn+ PunWSunXLecUHRkWHH+htqh+p1IP28aW9P55Ib+7vyg4AQA= 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: lib/mpi - avoid null pointer deref in mpi_cmp_ui() During NVMeTCP Authentication a controller can trigger a kernel oops by specifying the 8192 bit Diffie Hellman group and passing a correctly sized, but zeroed Diffie Hellamn value. mpi_cmp_ui() was detecting this if the second parameter was 0, but 1 is passed from dh_is_pubkey_valid(). This causes the null pointer u->d to be dereferenced towards the end of mpi_cmp_ui() The Linux kernel CVE team has assigned CVE-2023-53817 to this issue. Affected and fixed versions =========================== Fixed in 4.14.326 with commit fde791e8a96a64ea7b0ad2440e43586447a209c6 Fixed in 4.19.295 with commit ae63e84ffda74267bf7277c38415ba38389229a0 Fixed in 5.4.257 with commit 61f5453e9706e99713825594e0c8f9031485fb5f Fixed in 5.10.197 with commit 0fc7147c694394f8a8cbc19570c6bc918cac0906 Fixed in 5.15.133 with commit 67589d247909043e94d2dd5fb590958e0f99d58d Fixed in 6.1.55 with commit d3ad023a39f1127dcfd331c562673355dc078650 Fixed in 6.5.5 with commit 12ac013ad7ff0df066451e825801d805095b3776 Fixed in 6.6 with commit 9e47a758b70167c9301d2b44d2569f86c7796f2d 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-53817 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: lib/crypto/mpi/mpi-cmp.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/fde791e8a96a64ea7b0ad2440e43586447a209c6 https://git.kernel.org/stable/c/ae63e84ffda74267bf7277c38415ba38389229a0 https://git.kernel.org/stable/c/61f5453e9706e99713825594e0c8f9031485fb5f https://git.kernel.org/stable/c/0fc7147c694394f8a8cbc19570c6bc918cac0906 https://git.kernel.org/stable/c/67589d247909043e94d2dd5fb590958e0f99d58d https://git.kernel.org/stable/c/d3ad023a39f1127dcfd331c562673355dc078650 https://git.kernel.org/stable/c/12ac013ad7ff0df066451e825801d805095b3776 https://git.kernel.org/stable/c/9e47a758b70167c9301d2b44d2569f86c7796f2d