{"id":"CVE-2026-99851","summary":"nvmet: Free the old negotiation state when restarting authentication","details":"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-\u003edhchap_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.","modified":"2026-12-01T07:00:50.355901696Z","published":"2026-11-30T13:17:39.169Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99851.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1890437496271781a9d4ab1ba2ba9bbe4cc7c073"},{"type":"WEB","url":"https://git.kernel.org/stable/c/21a812abcc98ea8f68e22768577dd76ee63d4354"},{"type":"WEB","url":"https://git.kernel.org/stable/c/337c724fb61e438c64b00d71839692db6383a693"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5c279fcabb0ea7ba61881c13027b15d8054b8abd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8a264652e015a8ed96e666ab8d8cf21a0c71b3f5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bfac75f0339b74c43b4a5d3811450b3a40a42dc1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99851.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99851"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"db1312dd95488b5e6ff362ff66fcf953a46b1821"},{"fixed":"337c724fb61e438c64b00d71839692db6383a693"},{"fixed":"bfac75f0339b74c43b4a5d3811450b3a40a42dc1"},{"fixed":"8a264652e015a8ed96e666ab8d8cf21a0c71b3f5"},{"fixed":"1890437496271781a9d4ab1ba2ba9bbe4cc7c073"},{"fixed":"21a812abcc98ea8f68e22768577dd76ee63d4354"},{"fixed":"5c279fcabb0ea7ba61881c13027b15d8054b8abd"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99851.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99851.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}