nvmet: Free the old negotiation state when restarting authentication

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxdb1312dd95488b5e6ff362ff66fcf953a46b1821 to before 337c724fb61e438c64b00d71839692db6383a693 Affecteddb1312dd95488b5e6ff362ff66fcf953a46b1821 to before bfac75f0339b74c43b4a5d3811450b3a40a42dc1 Affecteddb1312dd95488b5e6ff362ff66fcf953a46b1821 to before 8a264652e015a8ed96e666ab8d8cf21a0c71b3f5 Affecteddb1312dd95488b5e6ff362ff66fcf953a46b1821 to before 1890437496271781a9d4ab1ba2ba9bbe4cc7c073 Affecteddb1312dd95488b5e6ff362ff66fcf953a46b1821 to before 21a812abcc98ea8f68e22768577dd76ee63d4354 Affecteddb1312dd95488b5e6ff362ff66fcf953a46b1821 to before 5c279fcabb0ea7ba61881c13027b15d8054b8abd Affected
Linux Linux6.0 Affectedbefore 6.0 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.