{"id":"CVE-2026-139150","aliases":["CVE-2026-139150"],"related":[],"kind":"vulnerability","state":"published","title":"nvmet-rdma: fix double puts after a failed RDMA WRITE","summary":"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->ref and the pc_ref, and\nnvmet_req_complete() sq->ref, 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->ref\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->ref 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->ref and the pc_ref, and\nnvmet_req_complete() sq->ref, 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->ref\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->ref 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.","source":"cvelist"}],"published":"2026-11-30T13:32:02.537Z","modified":"2026-12-01T06:17:37.710Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b09160c3996c11d62a08f9534c755103a10a89b4","fixed":"04284e1aaa2644d0545b4da5796032b9bbaf3bf7","status":"affected"},{"type":"git","introduced":"b09160c3996c11d62a08f9534c755103a10a89b4","fixed":"8ad99847a4404d6511e9dc96d3424145594dc878","status":"affected"},{"type":"git","introduced":"b09160c3996c11d62a08f9534c755103a10a89b4","fixed":"96ef50841a6b1dd9aca7e6161306574c16f9dab7","status":"affected"},{"type":"git","introduced":"b09160c3996c11d62a08f9534c755103a10a89b4","fixed":"924393942038ea82073719ce999cc7272584f40e","status":"affected"},{"type":"git","introduced":"b09160c3996c11d62a08f9534c755103a10a89b4","fixed":"5355474f0cef789cf22236351cf18d09ffa46984","status":"affected"},{"type":"git","introduced":"b09160c3996c11d62a08f9534c755103a10a89b4","fixed":"7adbb35416225a013739854fc5014417a835b4ad","status":"affected"},{"type":"git","introduced":"b09160c3996c11d62a08f9534c755103a10a89b4","fixed":"79c4b29b0520d52010caf94bc7b1b44c3e9de6f1","status":"affected"},{"type":"git","introduced":"b09160c3996c11d62a08f9534c755103a10a89b4","fixed":"f1dac2a2e75260d1466d9f03ccf0944d6d0449a4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/04284e1aaa2644d0545b4da5796032b9bbaf3bf7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ad99847a4404d6511e9dc96d3424145594dc878","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/96ef50841a6b1dd9aca7e6161306574c16f9dab7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/924393942038ea82073719ce999cc7272584f40e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5355474f0cef789cf22236351cf18d09ffa46984","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7adbb35416225a013739854fc5014417a835b4ad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/79c4b29b0520d52010caf94bc7b1b44c3e9de6f1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1dac2a2e75260d1466d9f03ccf0944d6d0449a4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139150","url":"https://www.cve.org/CVERecord?id=CVE-2026-139150","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:35.558Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139150","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139150","licence":"Public domain","modified":"2026-12-01T06:17:37.710Z"}],"updatedAt":"2026-12-01T06:32:20.529Z","epss":{"score":0.00638,"percentile":0.51887,"date":"2026-12-01T12:00:22.000Z"}}