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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.07% (percentile 64, 2026-11-26)
- **Published:** 2025-12-09T00:01:15.411Z
- **Modified:** 2026-08-05T09:16:11.527Z

## Who should check

- Anyone running Linux \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< fde791e8a96a64ea7b0ad2440e43586447a209c6; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< ae63e84ffda74267bf7277c38415ba38389229a0; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 61f5453e9706e99713825594e0c8f9031485fb5f; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 0fc7147c694394f8a8cbc19570c6bc918cac0906; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 67589d247909043e94d2dd5fb590958e0f99d58d; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< d3ad023a39f1127dcfd331c562673355dc078650; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 12ac013ad7ff0df066451e825801d805095b3776; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 9e47a758b70167c9301d2b44d2569f86c7796f2d
- Anyone running Linux 3.7

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

## Affected and fixed versions

- Linux: \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< fde791e8a96a64ea7b0ad2440e43586447a209c6; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< ae63e84ffda74267bf7277c38415ba38389229a0; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 61f5453e9706e99713825594e0c8f9031485fb5f; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 0fc7147c694394f8a8cbc19570c6bc918cac0906; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 67589d247909043e94d2dd5fb590958e0f99d58d; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< d3ad023a39f1127dcfd331c562673355dc078650; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 12ac013ad7ff0df066451e825801d805095b3776; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 9e47a758b70167c9301d2b44d2569f86c7796f2d (cvelist)
- Linux: 3.7 (cvelist)

## Mitigation

- Upgrade Linux to 9e47a758b70167c9301d2b44d2569f86c7796f2d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53817. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53817.md
Affected: Linux >= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, < fde791e8a96a64ea7b0ad2440e43586447a209c6; >= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, < ae63e84ffda74267bf7277c38415ba38389229a0; >= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, < 61f5453e9706e99713825594e0c8f9031485fb5f; >= 12f008b6dc5ff1c822fdb21…
Fixed in: Linux 61f5453e9706e99713825594e0c8f9031485fb5f, Linux 0fc7147c694394f8a8cbc19570c6bc918cac0906, Linux 67589d247909043e94d2dd5fb590958e0f99d58d, Linux 12ac013ad7ff0df066451e825801d805095b3776, Linux 9e47a758b70167c9301d2b44d2569f86c7796f2d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53817 being exploited?

There is no confirmed exploitation: CVE-2023-53817 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.07% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53817?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-53817?

Linux \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< fde791e8a96a64ea7b0ad2440e43586447a209c6; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< ae63e84ffda74267bf7277c38415ba38389229a0; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 61f5453e9706e99713825594e0c8f9031485fb5f; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 0fc7147c694394f8a8cbc19570c6bc918cac0906; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 67589d247909043e94d2dd5fb590958e0f99d58d; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< d3ad023a39f1127dcfd331c562673355dc078650; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 12ac013ad7ff0df066451e825801d805095b3776; \>= 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, \< 9e47a758b70167c9301d2b44d2569f86c7796f2d; Linux 3.7.

### Is there a fix for CVE-2023-53817?

Yes. Fixed in Linux 61f5453e9706e99713825594e0c8f9031485fb5f, Linux 0fc7147c694394f8a8cbc19570c6bc918cac0906, Linux 67589d247909043e94d2dd5fb590958e0f99d58d, Linux 12ac013ad7ff0df066451e825801d805095b3776, Linux 9e47a758b70167c9301d2b44d2569f86c7796f2d. Upgrade Linux to 9e47a758b70167c9301d2b44d2569f86c7796f2d or later.

### How do I check if I'm affected by CVE-2023-53817?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/fde791e8a96a64ea7b0ad2440e43586447a209c6>
- other: <https://git.kernel.org/stable/c/ae63e84ffda74267bf7277c38415ba38389229a0>
- other: <https://git.kernel.org/stable/c/61f5453e9706e99713825594e0c8f9031485fb5f>
- other: <https://git.kernel.org/stable/c/0fc7147c694394f8a8cbc19570c6bc918cac0906>
- other: <https://git.kernel.org/stable/c/67589d247909043e94d2dd5fb590958e0f99d58d>
- other: <https://git.kernel.org/stable/c/d3ad023a39f1127dcfd331c562673355dc078650>
- other: <https://git.kernel.org/stable/c/12ac013ad7ff0df066451e825801d805095b3776>
- other: <https://git.kernel.org/stable/c/9e47a758b70167c9301d2b44d2569f86c7796f2d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53817>

HTML: <https://flawdb.com/CVE-2023-53817> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53817>
