# CVE-2023-53817: crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-12-09T00:01:15.411Z
- Modified: 2026-08-05T09:16:11.527Z
- Assigned by: Linux

## 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()

(As written by CVE List.)

## Affected

- Linux Linux: from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 before fde791e8a96a64ea7b0ad2440e43586447a209c6; from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 before ae63e84ffda74267bf7277c38415ba38389229a0; from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 before 61f5453e9706e99713825594e0c8f9031485fb5f; from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 before 0fc7147c694394f8a8cbc19570c6bc918cac0906; from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 before 67589d247909043e94d2dd5fb590958e0f99d58d; from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 before d3ad023a39f1127dcfd331c562673355dc078650; from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 before 12ac013ad7ff0df066451e825801d805095b3776; from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 before 9e47a758b70167c9301d2b44d2569f86c7796f2d; 3.7 (not affected: before 3.7; from 4.14.326 up to 4.14.*; from 4.19.295 up to 4.19.*; from 5.4.257 up to 5.4.*; from 5.10.197 up to 5.10.*; from 5.15.133 up to 5.15.*; from 6.1.55 up to 6.1.*; from 6.5.5 up to 6.5.*; from 6.6 up to *)

## References

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

## Sources

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

---

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