CVE-2026-99571
nvme-tcp: Validate the queue state under the queue lock in the address attribute
What happened?
In the Linux kernel, the following vulnerability has been resolved:
nvme-tcp: Validate the queue state under the queue lock in the address attribute
Reading the "address" sysfs attribute calls kernel_getsockname() on the admin queue socket, which can race with the queue teardown during connection error recovery: a reader can observe NVME_TCP_Q_LIVE set, then block on the queue lock while nvme_tcp_free_queue() releases the socket and clears queue->sock without holding the lock. Once the reader acquires the lock it dereferences the NULL socket pointer.
Commit 76d54bf20cdc ("nvme-tcp: don't access released socket during error recovery") had the queue liveness check inside the lock. Commit 782373ba2766 ("nvme: tcp: avoid race between queue_lock lock and destroy") moved it back out because the lock itself is destroyed in nvme_tcp_free_queue(), so a reader arriving late trips mutex_destroy().
Check the queue liveness inside the queue lock, and clear queue->sock under the same lock. The teardown clears NVME_TCP_Q_LIVE under the lock well before the socket is released, so a reader either sees the bit cleared or a socket that cannot be released while it holds the lock. To also close the lock lifetime race, the queue locks are now owned by the controller: they are initialized with the queue array and only destroyed when the controller is freed, which cannot happen while a sysfs attribute read is still in progress. The queue count is computed by the NVME_TCP_OPT_NR_QUEUES() macro from the original connect options for both initialization and destruction, as reconnects may shrink ctrl->queue_count.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 782373ba27660ba7d330208cf5509ece6feb4545 to < e3155f53e79ede67688eeaa19bdcb152b84648a8; affected: 782373ba27660ba7d330208cf5509ece6feb4545 to < f8a4276c7021d14ebc4dba7244b2514ae1d1d72c; affected: 782373ba27660ba7d330208cf5509ece6feb4545 to < 0af6a8aede3121bc9662111665294731daddb13a; affected: 782373ba27660ba7d330208cf5509ece6feb4545 to < 2eeeaa9c1ff0c429096acc2947c296db6a56f96d; affected: 4f946479b326a3cbb193f2b8368aed9269514c35; affected: 975cb1d2121511584695d0e47fdb90e6782da007; affected: e15cebc1b21856944b387f4abd03b66bd3d4f027; affected: 6.1.118 to < 6.2; affected: 6.6.62 to < 6.7; affected: 6.11.9 to < 6.12 | See vendor advisory |
| LinuxLinux | affected: 6.12; unaffected: 0 to < 6.12; unaffected: 6.12.120 to ≤ 6.12.*; unaffected: 6.18.66 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc1 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99571
- https://git.kernel.org/stable/c/e3155f53e79ede67688eeaa19bdcb152b84648a8
- https://git.kernel.org/stable/c/f8a4276c7021d14ebc4dba7244b2514ae1d1d72c
- https://git.kernel.org/stable/c/0af6a8aede3121bc9662111665294731daddb13a
- https://git.kernel.org/stable/c/2eeeaa9c1ff0c429096acc2947c296db6a56f96d