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

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:01.999Z
- Modified: 2026-12-01T06:17:37.470Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from b71df12605cabab47d58bd926badaf4130280e4d before 6c6d541fdc556659d6e8d6d608d38fe03bbd82cd; from b71df12605cabab47d58bd926badaf4130280e4d before b6c4b529ef42c6995a75c2384a19fbd4f3740bb0; from b71df12605cabab47d58bd926badaf4130280e4d before 24177b0909ed41af78e7b5f73e864bfc116fd806; from b71df12605cabab47d58bd926badaf4130280e4d before 6c28bf6920b09baec6852d3ca58b52778e1464b9; from b71df12605cabab47d58bd926badaf4130280e4d before 24b9e5fb0e160802950aa0caba19576edcc9094e; from b71df12605cabab47d58bd926badaf4130280e4d before 961ff9e3a453665574fa143ea5f496b97350333a; from b71df12605cabab47d58bd926badaf4130280e4d before 89480d137bf0d943a82c64f86ae2407a15276b5e; 5.15 (not affected: before 5.15; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/6c6d541fdc556659d6e8d6d608d38fe03bbd82cd>
- <https://git.kernel.org/stable/c/b6c4b529ef42c6995a75c2384a19fbd4f3740bb0>
- <https://git.kernel.org/stable/c/24177b0909ed41af78e7b5f73e864bfc116fd806>
- <https://git.kernel.org/stable/c/6c28bf6920b09baec6852d3ca58b52778e1464b9>
- <https://git.kernel.org/stable/c/24b9e5fb0e160802950aa0caba19576edcc9094e>
- <https://git.kernel.org/stable/c/961ff9e3a453665574fa143ea5f496b97350333a>
- <https://git.kernel.org/stable/c/89480d137bf0d943a82c64f86ae2407a15276b5e>

## Sources

- CVE List: [CVE-2026-139149](https://www.cve.org/CVERecord?id=CVE-2026-139149), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139149](https://nvd.nist.gov/vuln/detail/CVE-2026-139149), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139149 · Whole record: https://cve.day/CVE-2026-139149.json · Rebuilt by cve.day 2026-12-01T06:32:17.448Z
