{"api_version":"1","generated_at":"2026-11-30T15:21:41+00:00","cve":"CVE-2026-139149","urls":{"html":"https://cve.report/CVE-2026-139149","api":"https://cve.report/api/cve/CVE-2026-139149.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139149","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139149"},"summary":{"title":"nvmet: don't clear sq->ctrl for a Connect with sqsize 0","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:32","updated_at":"2026-11-30 14:18:32"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/24b9e5fb0e160802950aa0caba19576edcc9094e","name":"https://git.kernel.org/stable/c/24b9e5fb0e160802950aa0caba19576edcc9094e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6c6d541fdc556659d6e8d6d608d38fe03bbd82cd","name":"https://git.kernel.org/stable/c/6c6d541fdc556659d6e8d6d608d38fe03bbd82cd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6c28bf6920b09baec6852d3ca58b52778e1464b9","name":"https://git.kernel.org/stable/c/6c28bf6920b09baec6852d3ca58b52778e1464b9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/89480d137bf0d943a82c64f86ae2407a15276b5e","name":"https://git.kernel.org/stable/c/89480d137bf0d943a82c64f86ae2407a15276b5e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/961ff9e3a453665574fa143ea5f496b97350333a","name":"https://git.kernel.org/stable/c/961ff9e3a453665574fa143ea5f496b97350333a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b6c4b529ef42c6995a75c2384a19fbd4f3740bb0","name":"https://git.kernel.org/stable/c/b6c4b529ef42c6995a75c2384a19fbd4f3740bb0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/24177b0909ed41af78e7b5f73e864bfc116fd806","name":"https://git.kernel.org/stable/c/24177b0909ed41af78e7b5f73e864bfc116fd806","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139149","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139149","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b71df12605cabab47d58bd926badaf4130280e4d 6c6d541fdc556659d6e8d6d608d38fe03bbd82cd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b71df12605cabab47d58bd926badaf4130280e4d b6c4b529ef42c6995a75c2384a19fbd4f3740bb0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b71df12605cabab47d58bd926badaf4130280e4d 24177b0909ed41af78e7b5f73e864bfc116fd806 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b71df12605cabab47d58bd926badaf4130280e4d 6c28bf6920b09baec6852d3ca58b52778e1464b9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b71df12605cabab47d58bd926badaf4130280e4d 24b9e5fb0e160802950aa0caba19576edcc9094e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b71df12605cabab47d58bd926badaf4130280e4d 961ff9e3a453665574fa143ea5f496b97350333a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b71df12605cabab47d58bd926badaf4130280e4d 89480d137bf0d943a82c64f86ae2407a15276b5e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/nvme/target/fabrics-cmd.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6c6d541fdc556659d6e8d6d608d38fe03bbd82cd","status":"affected","version":"b71df12605cabab47d58bd926badaf4130280e4d","versionType":"git"},{"lessThan":"b6c4b529ef42c6995a75c2384a19fbd4f3740bb0","status":"affected","version":"b71df12605cabab47d58bd926badaf4130280e4d","versionType":"git"},{"lessThan":"24177b0909ed41af78e7b5f73e864bfc116fd806","status":"affected","version":"b71df12605cabab47d58bd926badaf4130280e4d","versionType":"git"},{"lessThan":"6c28bf6920b09baec6852d3ca58b52778e1464b9","status":"affected","version":"b71df12605cabab47d58bd926badaf4130280e4d","versionType":"git"},{"lessThan":"24b9e5fb0e160802950aa0caba19576edcc9094e","status":"affected","version":"b71df12605cabab47d58bd926badaf4130280e4d","versionType":"git"},{"lessThan":"961ff9e3a453665574fa143ea5f496b97350333a","status":"affected","version":"b71df12605cabab47d58bd926badaf4130280e4d","versionType":"git"},{"lessThan":"89480d137bf0d943a82c64f86ae2407a15276b5e","status":"affected","version":"b71df12605cabab47d58bd926badaf4130280e4d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/nvme/target/fabrics-cmd.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.15"},{"lessThan":"5.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:01.999Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139149","datePublished":"2026-11-30T13:32:01.999Z","dateReserved":"2026-11-30T13:22:15.917Z","dateUpdated":"2026-11-30T13:32:01.999Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:32","lastModifiedDate":"2026-11-30 14:18:32","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139149","Ordinal":"1","Title":"nvmet: don't clear sq->ctrl for a Connect with sqsize 0","CVE":"CVE-2026-139149","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139149","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"nvmet: don't clear sq->ctrl for a Connect with sqsize 0"}]}}}