{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138814","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.895Z","datePublished":"2026-11-30T13:25:13.799Z","dateUpdated":"2026-12-01T05:40:10.711Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:40:10.711Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-auth: fail when the controller does not authenticate itself\n\nnvme_auth_process_dhchap_success1() returns success as soon as the\ncontroller clears the rvalid flag in its DH-HMAC-CHAP success1 message,\nwithout looking at whether the host had asked the controller to\nauthenticate.  A host configured with a controller secret sends a\nchallenge in its reply, computes the expected controller response, and\nsets chap->bi_directional; if the controller then answers with\nrvalid = 0 the response is never compared, the host still sends\nsuccess2, and the queue is marked as authenticated.\n\nA malicious or man-in-the-middle controller therefore only has to clear\none flag to turn the configured bidirectional authentication into a\none-way one, without holding any secret of its own.  The target side\nalready treats the mirror image of this as fatal: when the host supplied\na challenge but no controller key is configured, nvmet_auth_success1()\nfails the authentication rather than answering with rvalid = 0.\n\nRefuse the connection if the controller returns no response although\nbidirectional authentication was requested.  chap->bi_directional is the\nright condition rather than ctrl->ctrl_key, because secure concatenation\nsends a challenge only to derive the PSK and deliberately clears\nbi_directional; a one-way setup without a controller secret keeps\nreturning success as before."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":7.4,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/auth.c"],"versions":[{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","lessThan":"f6f549724abbbd5d9bb5e41c6ea591236149200f","status":"affected","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","lessThan":"6377319ad353a406c99eee6d9d70b4692cf07cd4","status":"affected","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","lessThan":"d066d556d1ccb12b07acd4b72537d1a6e9551a43","status":"affected","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","lessThan":"81b9f59167067b5fbb4f2ae65498194085bbffe3","status":"affected","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","lessThan":"fba302332547210e81c7d26778bad245de580e8f","status":"affected","versionType":"git"},{"version":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","lessThan":"f9e43d924bc74feeb56197de82b2845de2a4b85a","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/auth.c"],"versions":[{"version":"6.0","status":"affected"},{"version":"0","lessThan":"6.0","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/f6f549724abbbd5d9bb5e41c6ea591236149200f"},{"url":"https://git.kernel.org/stable/c/6377319ad353a406c99eee6d9d70b4692cf07cd4"},{"url":"https://git.kernel.org/stable/c/d066d556d1ccb12b07acd4b72537d1a6e9551a43"},{"url":"https://git.kernel.org/stable/c/81b9f59167067b5fbb4f2ae65498194085bbffe3"},{"url":"https://git.kernel.org/stable/c/fba302332547210e81c7d26778bad245de580e8f"},{"url":"https://git.kernel.org/stable/c/f9e43d924bc74feeb56197de82b2845de2a4b85a"}],"title":"nvme-auth: fail when the controller does not authenticate itself","x_generator":{"engine":"bippy-1.2.0"}}}}