{"id":"CVE-2026-143281","state":"PUBLISHED","title":"nvmet-rdma: disconnect a queue on device removal","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-rdma: disconnect a queue on device removal\n\ncma_remove_one() sends DEVICE_REMOVAL to the owner of every cm_id on\nthe device and then waits, without timeout, until they're all\ndestroyed. nvmet_rdma_device_removal() does nothing for a queue cm_id\nand leaves the queues to nvmet_rdma_remove_one(), which only works if\nthat runs first. As a module it does, nvmet-rdma registers after\nrdma_cm. Built in, both register at the same initcall level and\ndrivers/Makefile lists nvme/ ahead of infiniband/, so cma_remove_one()\nruns first and waits for cm_ids that only the later callback would\ndestroy. Since the RDMA CM drops all later events for a cm_id once it\nhas sent DEVICE_REMOVAL, a peer closing its connection doesn't help\neither. One connection from anyone who can reach the port hangs \"rdma\nlink delete\" until something else ends the queue.\n\nCall nvmet_rdma_queue_disconnect() for the queue. It unlists the queue\nand queues the release work, which destroys the cm_id. Don't wait for\nit, rdma_destroy_id() waits for the handler to return, which was the\ndeadlock before commit f1d4ef7d8883.","publishedAt":"2026-12-03T09:21:19.685Z","updatedAt":"2026-12-03T09:21:19.685Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"ded70db6ca5f998b6efcb0750d0bd7bc7d147f66","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"386fe3612a73e7214c2c3deff2d41ff597613f3c","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"214fbe97702b258d19f16768b9f9c41dec3e52a3","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"3e048e411f2c638adfac1291775be3becd90222a","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"157964fe20203b4f0b88afdd3a83c278143728f5","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"a4387799d4228866dc1746b466cd17e1c638d050","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/rdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/rdma.c"]}],"references":["https://git.kernel.org/stable/c/ded70db6ca5f998b6efcb0750d0bd7bc7d147f66","https://git.kernel.org/stable/c/386fe3612a73e7214c2c3deff2d41ff597613f3c","https://git.kernel.org/stable/c/214fbe97702b258d19f16768b9f9c41dec3e52a3","https://git.kernel.org/stable/c/3e048e411f2c638adfac1291775be3becd90222a","https://git.kernel.org/stable/c/157964fe20203b4f0b88afdd3a83c278143728f5","https://git.kernel.org/stable/c/a4387799d4228866dc1746b466cd17e1c638d050"],"weaknesses":[],"ingestedAt":"2026-12-03T09:42:04.348Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143281.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143281","state":"PUBLISHED","datePublished":"2026-12-03T09:21:19.685Z","dateUpdated":"2026-12-03T09:21:19.685Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.364Z"},"containers":{"cna":{"title":"nvmet-rdma: disconnect a queue on device removal","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-rdma: disconnect a queue on device removal\n\ncma_remove_one() sends DEVICE_REMOVAL to the owner of every cm_id on\nthe device and then waits, without timeout, until they're all\ndestroyed. nvmet_rdma_device_removal() does nothing for a queue cm_id\nand leaves the queues to nvmet_rdma_remove_one(), which only works if\nthat runs first. As a module it does, nvmet-rdma registers after\nrdma_cm. Built in, both register at the same initcall level and\ndrivers/Makefile lists nvme/ ahead of infiniband/, so cma_remove_one()\nruns first and waits for cm_ids that only the later callback would\ndestroy. Since the RDMA CM drops all later events for a cm_id once it\nhas sent DEVICE_REMOVAL, a peer closing its connection doesn't help\neither. One connection from anyone who can reach the port hangs \"rdma\nlink delete\" until something else ends the queue.\n\nCall nvmet_rdma_queue_disconnect() for the queue. It unlists the queue\nand queues the release work, which destroys the cm_id. Don't wait for\nit, rdma_destroy_id() waits for the handler to return, which was the\ndeadlock before commit f1d4ef7d8883."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"ded70db6ca5f998b6efcb0750d0bd7bc7d147f66","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"386fe3612a73e7214c2c3deff2d41ff597613f3c","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"214fbe97702b258d19f16768b9f9c41dec3e52a3","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"3e048e411f2c638adfac1291775be3becd90222a","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"157964fe20203b4f0b88afdd3a83c278143728f5","versionType":"git"},{"version":"f1d4ef7d88832444e8dfeb0e85e19d3b6ecb5011","status":"affected","lessThan":"a4387799d4228866dc1746b466cd17e1c638d050","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/rdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/rdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ded70db6ca5f998b6efcb0750d0bd7bc7d147f66"},{"url":"https://git.kernel.org/stable/c/386fe3612a73e7214c2c3deff2d41ff597613f3c"},{"url":"https://git.kernel.org/stable/c/214fbe97702b258d19f16768b9f9c41dec3e52a3"},{"url":"https://git.kernel.org/stable/c/3e048e411f2c638adfac1291775be3becd90222a"},{"url":"https://git.kernel.org/stable/c/157964fe20203b4f0b88afdd3a83c278143728f5"},{"url":"https://git.kernel.org/stable/c/a4387799d4228866dc1746b466cd17e1c638d050"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:19.685Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}