# CVE-2026-99851: nvmet: Free the old negotiation state when restarting authentication

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Published: 2026-11-30T13:17:39.169Z
- Modified: 2026-12-01T06:17:53.170Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 337c724fb61e438c64b00d71839692db6383a693; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before bfac75f0339b74c43b4a5d3811450b3a40a42dc1; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 8a264652e015a8ed96e666ab8d8cf21a0c71b3f5; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 1890437496271781a9d4ab1ba2ba9bbe4cc7c073; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 21a812abcc98ea8f68e22768577dd76ee63d4354; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 5c279fcabb0ea7ba61881c13027b15d8054b8abd; 6.0 (not affected: before 6.0; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/337c724fb61e438c64b00d71839692db6383a693>
- <https://git.kernel.org/stable/c/bfac75f0339b74c43b4a5d3811450b3a40a42dc1>
- <https://git.kernel.org/stable/c/8a264652e015a8ed96e666ab8d8cf21a0c71b3f5>
- <https://git.kernel.org/stable/c/1890437496271781a9d4ab1ba2ba9bbe4cc7c073>
- <https://git.kernel.org/stable/c/21a812abcc98ea8f68e22768577dd76ee63d4354>
- <https://git.kernel.org/stable/c/5c279fcabb0ea7ba61881c13027b15d8054b8abd>

## Sources

- CVE List: [CVE-2026-99851](https://www.cve.org/CVERecord?id=CVE-2026-99851), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-99851](https://nvd.nist.gov/vuln/detail/CVE-2026-99851), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-99851 · Whole record: https://cve.day/CVE-2026-99851.json · Rebuilt by cve.day 2026-12-01T06:32:51.095Z
