Database/Firmware, BMC & network fabric
Linux kernel RDMA/efa: wrong teardown order lets a failed QP/CQ destroy underflow a refcount
Impact
The EFA RDMA driver released memory regions for a queue pair or completion queue before asking the device to destroy the object. If the device-side destroy fails, the object survives and the user or the IB core can issue destroy again, decrementing a refcount that is already zero. That underflow is a use-after-free style memory-corruption primitive in the host kernel reachable from a process that holds an EFA device file, which on a GPU node means any training job using the RDMA fabric. On multi-tenant GPU hosts the fabric device is handed to tenant workloads, so the fault domain is the whole node rather than one job. The record gives no evidence of a demonstrated exploit beyond local memory corruption, and triggering it requires the device destroy call to fail first.
Who can reach it
Local user with access to an EFA RDMA device (an /dev/infiniband verbs device), i.e. any tenant process allowed to open the fabric. No special privilege beyond that device handle; not reachable over the network and not reachable at all on nodes without EFA hardware or the efa module loaded.
What to do
Pick up the stable kernel containing the reordered deallocation (four stable branches carry the fix, see the git.kernel.org links) and reboot the node, or rebuild the out-of-tree efa module if you run the AWS driver package. There is no runtime mitigation other than denying tenants direct RDMA device access; nodes must be drained and rebooted for a kernel update.
References
Related entries
- Linux kernel (drivers/net/ethernet/mellanox/mlx5/core): Adding a TC flower rule while the device is in NIC mode makesCVE-2023-54216 · Linux kernel (drivers/net/ethernet/mellanox/mlx5/core)High
- Linux kernel scsi/mpi3mr: uninitialized event-ack array causes out-of-bounds bitmap clear and UAFCVE-2023-54234 · Linux kernel scsi mpi3mr driver (evtack_cmds array initialization)High
- Linux kernel mlx5: SKB leak during PTP FIFO resync exhausts memory on ConnectX NICsCVE-2023-54238 · Linux kernel mlx5 driver (PTP SKB FIFO resync)High
- Linux kernel mlxsw (Spectrum switch ASIC ACL TCAM): On Spectrum-2 and newer, firmware reports more than 16 ACLs perCVE-2024-26586 · Linux kernel mlxsw (Spectrum switch ASIC ACL TCAM)High
- Linux kernel (drivers/infiniband/hw/hfi1): An off-by-one in the SDMA descriptor accounting lets the descriptor array inCVE-2024-26766 · Linux kernel (drivers/infiniband/hw/hfi1)High
- AMI AptioV UEFI BIOS (SmmComputrace DXE module): The SmmComputrace DXE module leaks stack and global memory to a localCVE-2024-33656 · AMI AptioV UEFI BIOS (SmmComputrace DXE module)High
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.