nvme: target: rdma: fix ndev refcount leak on queue connect
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 31deaeb11ba7a885116c9c30892b9f763c04d59c · < 5828517d17eda27f21d29ea14800c9e0a57bad11| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nvme: target: rdma: fix ndev refcount leak on queue connect
nvmet_rdma_queue_connect() calls nvmet_rdma_find_get_device() which acquires a reference on the returned ndev via kref_get(). On the path where the host queue backlog is exceeded and the function returns NVME_SC_CONNECT_CTRL_BUSY, reference of ndev is not released, leaking the kref.
Fix this by adding a goto to the existing put_device label before the early return.
From the CVE record · Linux
The Linux kernel’s NVMe target RDMA queue-connect path can leak a device reference when the host queue backlog is exceeded. A host attempting a queue connection under that condition can trigger the leak; the input does not specify authentication requirements.
Operators running the Linux kernel with NVMe target RDMA should check their deployments; affected versions are not specified.