CVE-2026-64319

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

State
Published
Severity
9.1 Critical
Published
Jul 25, 2026
Updated
Oct 30, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HLinux

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • db1312dd95488b5e6ff362ff66fcf953a46b1821 to before 04fb6ff8b87a0ffff3860ff52bdb2fd04b31ece5Affected
  • db1312dd95488b5e6ff362ff66fcf953a46b1821 to before 80cd28b56ab62d3e7ed0a7bf05282e6d3ee5b2a0Affected
  • db1312dd95488b5e6ff362ff66fcf953a46b1821 to before 999f6205ede984a786f35f727b01f971b98e215dAffected
  • db1312dd95488b5e6ff362ff66fcf953a46b1821 to before 6d7649c1231dac14d906985d2936967e23041c26Affected
  • db1312dd95488b5e6ff362ff66fcf953a46b1821 to before caa71b3a43ea5c13fe7141cb019ebcb03b8ac857Affected
  • db1312dd95488b5e6ff362ff66fcf953a46b1821 to before 3a413ece2504c70aa34a20be4dafec04e8c741f9Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.96 through 6.12.*Not affected
  • 6.18.39 through 6.18.*Not affected
  • 7.1.4 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.