CVE-2026-139651: RDMA/cxgb4: Fix skb reference leak in rx_pkt()
In the Linux kernel, the following vulnerability has been resolved:
RDMA/cxgb4: Fix skb reference leak in rxpkt()
rxpkt() takes an extra reference on the received skb so it can be handed to the firmware completion path via req->cookie. When the work request skb allocation in sendfwpassopenreq() fails the function returns without releasing that extra reference, leaking one skb reference.
Free the packet skb before returning when the allocation fails, matching the cxgb4ofldsend() failure path.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In rx_pkt(), release the extra reference on the received skb before returning when work-request skb allocation in send_fw_pass_open_req() fails.
Event History
Frequently Asked Questions
What conditions are required for the leak to occur?
The affected receive path must take an extra skb reference and then the work request skb allocation in send_fw_pass_open_req() must fail. On that failure path, the extra reference is not released.
What is the impact of the failure path?
One skb reference is leaked for each occurrence of the allocation failure path. The fix releases the packet skb before returning, consistent with the existing cxgb4_ofld_send() failure handling.
What should be done to remediate the issue?
Apply a kernel update containing the referenced stable fixes. The corrected code frees the packet skb when send_fw_pass_open_req() cannot allocate the work request skb.