{"id":"CVE-2026-99851","aliases":["CVE-2026-99851"],"related":[],"kind":"vulnerability","state":"published","title":"nvmet: Free the old negotiation state when restarting authentication","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: Free the old negotiation state when restarting authentication\n\nRestarting a DH-HMAC-CHAP negotiation with SEND(NEGOTIATE) resets\nsq->dhchap_step but does not release the previous c1/c2/skey, which\nare only freed in nvmet_auth_sq_free() at teardown.  The next\nCHALLENGE/REPLY exchange then overwrites those pointers with fresh\nallocations.\n\nAn unauthenticated host can repeat the negotiate message endlessly,\nleaking a few dozen bytes per round and slowly exhausting target\nmemory.\n\nClear the old negotiation state with nvmet_auth_sq_free() before\nsetting up the new one.  Also reset dhchap_skey_len to zero: if a DH\nsession key was already established, a following round with dhvlen=0\nwould otherwise pass a NULL skey with a stale non-zero length to the\nHMAC code and dereference it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: Free the old negotiation state when restarting authentication\n\nRestarting a DH-HMAC-CHAP negotiation with SEND(NEGOTIATE) resets\nsq->dhchap_step but does not release the previous c1/c2/skey, which\nare only freed in nvmet_auth_sq_free() at teardown.  The next\nCHALLENGE/REPLY exchange then overwrites those pointers with fresh\nallocations.\n\nAn unauthenticated host can repeat the negotiate message endlessly,\nleaking a few dozen bytes per round and slowly exhausting target\nmemory.\n\nClear the old negotiation state with nvmet_auth_sq_free() before\nsetting up the new one.  Also reset dhchap_skey_len to zero: if a DH\nsession key was already established, a following round with dhvlen=0\nwould otherwise pass a NULL skey with a stale non-zero length to the\nHMAC code and dereference it.","source":"cvelist"}],"published":"2026-11-30T13:17:39.169Z","modified":"2026-12-01T06:17:53.170Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"db1312dd95488b5e6ff362ff66fcf953a46b1821","fixed":"337c724fb61e438c64b00d71839692db6383a693","status":"affected"},{"type":"git","introduced":"db1312dd95488b5e6ff362ff66fcf953a46b1821","fixed":"bfac75f0339b74c43b4a5d3811450b3a40a42dc1","status":"affected"},{"type":"git","introduced":"db1312dd95488b5e6ff362ff66fcf953a46b1821","fixed":"8a264652e015a8ed96e666ab8d8cf21a0c71b3f5","status":"affected"},{"type":"git","introduced":"db1312dd95488b5e6ff362ff66fcf953a46b1821","fixed":"1890437496271781a9d4ab1ba2ba9bbe4cc7c073","status":"affected"},{"type":"git","introduced":"db1312dd95488b5e6ff362ff66fcf953a46b1821","fixed":"21a812abcc98ea8f68e22768577dd76ee63d4354","status":"affected"},{"type":"git","introduced":"db1312dd95488b5e6ff362ff66fcf953a46b1821","fixed":"5c279fcabb0ea7ba61881c13027b15d8054b8abd","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/337c724fb61e438c64b00d71839692db6383a693","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bfac75f0339b74c43b4a5d3811450b3a40a42dc1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a264652e015a8ed96e666ab8d8cf21a0c71b3f5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1890437496271781a9d4ab1ba2ba9bbe4cc7c073","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21a812abcc98ea8f68e22768577dd76ee63d4354","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c279fcabb0ea7ba61881c13027b15d8054b8abd","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99851","url":"https://www.cve.org/CVERecord?id=CVE-2026-99851","licence":"CVE Terms of Use","modified":"2026-12-01T05:43:45.987Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99851","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99851","licence":"Public domain","modified":"2026-12-01T06:17:53.170Z"}],"updatedAt":"2026-12-01T06:32:51.095Z","epss":{"score":0.00833,"percentile":0.58765,"date":"2026-12-01T12:00:22.000Z"}}