PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2021-47261: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47261 affects the Linux kernel's InfiniBand (IB) MLX5 driver. The vulnerability was discovered in the initialization of CQ fragments buffer functionality, specifically in the init_cq_frag_buf() function. The issue was publicly disclosed on May 21, 2024, and affects the Linux kernel's mlx5 InfiniBand driver (NVD).

Technical details

The vulnerability exists in the init_cq_frag_buf() function which can be called to initialize either the current CQ fragments buffer (cq->buf) or the temporary resize buffer (cq->resize_buf) during CQ resize operations. The issue arose when the function get_cqe() was used to retrieve CQEs, as it always returns CQEs from cq->buf. This leads to initialization of the wrong buffer, and when enlarging the CQ, it attempts to access elements beyond the size of the current cq->buf, resulting in a kernel panic (Kernel Commit).

Impact

When exploited, this vulnerability can cause a kernel panic, particularly during CQ resize operations. This can lead to system instability and potential denial of service conditions (NVD).

Exploitability

The vulnerability can be triggered during CQ resize operations in the MLX5 InfiniBand driver. A specific call trace has been identified: mlx5_ib_resize_cq -> ib_resize_cq -> llt_rdma_setup_qp -> llt_rdma_cc_event_action -> llt_rdma_client_conn_thread -> kthread (Kernel Commit).

Mitigation and workarounds

The issue has been fixed by modifying the init_cq_frag_buf() function to use mlx5_frag_buf_get_wqe() instead of get_cqe(). This new function takes the correct source buffer as a parameter, ensuring proper buffer initialization. The fix has been implemented in the Linux kernel (Kernel Commit).

Additional resources


Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-98862MEDIUM6
  • Linux Kernel logoLinux Kernel
  • linux-iot
NoYesOct 18, 2026
CVE-2026-98859MEDIUM5.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-partner
NoYesOct 18, 2026
CVE-2026-98861MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • linux-fips
NoYesOct 18, 2026
CVE-2026-98863NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-riscv
NoYesOct 18, 2026
CVE-2026-98858NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-ibm-5.15
NoYesOct 18, 2026

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