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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxb71df12605cabab47d58bd926badaf4130280e4d to before 6c6d541fdc556659d6e8d6d608d38fe03bbd82cd Affectedb71df12605cabab47d58bd926badaf4130280e4d to before b6c4b529ef42c6995a75c2384a19fbd4f3740bb0 Affectedb71df12605cabab47d58bd926badaf4130280e4d to before 24177b0909ed41af78e7b5f73e864bfc116fd806 Affectedb71df12605cabab47d58bd926badaf4130280e4d to before 6c28bf6920b09baec6852d3ca58b52778e1464b9 Affectedb71df12605cabab47d58bd926badaf4130280e4d to before 24b9e5fb0e160802950aa0caba19576edcc9094e Affectedb71df12605cabab47d58bd926badaf4130280e4d to before 961ff9e3a453665574fa143ea5f496b97350333a Affectedb71df12605cabab47d58bd926badaf4130280e4d to before 89480d137bf0d943a82c64f86ae2407a15276b5e Affected
Linux Linux5.15 Affectedbefore 5.15 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.