{"id":"CVE-2026-138814","aliases":["CVE-2026-138814"],"related":[],"kind":"vulnerability","state":"published","title":"nvme-auth: fail when the controller does not authenticate itself","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:25:13.799Z","modified":"2026-12-01T06:17:27.930Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","fixed":"f6f549724abbbd5d9bb5e41c6ea591236149200f","status":"affected"},{"type":"git","introduced":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","fixed":"6377319ad353a406c99eee6d9d70b4692cf07cd4","status":"affected"},{"type":"git","introduced":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","fixed":"d066d556d1ccb12b07acd4b72537d1a6e9551a43","status":"affected"},{"type":"git","introduced":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","fixed":"81b9f59167067b5fbb4f2ae65498194085bbffe3","status":"affected"},{"type":"git","introduced":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","fixed":"fba302332547210e81c7d26778bad245de580e8f","status":"affected"},{"type":"git","introduced":"f50fff73d620cd6e8f48bc58d4f1c944615a3fea","fixed":"f9e43d924bc74feeb56197de82b2845de2a4b85a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f6f549724abbbd5d9bb5e41c6ea591236149200f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6377319ad353a406c99eee6d9d70b4692cf07cd4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d066d556d1ccb12b07acd4b72537d1a6e9551a43","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81b9f59167067b5fbb4f2ae65498194085bbffe3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fba302332547210e81c7d26778bad245de580e8f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f9e43d924bc74feeb56197de82b2845de2a4b85a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138814","url":"https://www.cve.org/CVERecord?id=CVE-2026-138814","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:10.711Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138814","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138814","licence":"Public domain","modified":"2026-12-01T06:17:27.930Z"}],"updatedAt":"2026-12-01T06:32:14.476Z","epss":{"score":0.00498,"percentile":0.44288,"date":"2026-12-01T12:00:22.000Z"}}