CVE-2021-47616

RDMA: Fix use-after-free in rxe_queue_cleanup

State
Published
Severity
7.8 High
Published
Jun 19, 2024
Updated
Aug 5, 2026
Reserved
Jun 19, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA: Fix use-after-free in rxe_queue_cleanup

On error handling path in rxe_qp_from_init() qp->sq.queue is freed and then rxe_create_qp() will drop last reference to this object. qp clean up function will try to free this queue one time and it causes UAF bug.

Fix it by zeroing queue pointer after freeing queue in rxe_qp_from_init().

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
  • 514aee660df493cd673154a6ba6bab745ec47b8c to before acb53e47db1fbc7cd37ab10b46388f045a76e383Affected
  • 514aee660df493cd673154a6ba6bab745ec47b8c to before 84b01721e8042cdd1e8ffeb648844a09cd4213e0Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.10 through 5.15.*Not affected
  • 5.16 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.