CVE-2023-53817

crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()

7.5 high EPSS 0.55%

Published 9 Dec 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2023-53817

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53817 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.55%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 47.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, before fde791e8a96a64ea7b0ad2440e43586447a209c6
affected from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, before ae63e84ffda74267bf7277c38415ba38389229a0
affected from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, before 61f5453e9706e99713825594e0c8f9031485fb5f
affected from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, before 0fc7147c694394f8a8cbc19570c6bc918cac0906
affected from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, before 67589d247909043e94d2dd5fb590958e0f99d58d
affected from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, before d3ad023a39f1127dcfd331c562673355dc078650
affected from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, before 12ac013ad7ff0df066451e825801d805095b3776
affected from 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5, before 9e47a758b70167c9301d2b44d2569f86c7796f2d
Other versions: unaffected
Linux
affected 3.7
unaffected before 3.7
unaffected from 4.14.326 up to and including 4.14.*
unaffected from 4.19.295 up to and including 4.19.*
unaffected from 5.4.257 up to and including 5.4.*
unaffected from 5.10.197 up to and including 5.10.*
unaffected from 5.15.133 up to and including 5.15.*
unaffected from 6.1.55 up to and including 6.1.*
unaffected from 6.5.5 up to and including 6.5.*
unaffected 6.6 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53817 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53817

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-53817
trivy image --scanners vuln IMAGE | grep CVE-2023-53817

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-53817 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.