nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF
- State
- Published
- Severity
- 8.8 High
- Published
- Nov 19, 2026
- Updated
- Nov 23, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF
A REPLY AUTH_SEND command can derive a dhchap_skey key while a concurrent AUTH_RECEIVE command observing this REPLY state executes the failure path and frees that key. The REPLY command then continues and writes into freed memory, causing a use-after-free. KASAN reports it as:
BUG: KASAN: slab-use-after-free in __sha256_final Write of size 4 at addr ffff88800359c540 ... nvmet_auth_sq_free (drivers/nvme/target/auth.c:237) nvmet_execute_auth_receive (drivers/nvme/target/fabrics-cmd-auth.c:621)
Add a mutex to each submission queue to serialize authentication commands and timeout handling. Unlock the mutex before completing requests and ignore outdated timeout callbacks. Limit timeout delays to prevent immediate expiry on 32-bit kernels.
| Product | Versions |
|---|---|
| Linux Linux | 7a277c37d3522e9b2777d762bbbcecafae2b1f8d to before 52642b931d0fdbae34ec414c6e156c1e2ef61d22 Affected7a277c37d3522e9b2777d762bbbcecafae2b1f8d to before b77027a6127d85ddd2eb2de94d1be17dba895cb8 Affected7a277c37d3522e9b2777d762bbbcecafae2b1f8d to before 4074511c39abed4b763392f0430bf84f166abb4c Affected7a277c37d3522e9b2777d762bbbcecafae2b1f8d to before edb4f7bcffdb768103c561c588de310f34dd26ba Affected7a277c37d3522e9b2777d762bbbcecafae2b1f8d to before 35f55810ee2410815d687ff00fb8412d63ab2899 Affected7a277c37d3522e9b2777d762bbbcecafae2b1f8d to before 53f6efe00cea0c0cf7bd99debe3cdac8567170b5 Affected |
| Linux Linux | 6.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.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 8.8 High | Linux |
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/52642b931d0fdbae34ec414c6e156c1e2ef61d22
- https://git.kernel.org/stable/c/b77027a6127d85ddd2eb2de94d1be17dba895cb8
- https://git.kernel.org/stable/c/4074511c39abed4b763392f0430bf84f166abb4c
- https://git.kernel.org/stable/c/edb4f7bcffdb768103c561c588de310f34dd26ba
- https://git.kernel.org/stable/c/35f55810ee2410815d687ff00fb8412d63ab2899
- https://git.kernel.org/stable/c/53f6efe00cea0c0cf7bd99debe3cdac8567170b5
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.