CVE-2026-99571
nvme-tcp: Validate the queue state under the queue lock in the address attribute
- CVSS
- —
- EPSS
- 0.17% (p6)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-30
- Product
- Linux Linux
Description
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.
Fixed in
0af6a8aede3121bc9662111665294731daddb13a · 2eeeaa9c1ff0c429096acc2947c296db6a56f96d · 6.12 · 6.12.120 · 6.18.66 · 6.2 · 6.7 · 7.3.5 · e3155f53e79ede67688eeaa19bdcb152b84648a8 · f8a4276c7021d14ebc4dba7244b2514ae1d1d72c
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.1.118, <6.2 | 6.2 |
| Linux | Kernel | >=6.11.9, <6.12 | 6.12 |
| Linux | Kernel | >=6.12.0, <6.12.120 | 6.12.120 |
| Linux | Kernel | >=6.12.0, <7.3.5 | 7.3.5 |
| Linux | Kernel | >=6.13.0, <6.18.66 | 6.18.66 |
| Linux | Kernel | >=6.19.0, <7.3.5 | 7.3.5 |
| Linux | Kernel | >=6.6.62, <6.7 | 6.7 |
| vendor | Linux | >=6.1.118, <6.2 | 6.2 |
| vendor | Linux | >=6.11.9, <6.12 | 6.12 |
| vendor | Linux | >=6.6.62, <6.7 | 6.7 |
| vendor | Linux | >=782373ba27660ba7d330208cf5509ece6feb4545, <0af6a8aede3121bc9662111665294731daddb13a | 0af6a8aede3121bc9662111665294731daddb13a |
| vendor | Linux | >=782373ba27660ba7d330208cf5509ece6feb4545, <2eeeaa9c1ff0c429096acc2947c296db6a56f96d | 2eeeaa9c1ff0c429096acc2947c296db6a56f96d |
| vendor | Linux | >=782373ba27660ba7d330208cf5509ece6feb4545, <e3155f53e79ede67688eeaa19bdcb152b84648a8 | e3155f53e79ede67688eeaa19bdcb152b84648a8 |
| vendor | Linux | >=782373ba27660ba7d330208cf5509ece6feb4545, <f8a4276c7021d14ebc4dba7244b2514ae1d1d72c | f8a4276c7021d14ebc4dba7244b2514ae1d1d72c |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 3d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/0af6a8aede3121bc9662111665294731daddb13a other
- https://git.kernel.org/stable/c/2eeeaa9c1ff0c429096acc2947c296db6a56f96d other
- https://git.kernel.org/stable/c/e3155f53e79ede67688eeaa19bdcb152b84648a8 other
- https://git.kernel.org/stable/c/f8a4276c7021d14ebc4dba7244b2514ae1d1d72c other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99571.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99571 advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package