CVE-2023-54201

RDMA/efa: Fix wrong resources deallocation order

State
Published
Severity
7.8 High
Published
Dec 30, 2025
Updated
Aug 5, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ff6629f88c529b07d9704c656c64dae76910e3e9 to before cf38960386f3cc4abf395e556af915e4babcafd2Affected
  • ff6629f88c529b07d9704c656c64dae76910e3e9 to before e79db2f51a564fd4daa3e508b987df5e81c34b20Affected
  • ff6629f88c529b07d9704c656c64dae76910e3e9 to before 24f9884971f9b34915b67baacf7350a3f6f19ea4Affected
  • ff6629f88c529b07d9704c656c64dae76910e3e9 to before dc202c57e9a1423aed528e4b8dc949509cd32191Affected
LinuxLinux
  • 5.7Affected
  • before 5.7Not affected
  • 6.1.53 through 6.1.*Not affected
  • 6.4.16 through 6.4.*Not affected
  • 6.5.3 through 6.5.*Not affected
  • 6.6 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.