# CVE-2026-64319: nvmet-auth: validate reply message payload bounds against transfer length

- Severity: Critical 9.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-07-25T08:49:48.291Z
- Modified: 2026-10-30T13:19:33.567Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 04fb6ff8b87a0ffff3860ff52bdb2fd04b31ece5; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 80cd28b56ab62d3e7ed0a7bf05282e6d3ee5b2a0; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 999f6205ede984a786f35f727b01f971b98e215d; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 6d7649c1231dac14d906985d2936967e23041c26; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before caa71b3a43ea5c13fe7141cb019ebcb03b8ac857; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 3a413ece2504c70aa34a20be4dafec04e8c741f9; 6.0 (not affected: before 6.0; from 6.1.191 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.96 up to 6.12.*; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.0 before 6.6.145; from 6.7 before 6.12.96; from 6.13 before 6.18.39; from 6.19 before 7.1.4

## References

- <https://git.kernel.org/stable/c/04fb6ff8b87a0ffff3860ff52bdb2fd04b31ece5>
- <https://git.kernel.org/stable/c/80cd28b56ab62d3e7ed0a7bf05282e6d3ee5b2a0> (patch)
- <https://git.kernel.org/stable/c/999f6205ede984a786f35f727b01f971b98e215d> (patch)
- <https://git.kernel.org/stable/c/6d7649c1231dac14d906985d2936967e23041c26> (patch)
- <https://git.kernel.org/stable/c/caa71b3a43ea5c13fe7141cb019ebcb03b8ac857> (patch)
- <https://git.kernel.org/stable/c/3a413ece2504c70aa34a20be4dafec04e8c741f9> (patch)

## Sources

- CVE List: [CVE-2026-64319](https://www.cve.org/CVERecord?id=CVE-2026-64319), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-64319](https://nvd.nist.gov/vuln/detail/CVE-2026-64319), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-64319 · Whole record: https://cve.day/CVE-2026-64319.json · Rebuilt by cve.day 2026-11-25T22:59:30.066Z
