KernelScan.io

HIGH

rdma SRQ Leak

CVE-2026-46178

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI3.3LOW

01

In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx4: Fix resource leak on error in mlx4_ib_create_srq() Sashiko points out that mlx4_srq_alloc() was not undone during error unwind, add the missing call to mlx4_srq_free().

02

Engine v0.2.0

Risk summary

Systems with Mellanox ConnectX InfiniBand adapters running RDMA applications are at risk of resource exhaustion. Repeated SRQ creation failures can leak kernel resources, potentially degrading system performance over time.

Affecteddrivers/infiniband/hw/mlx4/srq.c (RDMA mlx4 driver)

Vulnerability analysis

The mlx4_ib_create_srq() function fails to call mlx4_srq_free() when ib_copy_to_udata() fails, causing a resource leak. The SRQ (Shared Receive Queue) allocated by mlx4_srq_alloc() is not cleaned up on this error path. The fix adds proper cleanup by introducing a new error label that calls mlx4_srq_free() before proceeding to existing cleanup code. This requires local access and RDMA permissions to trigger through userspace RDMA applications.

03

BranchFixed inPatch commit
5.105.10.25853fd4c035586
5.155.15.2090be6ae614ca7
6.16.1.1755b3b220d54e6
6.126.12.880dbd619716fb
6.186.18.30e01b8c9286c4
6.66.6.140c5dc30da9900
7.07.0.7388617f44d81
mainline7.1-rc3c54c7e4cb679