{"id":"CVE-2026-139150","summary":"nvmet-rdma: fix double puts after a failed RDMA WRITE","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-rdma: fix double puts after a failed RDMA WRITE\n\nFor a read with T10-PI the RDMA WRITE is posted alone and\nnvmet_rdma_write_data_done() posts the SEND once the metadata check\nresult is known. By then the request has been completed and its\nreferences put: __nvmet_req_complete() put ns-\u003eref and the pc_ref, and\nnvmet_req_complete() sq-\u003eref, right after queuing the response. The\nerror branch of nvmet_rdma_write_data_done() copies the one from\nnvmet_rdma_read_data_done() and calls nvmet_req_uninit(), which puts\nall three again. A WRITE fails whenever the connection ends with reads\nin flight, which is up to the host. Depending on timing the sq-\u003eref\ncount goes to zero early and the queue is freed under the remaining\ncompletions, or never reaches zero and nvmet_sq_destroy() sleeps\nforever, or percpu_ref_put() dereferences NULL after percpu_ref_exit().\nns-\u003eref stays too low for good, so disabling the namespace hangs too.\nReproduced with KASAN over rxe with a test patch forcing the PI path.\n\nDrop the nvmet_req_uninit(). The branch still releases the RDMA context\nand the response, which is all the request owns at that point.","modified":"2026-11-30T15:02:27.236613301Z","published":"2026-11-30T13:32:02.537Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139150.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/04284e1aaa2644d0545b4da5796032b9bbaf3bf7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5355474f0cef789cf22236351cf18d09ffa46984"},{"type":"WEB","url":"https://git.kernel.org/stable/c/79c4b29b0520d52010caf94bc7b1b44c3e9de6f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7adbb35416225a013739854fc5014417a835b4ad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8ad99847a4404d6511e9dc96d3424145594dc878"},{"type":"WEB","url":"https://git.kernel.org/stable/c/924393942038ea82073719ce999cc7272584f40e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96ef50841a6b1dd9aca7e6161306574c16f9dab7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1dac2a2e75260d1466d9f03ccf0944d6d0449a4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139150.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139150"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b09160c3996c11d62a08f9534c755103a10a89b4"},{"fixed":"04284e1aaa2644d0545b4da5796032b9bbaf3bf7"},{"fixed":"8ad99847a4404d6511e9dc96d3424145594dc878"},{"fixed":"96ef50841a6b1dd9aca7e6161306574c16f9dab7"},{"fixed":"924393942038ea82073719ce999cc7272584f40e"},{"fixed":"5355474f0cef789cf22236351cf18d09ffa46984"},{"fixed":"7adbb35416225a013739854fc5014417a835b4ad"},{"fixed":"79c4b29b0520d52010caf94bc7b1b44c3e9de6f1"},{"fixed":"f1dac2a2e75260d1466d9f03ccf0944d6d0449a4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139150.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.8.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.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-139150.json"}}],"schema_version":"1.9.2"}