# CVE-2023-52616: crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-03-18T10:14:46.066Z
- Modified: 2026-08-05T09:10:44.363Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before 0c3687822259a7628c85cd21a3445cbe3c367165; from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before 2bb86817b33c9d704e127f92b838035a72c315b6; from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before bb44477d4506e52785693a39f03cdc6a2c5e8598; from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before 7ebf812b7019fd2d4d5a7ca45ef4bf3a6f4bda0a; from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before 7abdfd45a650c714d5ebab564bb1b988f14d9b49; from d58bb7e55a8a65894cc02f27c3e2bf9403e7c40f before ba3c5574203034781ac4231acf117da917efcd2a; 5.10 (not affected: before 5.10; from 5.10.210 up to 5.10.*; from 5.15.149 up to 5.15.*; from 6.1.79 up to 6.1.*; from 6.6.15 up to 6.6.*; from 6.7.3 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 5.10 before 5.10.210; from 5.11 before 5.15.149; from 5.16 before 6.1.79; from 6.2 before 6.6.15; from 6.7 before 6.7.3
- debian debian_linux: 10.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/0c3687822259a7628c85cd21a3445cbe3c367165> (mailing-list, patch)
- <https://git.kernel.org/stable/c/2bb86817b33c9d704e127f92b838035a72c315b6> (mailing-list, patch)
- <https://git.kernel.org/stable/c/bb44477d4506e52785693a39f03cdc6a2c5e8598> (mailing-list, patch)
- <https://git.kernel.org/stable/c/7ebf812b7019fd2d4d5a7ca45ef4bf3a6f4bda0a> (mailing-list, patch)
- <https://git.kernel.org/stable/c/7abdfd45a650c714d5ebab564bb1b988f14d9b49> (mailing-list, patch)
- <https://git.kernel.org/stable/c/ba3c5574203034781ac4231acf117da917efcd2a> (mailing-list, patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list)

## Sources

- CVE List: [CVE-2023-52616](https://www.cve.org/CVERecord?id=CVE-2023-52616), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52616](https://nvd.nist.gov/vuln/detail/CVE-2023-52616), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52616 · Whole record: https://cve.day/CVE-2023-52616.json · Rebuilt by cve.day 2026-11-25T22:58:33.358Z
