{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139149","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.917Z","datePublished":"2026-11-30T13:32:01.999Z","dateUpdated":"2026-12-01T05:41:34.366Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:41:34.366Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: don't clear sq->ctrl for a Connect with sqsize 0\n\nnvmet_install_queue() checks sqsize first and jumps to err on zero,\nwhere sq->ctrl is set to NULL. Since commit b71df12605ca the cmpxchg()\nthat sets sq->ctrl comes after the checks, so err now undoes a bind\nthat this call never made. Over RDMA a host can send two Connects\ntogether and the second is parsed before the first executes, so a\nsecond Connect with sqsize 0 clears the sq->ctrl the first one set.\nThe reference it held is never dropped and the controller leaks, with\nits cntlid, until reboot. The discovery subsystem lets any host do\nthat, 20 connections leak around 10 controllers. A pending AER on such\na queue hangs nvmet_sq_destroy() forever, and a queue can keep its\n\"authenticated\" mark across a rebind.\n\nReturn the status directly, as the two checks after it do, so err is\nonly reached after this call's cmpxchg() succeeded."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The malformed input is a second NVMe-oF Fabrics Connect capsule (qid 0, sqsize 0) sent by the remote host over nvmet-rdma. nvmet_rdma_handle_command() parses it with nvmet_req_init()/nvmet_parse_connect_cmd() while the first Connect's RDMA READ is still pending, then nvmet_install_queue() clears sq->ctrl. RoCEv2/iWARP are routable IP. nvmet-tcp is unaffected because it has only one queue->connect slot.\nAC:L - The attacker controls both sides. It posts two keyed-SGL Connects back to back on a new admin queue, so both are parsed while sq->ctrl is NULL, before nvmet_rdma_read_data_done() runs either one. If they arrive before ESTABLISHED, nvmet_rdma_queue_established() parses both in its loop. A miss costs only a reconnect; the commit reports about 10 leaked controllers per 20 connections.\nPR:N - nvmet_alloc_ctrl() admits any hostnqn to the well-known discovery subsystem: nvmet_host_allowed() returns true for nvmet_disc_subsys and nvmet_setup_auth() skips DH-HMAC-CHAP for it. The nvme_rdma_cm_req private data is not authenticated either, so the Connect pair needs no credentials.\nUI:N - No victim action is involved. The remote host sends its own Connects, then disconnects its own queue. That runs nvmet_rdma_free_queue()->nvmet_sq_destroy() with sq->ctrl == NULL, which skips the final nvmet_ctrl_put().\nS:U - The leaked nvmet_ctrl and its cntlid stay inside the target kernel's own nvmet state. No VM, IOMMU or sandbox boundary is crossed.\nC:N - Nothing is disclosed. The leaked controller's stale ctrl->sqs[0] points at the freed nvmet_rdma_queue, but only the root-only 0400 debugfs host_traddr file reads it. The commit's 'authenticated mark kept across a rebind' needs DH-HMAC-CHAP to finish between the two Connects, and I found no path for that: the second Connect's RDMA READ runs ahead of any AUTH_SEND data READ.\nI:N - The defect drops a reference rather than freeing early: the err label of nvmet_install_queue() sets sq->ctrl = NULL, which pins the controller instead of freeing it. No remote actor writes through the stale sqs[0] pointer or modifies any data.\nA:H - Each hit leaks an nvmet_ctrl (128 error-log slots, changed_ns_list, debugfs dir) and its cntlid in the global cntlid_ida until reboot. Once the default IDs 1..0xffef run out, every later Connect fails CTRL_BUSY on every default-range subsystem, for all hosts. A pending AER on the cleared queue also hangs nvmet_sq_destroy() forever, because nvmet_async_events_failall() is skipped."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/fabrics-cmd.c"],"versions":[{"version":"b71df12605cabab47d58bd926badaf4130280e4d","lessThan":"6c6d541fdc556659d6e8d6d608d38fe03bbd82cd","status":"affected","versionType":"git"},{"version":"b71df12605cabab47d58bd926badaf4130280e4d","lessThan":"b6c4b529ef42c6995a75c2384a19fbd4f3740bb0","status":"affected","versionType":"git"},{"version":"b71df12605cabab47d58bd926badaf4130280e4d","lessThan":"24177b0909ed41af78e7b5f73e864bfc116fd806","status":"affected","versionType":"git"},{"version":"b71df12605cabab47d58bd926badaf4130280e4d","lessThan":"6c28bf6920b09baec6852d3ca58b52778e1464b9","status":"affected","versionType":"git"},{"version":"b71df12605cabab47d58bd926badaf4130280e4d","lessThan":"24b9e5fb0e160802950aa0caba19576edcc9094e","status":"affected","versionType":"git"},{"version":"b71df12605cabab47d58bd926badaf4130280e4d","lessThan":"961ff9e3a453665574fa143ea5f496b97350333a","status":"affected","versionType":"git"},{"version":"b71df12605cabab47d58bd926badaf4130280e4d","lessThan":"89480d137bf0d943a82c64f86ae2407a15276b5e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/fabrics-cmd.c"],"versions":[{"version":"5.15","status":"affected"},{"version":"0","lessThan":"5.15","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/6c6d541fdc556659d6e8d6d608d38fe03bbd82cd"},{"url":"https://git.kernel.org/stable/c/b6c4b529ef42c6995a75c2384a19fbd4f3740bb0"},{"url":"https://git.kernel.org/stable/c/24177b0909ed41af78e7b5f73e864bfc116fd806"},{"url":"https://git.kernel.org/stable/c/6c28bf6920b09baec6852d3ca58b52778e1464b9"},{"url":"https://git.kernel.org/stable/c/24b9e5fb0e160802950aa0caba19576edcc9094e"},{"url":"https://git.kernel.org/stable/c/961ff9e3a453665574fa143ea5f496b97350333a"},{"url":"https://git.kernel.org/stable/c/89480d137bf0d943a82c64f86ae2407a15276b5e"}],"title":"nvmet: don't clear sq->ctrl for a Connect with sqsize 0","x_generator":{"engine":"bippy-1.2.0"}}}}