CVE-2026-99441: nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF
In the Linux kernel, the following vulnerability has been resolved:
nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF
A REPLY AUTHSEND command can derive a dhchapskey key while a concurrent AUTHRECEIVE 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 sha256final Write of size 4 at addr ffff88800359c540 ... nvmetauthsqfree (drivers/nvme/target/auth.c:237) nvmetexecuteauthreceive (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.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In nvmet authentication, add a mutex to each submission queue to serialize authentication commands and timeout handling. Unlock it before completing requests, ignore outdated timeout callbacks, and limit timeout delays to prevent immediate expiry on 32-bit kernels.