
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-47197 affects the Linux kernel's MLX5 driver, specifically related to a pointer handling issue in the mlx5_debug_cq_remove() function. The vulnerability was discovered in 2021 and affects the net/mlx5e component of the Linux kernel (Kernel Commit).
The vulnerability occurs when mlx5_core_destroy_cq() fails but proceeds with destroy operations. In such cases, mlx5_core_destroy_cq() could be called again by the user, causing an additional call to mlx5_debug_cq_remove(). Since cq->dbg was not nullified in the previous call, this could lead to a crash. The issue manifests as a general protection fault for non-canonical address access (Kernel Commit).
When exploited, this vulnerability can cause a system crash due to a general protection fault, potentially leading to denial of service conditions in affected systems (Kernel Commit).
The vulnerability can be triggered through the mlx5_core_destroy_cq() function when handling completion queues in the MLX5 driver. It requires access to the MLX5 driver functionality and can be triggered through normal system operations (Kernel Commit).
The issue has been fixed by nullifying the cq->dbg pointer after removal and ensuring destroy operations only proceed if the firmware returns 0 for the MLX5_CMD_OP_DESTROY_CQ command. The fix was implemented in the Linux kernel through a patch that modifies both cq.c and debugfs.c files (Kernel Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."