nvmet-auth: validate reply message payload bounds against transfer length
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.
CVE-2026-64319
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-64319
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "db1312dd95488b5e6ff362ff66fcf953a46b1821",
"lessThan": "80cd28b56ab62d3e7ed0a7bf05282e6d3ee5b2a0",
"versionType": "git"
},
{
"status": "affected",
"version": "db1312dd95488b5e6ff362ff66fcf953a46b1821",
"lessThan": "999f6205ede984a786f35f727b01f971b98e215d",
"versionType": "git"
},
{
"status": "affected",
"version": "db1312dd95488b5e6ff362ff66fcf953a46b1821",
"lessThan": "6d7649c1231dac14d906985d2936967e23041c26",
"versionType": "git"
},
{
"status": "affected",
"version": "db1312dd95488b5e6ff362ff66fcf953a46b1821",
"lessThan": "caa71b3a43ea5c13fe7141cb019ebcb03b8ac857",
"versionType": "git"
},
{
"status": "affected",
"version": "db1312dd95488b5e6ff362ff66fcf953a46b1821",
"lessThan": "3a413ece2504c70aa34a20be4dafec04e8c741f9",
"versionType": "git"
}
],
"programFiles": [
"drivers/nvme/target/fabrics-cmd-auth.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.0"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.145",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.96",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.39",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.4",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/nvme/target/fabrics-cmd-auth.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-64319
Source reference:
/cveMetadata/cveId
Publisher severity
critical
Source reference: /containers/cna/metrics
- Event
- #41007 · Revision 1
- Added to Heist Feed
- Publisher date