nvmet: don't clear sq->ctrl for a Connect with sqsize 0
Summary
| CVE | CVE-2026-139149 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:18:32 UTC |
| Updated | 2026-11-30 14:18:32 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
nvmet: don't clear sq->ctrl for a Connect with sqsize 0
nvmet_install_queue() checks sqsize first and jumps to err on zero,
where sq->ctrl is set to NULL. Since commit b71df12605ca the cmpxchg()
that sets sq->ctrl comes after the checks, so err now undoes a bind
that this call never made. Over RDMA a host can send two Connects
together and the second is parsed before the first executes, so a
second Connect with sqsize 0 clears the sq->ctrl the first one set.
The reference it held is never dropped and the controller leaks, with
its cntlid, until reboot. The discovery subsystem lets any host do
that, 20 connections leak around 10 controllers. A pending AER on such
a queue hangs nvmet_sq_destroy() forever, and a queue can keep its
"authenticated" mark across a rebind.
Return the status directly, as the two checks after it do, so err is
only reached after this call's cmpxchg() succeeded. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected b71df12605cabab47d58bd926badaf4130280e4d 6c6d541fdc556659d6e8d6d608d38fe03bbd82cd git |
Not specified |
| CNA |
Linux |
Linux |
affected b71df12605cabab47d58bd926badaf4130280e4d b6c4b529ef42c6995a75c2384a19fbd4f3740bb0 git |
Not specified |
| CNA |
Linux |
Linux |
affected b71df12605cabab47d58bd926badaf4130280e4d 24177b0909ed41af78e7b5f73e864bfc116fd806 git |
Not specified |
| CNA |
Linux |
Linux |
affected b71df12605cabab47d58bd926badaf4130280e4d 6c28bf6920b09baec6852d3ca58b52778e1464b9 git |
Not specified |
| CNA |
Linux |
Linux |
affected b71df12605cabab47d58bd926badaf4130280e4d 24b9e5fb0e160802950aa0caba19576edcc9094e git |
Not specified |
| CNA |
Linux |
Linux |
affected b71df12605cabab47d58bd926badaf4130280e4d 961ff9e3a453665574fa143ea5f496b97350333a git |
Not specified |
| CNA |
Linux |
Linux |
affected b71df12605cabab47d58bd926badaf4130280e4d 89480d137bf0d943a82c64f86ae2407a15276b5e git |
Not specified |
| CNA |
Linux |
Linux |
affected 5.15 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15.226 5.15.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.119 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.65 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.6 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/24b9e5fb0e160802950aa0caba19576edcc9094e |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/6c6d541fdc556659d6e8d6d608d38fe03bbd82cd |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/6c28bf6920b09baec6852d3ca58b52778e1464b9 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/89480d137bf0d943a82c64f86ae2407a15276b5e |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/961ff9e3a453665574fa143ea5f496b97350333a |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/b6c4b529ef42c6995a75c2384a19fbd4f3740bb0 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/24177b0909ed41af78e7b5f73e864bfc116fd806 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.