nvmet: Free the old negotiation state when restarting authentication
Summary
| CVE | CVE-2026-99851 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:20:18 UTC |
| Updated | 2026-12-01 06:17:53 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from 416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | CNA | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected db1312dd95488b5e6ff362ff66fcf953a46b1821 337c724fb61e438c64b00d71839692db6383a693 git | Not specified |
| CNA | Linux | Linux | affected db1312dd95488b5e6ff362ff66fcf953a46b1821 bfac75f0339b74c43b4a5d3811450b3a40a42dc1 git | Not specified |
| CNA | Linux | Linux | affected db1312dd95488b5e6ff362ff66fcf953a46b1821 8a264652e015a8ed96e666ab8d8cf21a0c71b3f5 git | Not specified |
| CNA | Linux | Linux | affected db1312dd95488b5e6ff362ff66fcf953a46b1821 1890437496271781a9d4ab1ba2ba9bbe4cc7c073 git | Not specified |
| CNA | Linux | Linux | affected db1312dd95488b5e6ff362ff66fcf953a46b1821 21a812abcc98ea8f68e22768577dd76ee63d4354 git | Not specified |
| CNA | Linux | Linux | affected db1312dd95488b5e6ff362ff66fcf953a46b1821 5c279fcabb0ea7ba61881c13027b15d8054b8abd git | Not specified |
| CNA | Linux | Linux | affected 6.0 | Not specified |
| CNA | Linux | Linux | unaffected 6.0 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.193 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.163 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.117 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.63 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3.4 7.3.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.4-rc1 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/bfac75f0339b74c43b4a5d3811450b3a40a42dc1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/21a812abcc98ea8f68e22768577dd76ee63d4354 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/8a264652e015a8ed96e666ab8d8cf21a0c71b3f5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/337c724fb61e438c64b00d71839692db6383a693 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/5c279fcabb0ea7ba61881c13027b15d8054b8abd | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/1890437496271781a9d4ab1ba2ba9bbe4cc7c073 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.