CVE-2021-47616
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47616 is a use-after-free vulnerability in the Linux kernel's RDMA (Remote Direct Memory Access) subsystem. The vulnerability was discovered in the rxequeuecleanup function. On the error handling path in rxeqpfrominit(), qp->sq.queue is freed and then rxecreate_qp() drops the last reference to this object, causing the qp cleanup function to attempt to free this queue again, resulting in a use-after-free condition (Kernel Git).

Technical details

The vulnerability exists in the error handling path of the rxeqpfrominit() function. The issue occurs when qp->sq.queue is freed, followed by rxecreate_qp() dropping the last reference to this object. The cleanup function then attempts to free this queue again, leading to a use-after-free vulnerability. The bug was introduced by commit 514aee660df4 'RDMA: Globally allocate and release QP memory'. The CVSS v3.1 base score for this vulnerability is 7.8 HIGH (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) (NVD).

Impact

This vulnerability could potentially lead to privilege escalation, system crashes, or arbitrary code execution in the context of the kernel. The high CVSS score indicates that successful exploitation could result in complete compromise of confidentiality, integrity, and availability of the affected system.

Mitigation and workarounds

The vulnerability has been fixed by zeroing the queue pointer after freeing the queue in rxeqpfrom_init(). Users should upgrade to Linux kernel version 5.15.10 or later which contains the fix. The patch adds 'qp->sq.queue = NULL' after the queue cleanup to prevent the use-after-free condition (Kernel Git).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management