CVE-2026-139149

Source
https://cve.org/CVERecord?id=CVE-2026-139149
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139149.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139149
Downstream
Published
2026-11-30T13:32:01Z
Modified
2026-11-30T15:02:26Z
Summary
nvmet: don't clear sq->ctrl for a Connect with sqsize 0
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139149.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b71df12605cabab47d58bd926badaf4130280e4d
Fixed
6c6d541fdc556659d6e8d6d608d38fe03bbd82cd
Fixed
b6c4b529ef42c6995a75c2384a19fbd4f3740bb0
Fixed
24177b0909ed41af78e7b5f73e864bfc116fd806
Fixed
6c28bf6920b09baec6852d3ca58b52778e1464b9
Fixed
24b9e5fb0e160802950aa0caba19576edcc9094e
Fixed
961ff9e3a453665574fa143ea5f496b97350333a
Fixed
89480d137bf0d943a82c64f86ae2407a15276b5e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139149.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139149.json"