CVE-2026-99851
published high CVSS 3.1 · 7.5nvmet: Free the old negotiation state when restarting authentication
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxdb1312dd95488b5e6ff362ff66fcf953a46b1821 to < 337c724fb61e438c64b00d71839692db6383a693 · db1312dd95488b5e6ff362ff66fcf953a46b1821 to < bfac75f0339b74c43b4a5d3811450b3a40a42dc1 · db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 8a264652e015a8ed96e666ab8d8cf21a0c71b3f5 · db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 1890437496271781a9d4ab1ba2ba9bbe4cc7c073 · db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 21a812abcc98ea8f68e22768577dd76ee63d4354 · db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 5c279fcabb0ea7ba61881c13027b15d8054b8abd · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: nvmet: Free the old negotiation state when restarting authentication Restarting a DH-HMAC-CHAP negotiation with SEND(NEGOTIATE) resets sq->dhchap_step but does not release the previous c1/c2/skey, which are only freed in nvmet_auth_sq_free() at teardown. The next CHALLENGE/REPLY exchange then overwrites those pointers with fresh allocations. An unauthenticated host can repeat the negotiate message endlessly, leaking a few dozen bytes per round and slowly exhausting target memory. Clear the old negotiation state with nvmet_auth_sq_free() before setting up the new one. Also reset dhchap_skey_len to zero: if a DH session key was already established, a following round with dhvlen=0 would otherwise pass a NULL skey with a stale non-zero length to the HMAC code and dereference it.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: 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. AC: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. PR: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. UI: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. S:U - The impact is exhausting the target kernel's own slab memory. No VM, IOMMU or sandbox boundary is crossed. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 337c724fb61e438c64b00d71839692db6383a693 (affected · git)db1312dd95488b5e6ff362ff66fcf953a46b1821 to < bfac75f0339b74c43b4a5d3811450b3a40a42dc1 (affected · git)db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 8a264652e015a8ed96e666ab8d8cf21a0c71b3f5 (affected · git)db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 1890437496271781a9d4ab1ba2ba9bbe4cc7c073 (affected · git)db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 21a812abcc98ea8f68e22768577dd76ee63d4354 (affected · git)db1312dd95488b5e6ff362ff66fcf953a46b1821 to < 5c279fcabb0ea7ba61881c13027b15d8054b8abd (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.0 (affected)0 to < 6.0 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/1890437496271781a9d4ab1ba2ba9bbe4cc7c073
- https://git.kernel.org/stable/c/21a812abcc98ea8f68e22768577dd76ee63d4354
- https://git.kernel.org/stable/c/337c724fb61e438c64b00d71839692db6383a693
- https://git.kernel.org/stable/c/5c279fcabb0ea7ba61881c13027b15d8054b8abd
- https://git.kernel.org/stable/c/8a264652e015a8ed96e666ab8d8cf21a0c71b3f5
- https://git.kernel.org/stable/c/bfac75f0339b74c43b4a5d3811450b3a40a42dc1
Provider assertions
1Linux · cna
nvmet: Free the old negotiation state when restarting authentication
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dea6008ce09d1f5c1e9babd8147aff37058607fe22338a8492bd4165edd8cf26
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record