{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99851","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.438Z","datePublished":"2026-11-30T13:17:39.169Z","dateUpdated":"2026-12-01T05:43:45.987Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:45.987Z"},"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The attacker sends NVMe-oF fabrics AUTH_SEND capsules over nvmet-tcp: a common DH-HMAC-CHAP NEGOTIATE (auth_id 0x00) makes nvmet_execute_auth_send() restart negotiation without nvmet_auth_sq_free(). Each following AUTH_RECEIVE then overwrites sq->dhchap_c1 in nvmet_auth_challenge(), so the remote host's messages drive every leaked allocation over routable TCP.\nAC:L - The remote host drives the loop itself on its own admin queue: NEGOTIATE, then AUTH_RECEIVE (CHALLENGE), repeated. Each round orphans the previous c1 every time. There is no race and no target state the attacker cannot produce, and it can open and pipeline many connections.\nPR:N - No key is needed. The discovery subsystem passes nvmet_host_allowed() for any hostnqn, nvmet_setup_auth() returns 0 for discovery (also on the qid-0 reset), and nvmet_parse_admin_cmd() sends AUTH_SEND/AUTH_RECEIVE to their handlers before any nvmet_check_auth_status() gate. The leak happens before authentication.\nUI:N - No action by an administrator or user on the target is required. Once an nvmet-tcp port listens, the attacker's own TCP connection, a fabrics Connect to the discovery NQN and the auth capsules trigger the leak.\nS:U - The impact is exhausting the target kernel's own slab memory. No VM, IOMMU or sandbox boundary is crossed.\nC:N - The overwritten dhchap_c1/skey pointers are only orphaned, not freed and reused, so nothing is disclosed. c1 holds random bytes the target already sent to the host. The stale skey_len NULL-skey path in nvmet_auth_host_hash() reads from address 0 and only oopses.\nI:N - Restarting negotiation still forces a fresh CHALLENGE/REPLY check against the host key in nvmet_auth_reply(), so the host cannot authenticate or modify state without the key. The bug orphans buffers and does not write out of bounds.\nA:H - Each NEGOTIATE+RECEIVE round leaks a non-memcg-accounted kmalloc(hash_len), 64 B with sha512, from nvmet_auth_challenge(), plus the skey on DH-enabled subsystems. The leak survives disconnect and is unbounded across pipelined connections, so a remote host can drive the target into OOM. A stale skey_len with a NULL skey can also crash it."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/auth.c","drivers/nvme/target/fabrics-cmd-auth.c"],"versions":[{"version":"db1312dd95488b5e6ff362ff66fcf953a46b1821","lessThan":"337c724fb61e438c64b00d71839692db6383a693","status":"affected","versionType":"git"},{"version":"db1312dd95488b5e6ff362ff66fcf953a46b1821","lessThan":"bfac75f0339b74c43b4a5d3811450b3a40a42dc1","status":"affected","versionType":"git"},{"version":"db1312dd95488b5e6ff362ff66fcf953a46b1821","lessThan":"8a264652e015a8ed96e666ab8d8cf21a0c71b3f5","status":"affected","versionType":"git"},{"version":"db1312dd95488b5e6ff362ff66fcf953a46b1821","lessThan":"1890437496271781a9d4ab1ba2ba9bbe4cc7c073","status":"affected","versionType":"git"},{"version":"db1312dd95488b5e6ff362ff66fcf953a46b1821","lessThan":"21a812abcc98ea8f68e22768577dd76ee63d4354","status":"affected","versionType":"git"},{"version":"db1312dd95488b5e6ff362ff66fcf953a46b1821","lessThan":"5c279fcabb0ea7ba61881c13027b15d8054b8abd","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/target/auth.c","drivers/nvme/target/fabrics-cmd-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/337c724fb61e438c64b00d71839692db6383a693"},{"url":"https://git.kernel.org/stable/c/bfac75f0339b74c43b4a5d3811450b3a40a42dc1"},{"url":"https://git.kernel.org/stable/c/8a264652e015a8ed96e666ab8d8cf21a0c71b3f5"},{"url":"https://git.kernel.org/stable/c/1890437496271781a9d4ab1ba2ba9bbe4cc7c073"},{"url":"https://git.kernel.org/stable/c/21a812abcc98ea8f68e22768577dd76ee63d4354"},{"url":"https://git.kernel.org/stable/c/5c279fcabb0ea7ba61881c13027b15d8054b8abd"}],"title":"nvmet: Free the old negotiation state when restarting authentication","x_generator":{"engine":"bippy-1.2.0"}}}}