CVE-2026-99441: nvmet-auth: serialize access to DH-HMAC-CHAP state to fix UAF
From: Greg Kroah-Hartman <[email protected]>
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.
The Linux kernel CVE team has assigned CVE-2026-99441 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit 7a277c37d3522e9b2777d762bbbcecafae2b1f8d and fixed in 6.12.117 with commit 4074511c39abed4b763392f0430bf84f166abb4c Issue introduced in 6.0 with commit 7a277c37d3522e9b2777d762bbbcecafae2b1f8d and fixed in 6.18.63 with commit edb4f7bcffdb768103c561c588de310f34dd26ba Issue introduced in 6.0 with commit 7a277c37d3522e9b2777d762bbbcecafae2b1f8d and fixed in 7.3.2 with commit 35f55810ee2410815d687ff00fb8412d63ab2899 Issue introduced in 6.0 with commit 7a277c37d3522e9b2777d762bbbcecafae2b1f8d and fixed in 7.4-rc1 with commit 53f6efe00cea0c0cf7bd99debe3cdac8567170b5
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99441
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/nvme/target/auth.c
drivers/nvme/target/fabrics-cmd-auth.c
drivers/nvme/target/nvmet.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
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