CVE-2026-138814
published high CVSS 3.1 · 7.4nvme-auth: fail when the controller does not authenticate itself
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf50fff73d620cd6e8f48bc58d4f1c944615a3fea to < f6f549724abbbd5d9bb5e41c6ea591236149200f · f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < 6377319ad353a406c99eee6d9d70b4692cf07cd4 · f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < d066d556d1ccb12b07acd4b72537d1a6e9551a43 · f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < 81b9f59167067b5fbb4f2ae65498194085bbffe3 · f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < fba302332547210e81c7d26778bad245de580e8f · f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < f9e43d924bc74feeb56197de82b2845de2a4b85a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: nvme-auth: fail when the controller does not authenticate itself nvme_auth_process_dhchap_success1() returns success as soon as the controller clears the rvalid flag in its DH-HMAC-CHAP success1 message, without looking at whether the host had asked the controller to authenticate. A host configured with a controller secret sends a challenge in its reply, computes the expected controller response, and sets chap->bi_directional; if the controller then answers with rvalid = 0 the response is never compared, the host still sends success2, and the queue is marked as authenticated. A malicious or man-in-the-middle controller therefore only has to clear one flag to turn the configured bidirectional authentication into a one-way one, without holding any secret of its own. The target side already treats the mirror image of this as fatal: when the host supplied a challenge but no controller key is configured, nvmet_auth_success1() fails the authentication rather than answering with rvalid = 0. Refuse the connection if the controller returns no response although bidirectional authentication was requested. chap->bi_directional is the right condition rather than ctrl->ctrl_key, because secure concatenation sends a challenge only to derive the PSK and deliberately clears bi_directional; a one-way setup without a controller secret keeps returning success as before.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Scenarios
- en: AV:N - The forged input is the DH-HMAC-CHAP Success1 payload (rvalid=0, echoed t_id, matching hl) the controller returns to the host's AUTH_Receive in nvme_queue_auth_work(), accepted by nvme_auth_process_dhchap_success1(). On NVMe/TCP it arrives in a C2HData PDU on routable TCP, reached via nvmf_connect_admin_queue()/nvmf_connect_io_queue() when the Connect reply sets AUTHREQ ATR. AC:H - The attacker must receive the host's NVMe/TCP connection to its configured traddr (on-path position or address takeover), which this bug does not provide; CVSS 3.1 scores such interception AC:H. Once there the forgery is deterministic: clear one flag, no secret, and a reset forces nvme_tcp_reconnect_ctrl_work() to reconnect. PR:N - The impersonating controller holds neither the host nor the controller DH-HMAC-CHAP secret: it sends any c1 challenge, ignores the host's reply, and answers Success1 with rvalid=0. The host then sends Success2 and sets chap->authenticated without any credential of the controller being checked. UI:N - No operator action is needed: once the attacker breaks the live connection, nvme_tcp_error_recovery_work() and nvme_tcp_reconnect_ctrl_work() reconnect automatically through nvme_tcp_setup_ctrl() -> nvmf_connect_admin_queue(), and nvmf_should_reconnect() keeps retrying until ctrl_loss_tmo. S:U - The bug defeats the host kernel's own controller-authentication check and its effect is confined to the host's I/O to that subsystem; no VM, IOMMU or sandbox boundary is crossed. C:H - After the bypass nvmf_connect_admin_queue() returns 0 and the host brings the controller live against the impostor, so every block the host writes to that subsystem's namespaces (filesystem data, journals) is delivered to the attacker. Bidirectional auth with dhchap_ctrl_secret exists to prevent exactly this. I:H - The impostor answers every Identify and Read, so the host consumes attacker-chosen block contents as if they came from the authenticated subsystem (e.g. a root filesystem booted over NVMe/TCP), and acknowledged writes can be silently dropped or altered. A:N - No memory-safety issue: the patch only adds a chap->bi_directional check before return 0. Availability is no worse than with the fix, which returns -ECONNREFUSED/-EKEYREJECTED so nvmf_should_reconnect() stops retrying; the storage is lost to the attacker's position either way.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < f6f549724abbbd5d9bb5e41c6ea591236149200f (affected · git)f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < 6377319ad353a406c99eee6d9d70b4692cf07cd4 (affected · git)f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < d066d556d1ccb12b07acd4b72537d1a6e9551a43 (affected · git)f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < 81b9f59167067b5fbb4f2ae65498194085bbffe3 (affected · git)f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < fba302332547210e81c7d26778bad245de580e8f (affected · git)f50fff73d620cd6e8f48bc58d4f1c944615a3fea to < f9e43d924bc74feeb56197de82b2845de2a4b85a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.0 (affected)0 to < 6.0 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/6377319ad353a406c99eee6d9d70b4692cf07cd4
- https://git.kernel.org/stable/c/81b9f59167067b5fbb4f2ae65498194085bbffe3
- https://git.kernel.org/stable/c/d066d556d1ccb12b07acd4b72537d1a6e9551a43
- https://git.kernel.org/stable/c/f6f549724abbbd5d9bb5e41c6ea591236149200f
- https://git.kernel.org/stable/c/f9e43d924bc74feeb56197de82b2845de2a4b85a
- https://git.kernel.org/stable/c/fba302332547210e81c7d26778bad245de580e8f
Provider assertions
1Linux · cna
nvme-auth: fail when the controller does not authenticate itself
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 863d97a5f6a468678e21aa957d2e53625144bbe1d0c73e9059a96a853302f577
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record