nvmet: don't clear sq->ctrl for a Connect with sqsize 0

Summary

CVECVE-2026-139149
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:32 UTC
Updated2026-11-30 14:18:32 UTC
DescriptionIn 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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report