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

CVE-2023-53817
HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 0.51 % · percentile 43 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

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

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 < fde791e8a96a64ea7b0ad2440e43586447a209c6 ; affected 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 < ae63e84ffda74267bf7277c38415ba38389229a0 ; affected 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 < 61f5453e9706e99713825594e0c8f9031485fb5f ; affected 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 < 0fc7147c694394f8a8cbc19570c6bc918cac0906 ; affected 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 < 67589d247909043e94d2dd5fb590958e0f99d58d ; affected 12f008b6dc5ff1c822fdb2198d20e3dbdc92f3f5 < d3ad023a39f1127dcfd331c562673355dc078650
Linux · Linuxaffected 3.7 ; unaffected 0 < 3.7 ; unaffected 4.14.326 ≤ 4.14.* ; unaffected 4.19.295 ≤ 4.19.* ; unaffected 5.4.257 ≤ 5.4.* ; unaffected 5.10.197 ≤ 5.10.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD