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 9895D33CF5 for ; Mon, 18 Mar 2024 10:15:07 +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=1710756907; cv=none; b=HF1ACtxKY3oF7O/DD7zISyu39sWVscPugWB5HhtU6Qm6gQ4YfFGJo7HjuptL+3T5JAD2r6DYk5j9aqnxYxVHr0ngwjSxdYn+OFycr0nmfdTQQEyNlAWb+6T0T4Toqp/qwFdQF/AF5LOwMR6NcNJ704PPQvW6/Wz3M0kI5Ey9RzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710756907; c=relaxed/simple; bh=Y2C1XOrm26ah5eIYvFy2mVkhN2UAmY3CAB2v9vA91/8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xdw4OL0MtSIw1MVZC2dVL97gsq8ucjfeKEGx1kQDL+kccwziEYfP4u3yRs5oMe3SIJrcFdyZx3ZS8ZRDdRAIm8M19IagY8Dm83BU3djf9PVIQICGyh6sMCkEdaowHS9Y4YfQiHKacLYhoclIZ5muTxgazqC9GGMTRHqLQ9EBlHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q+xbsV8c; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q+xbsV8c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E7BCC43394; Mon, 18 Mar 2024 10:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710756907; bh=Y2C1XOrm26ah5eIYvFy2mVkhN2UAmY3CAB2v9vA91/8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=q+xbsV8cRkWkQTLo2VXFsra0MkMhx/mDd6gxoXxpxNi4rm+NiIdq0rwRpdMZYvhUp L1w0CUwaUcfMzqfyCtBZqHJzKUYmNXjJ6eiLqPkGrYYxRNCR6CcEwCguP5UE+a4cJ9 3rSyQJLzDS2kj05RdsMd+zmDQtYy0Y+cTW8NZ8y9cyKJxB8B//qOLcod3+dF9P6q3s IeFnvWkSBBlpIWBOr/EMI06fjuiyQaiTLwn4m5ljPn0qyLYne6bOsmCBVbxdWmcfer ktcwse+DpkJ37RcJKC/IDYcSA0u93y2Hp2YH/JGeqNL/mG0IHow+oSfcILYOqxJhOa ShK6LHLk6WW5g== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2023-52616: crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init Date: Mon, 18 Mar 2024 10:15:01 +0000 Message-ID: <20240318101458.2835626-11-lee@kernel.org> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog 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=2692; i=lee@kernel.org; h=from:subject; bh=Y2C1XOrm26ah5eIYvFy2mVkhN2UAmY3CAB2v9vA91/8=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBl+BQiGU9CoHr6WivBEMInpGidUSWB6ghFp17/5 OzngnHzKDeJAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZfgUIgAKCRBRr4ovh/x3 YWi9D/9SnPQ62m12+CI8SYt0mYg7b66/RGnPwFqqJUw1mMX3ezokMIiRyd5VeLMAE6WXERY4lLS dxpf3RDGtKnq77RHOg+iSx2ytbDL3ABi5FX15EnWKWFqcOK3NI85F7DBIpGAWjCMRpHv7BZ3kNL 18iQPQWhHjmHcnQsZeLcHsKpWgN1gVxqpCD2/j6rxBtj5DoBqVe4qVZ8u5YB6cSpK2hUk+Cxn5x h+auGaNKlpTxhVJL5vwILui6qI3AgOMdsFJdAL/ytdmg9yjM64lU1loolYZ0KYrNkXEZY+EJpwH AwqXtuRbM2BLGMEctU+NyOQ+jSVmbYiZ90a3kbVzioY77VC4RXwHApgzzvWRcbVjXQ61fBo4HVu RvR75An65ALotcucni/sKLeITamD+/OMzGlqGM/IQ3b0qTe8wVCU1ymTHIY1ui5YvzXoJUdsrC0 Utxs+7w0I/tDvTZSieNImQOTioqcseRpOsu/s4JEeLYryRygF1dfoZDbIVCVfhvAhd4KLB636u8 +kloMQ+MPXoK0REBM0FKAo8p5ZV/G+ABf0Qg2SsJ/dxelTtbS0lO4dX9vNtGnG5qpSwe9Ef3C1m 6fL0GWHuGB1hBOM7rUmyoqRbieuk0HzzqAErfU/QHHL7OxydpbUHB6seX2ikPMQe1rk6biOOejX afjvHSTbpBBdWNg== X-Developer-Key: i=lee@kernel.org; a=openpgp; fpr=76B6C935A3BE209A94F0874851AF8A2F87FC7761 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init When the mpi_ec_ctx structure is initialized, some fields are not cleared, causing a crash when referencing the field when the structure was released. Initially, this issue was ignored because memory for mpi_ec_ctx is allocated with the __GFP_ZERO flag. For example, this error will be triggered when calculating the Za value for SM2 separately. The Linux kernel CVE team has assigned CVE-2023-52616 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit d58bb7e55a8a and fixed in 5.10.210 with commit 0c3687822259 Issue introduced in 5.10 with commit d58bb7e55a8a and fixed in 5.15.149 with commit 2bb86817b33c Issue introduced in 5.10 with commit d58bb7e55a8a and fixed in 6.1.79 with commit bb44477d4506 Issue introduced in 5.10 with commit d58bb7e55a8a and fixed in 6.6.15 with commit 7ebf812b7019 Issue introduced in 5.10 with commit d58bb7e55a8a and fixed in 6.7.3 with commit 7abdfd45a650 Issue introduced in 5.10 with commit d58bb7e55a8a and fixed in 6.8 with commit ba3c55742030 Please see https://www.kernel.org or 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-52616 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/ec.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/0c3687822259a7628c85cd21a3445cbe3c367165 https://git.kernel.org/stable/c/2bb86817b33c9d704e127f92b838035a72c315b6 https://git.kernel.org/stable/c/bb44477d4506e52785693a39f03cdc6a2c5e8598 https://git.kernel.org/stable/c/7ebf812b7019fd2d4d5a7ca45ef4bf3a6f4bda0a https://git.kernel.org/stable/c/7abdfd45a650c714d5ebab564bb1b988f14d9b49 https://git.kernel.org/stable/c/ba3c5574203034781ac4231acf117da917efcd2a