{"id":"CVE-2023-54201","aliases":["CVE-2023-54201"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/efa: Fix wrong resources deallocation order","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/efa: Fix wrong resources deallocation order\n\nWhen trying to destroy QP or CQ, we first decrease the refcount and\npotentially free memory regions allocated for the object and then\nrequest the device to destroy the object. If the device fails, the\nobject isn't fully destroyed so the user/IB core can try to destroy the\nobject again which will lead to underflow when trying to decrease an\nalready zeroed refcount.\n\nDeallocate resources in reverse order of allocating them to safely free\nthem.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/efa: Fix wrong resources deallocation order\n\nWhen trying to destroy QP or CQ, we first decrease the refcount and\npotentially free memory regions allocated for the object and then\nrequest the device to destroy the object. If the device fails, the\nobject isn't fully destroyed so the user/IB core can try to destroy the\nobject again which will lead to underflow when trying to decrease an\nalready zeroed refcount.\n\nDeallocate resources in reverse order of allocating them to safely free\nthem.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nRDMA/efa: Corrección del orden incorrecto de desasignación de recursos\n\nAl intentar destruir QP o CQ, primero disminuimos el contador de referencias y potencialmente liberamos regiones de memoria asignadas para el objeto y luego solicitamos al dispositivo que destruya el objeto. Si el dispositivo falla, el objeto no se destruye completamente, por lo que el usuario/núcleo de IB puede intentar destruir el objeto de nuevo, lo que provocará un desbordamiento negativo al intentar disminuir un contador de referencias ya puesto a cero.\n\nDesasignar los recursos en orden inverso al de su asignación para liberarlos de forma segura.","source":"nvd"}],"published":"2025-12-30T12:09:06.211Z","modified":"2026-10-28T19:10:00.193Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ff6629f88c529b07d9704c656c64dae76910e3e9","fixed":"cf38960386f3cc4abf395e556af915e4babcafd2","status":"affected"},{"type":"git","introduced":"ff6629f88c529b07d9704c656c64dae76910e3e9","fixed":"e79db2f51a564fd4daa3e508b987df5e81c34b20","status":"affected"},{"type":"git","introduced":"ff6629f88c529b07d9704c656c64dae76910e3e9","fixed":"24f9884971f9b34915b67baacf7350a3f6f19ea4","status":"affected"},{"type":"git","introduced":"ff6629f88c529b07d9704c656c64dae76910e3e9","fixed":"dc202c57e9a1423aed528e4b8dc949509cd32191","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"6.1.53","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.16","lastAffected":"6.4.*","status":"unaffected"},{"type":"semver","introduced":"6.5.3","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/cf38960386f3cc4abf395e556af915e4babcafd2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e79db2f51a564fd4daa3e508b987df5e81c34b20","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24f9884971f9b34915b67baacf7350a3f6f19ea4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc202c57e9a1423aed528e4b8dc949509cd32191","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54201","url":"https://www.cve.org/CVERecord?id=CVE-2023-54201","licence":"CVE Terms of Use","modified":"2026-08-05T09:17:59.823Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54201","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54201","licence":"Public domain","modified":"2026-10-28T19:10:00.193Z"}],"updatedAt":"2026-11-25T22:58:35.218Z","epss":{"score":0.00165,"percentile":0.06006,"date":"2026-12-01T12:00:22.000Z"}}