nvmet-auth: validate reply message payload bounds against transfer length (Linux Linux)

CVE-2026-64319
CRITICAL 9.1

At a glance

Source
NVD
EPSS
EPSS 0.52 % · percentile 44 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: nvmet-auth: validate reply message payload bounds against transfer length nvmet_auth_reply() accesses the variable-length rval[] array using attacker-controlled hl (hash length) and dhvlen (DH value length) fields without verifying they fit within the allocated buffer of tl bytes. A malicious NVMe-oF initiator can craft a DHCHAP_REPLY message with a small transfer length but large hl/dhvlen values, causing out-of-bounds heap reads when the target processes the DH public key (rval + 2*hl) or performs the host response memcmp. With DH authentication configured, the OOB pointer is passed directly to sg_init_one() and read by crypto_kpp_compute_shared_secret(), reaching up to 526 bytes past the buffer. This is exploitable pre-authentication. Add bounds validation ensuring sizeof(*data) + 2*hl + dhvlen <= tl before any access to the variable-length fields. Discovered by Atuin - Automated Vulnerability Discovery Engine.

Weaknesses (CWE)

  • CWE-125 — Out-of-bounds Read

References

Scores

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

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected db1312dd95488b5e6ff362ff66fcf953a46b1821 < 04fb6ff8b87a0ffff3860ff52bdb2fd04b31ece5 ; affected db1312dd95488b5e6ff362ff66fcf953a46b1821 < 80cd28b56ab62d3e7ed0a7bf05282e6d3ee5b2a0 ; affected db1312dd95488b5e6ff362ff66fcf953a46b1821 < 999f6205ede984a786f35f727b01f971b98e215d ; affected db1312dd95488b5e6ff362ff66fcf953a46b1821 < 6d7649c1231dac14d906985d2936967e23041c26 ; affected db1312dd95488b5e6ff362ff66fcf953a46b1821 < caa71b3a43ea5c13fe7141cb019ebcb03b8ac857 ; affected db1312dd95488b5e6ff362ff66fcf953a46b1821 < 3a413ece2504c70aa34a20be4dafec04e8c741f9
Linux · Linuxaffected 6.0 ; unaffected 0 < 6.0 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.* ; unaffected 6.12.96 ≤ 6.12.* ; unaffected 6.18.39 ≤ 6.18.*

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