CVE-2021-46964 Vulnerability Analysis & Exploit Details

CVE-2021-46964
Vulnerability Scoring

5.5
/10
Significant Risk

Security assessments indicate that CVE-2021-46964 presents a notable risk, potentially requiring prompt mitigation.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2021-46964 Details

Status: Analyzed

Last updated: 🕓 08 Jan 2025, 16:23 UTC
Originally published on: 🕖 27 Feb 2024, 19:04 UTC

Time between publication and last update: 315 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE-2021-46964 Vulnerability Summary

CVE-2021-46964: In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Reserve extra IRQ vectors Commit a6dcfe08487e ("scsi: qla2xxx: Limit interrupt vectors to number of CPUs") lowers the number of allocated MSI-X vectors to the number of CPUs. That breaks vector allocation assumptions in qla83xx_iospace_config(), qla24xx_enable_msix() and qla2x00_iospace_config(). Either of the functions computes maximum number of qpairs as: ha->max_qpairs = ha->msix_count - 1 (MB interrupt) - 1 (default response queue) - 1 (ATIO, in dual or pure target mode) max_qpairs is set to zero in case of two CPUs and initiator mode. The number is then used to allocate ha->queue_pair_map inside qla2x00_alloc_queues(). No allocation happens and ha->queue_pair_map is left NULL but the driver thinks there are queue pairs available. qla2xxx_queuecommand() tries to find a qpair in the map and crashes: if (ha->mqenable) { uint32_t tag; uint16_t hwq; struct qla_qpair *qpair = NULL; tag = blk_mq_unique_tag(cmd->request); hwq = blk_mq_unique_tag_to_hwq(tag); qpair = ha->queue_pair_map[hwq]; # <- HERE if (qpair) return qla2xxx_mqueuecommand(host, cmd, qpair); } BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] SMP PTI CPU: 0 PID: 72 Comm: kworker/u4:3 Tainted: G W 5.10.0-rc1+ #25 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.0.0-prebuilt.qemu-project.org 04/01/2014 Workqueue: scsi_wq_7 fc_scsi_scan_rport [scsi_transport_fc] RIP: 0010:qla2xxx_queuecommand+0x16b/0x3f0 [qla2xxx] Call Trace: scsi_queue_rq+0x58c/0xa60 blk_mq_dispatch_rq_list+0x2b7/0x6f0 ? __sbitmap_get_word+0x2a/0x80 __blk_mq_sched_dispatch_requests+0xb8/0x170 blk_mq_sched_dispatch_requests+0x2b/0x50 __blk_mq_run_hw_queue+0x49/0xb0 __blk_mq_delay_run_hw_queue+0xfb/0x150 blk_mq_sched_insert_request+0xbe/0x110 blk_execute_rq+0x45/0x70 __scsi_execute+0x10e/0x250 scsi_probe_and_add_lun+0x228/0xda0 __scsi_scan_target+0xf4/0x620 ? __pm_runtime_resume+0x4f/0x70 scsi_scan_target+0x100/0x110 fc_scsi_scan_rport+0xa1/0xb0 [scsi_transport_fc] process_one_work+0x1ea/0x3b0 worker_thread+0x28/0x3b0 ? process_one_work+0x3b0/0x3b0 kthread+0x112/0x130 ? kthread_park+0x80/0x80 ret_from_fork+0x22/0x30 The driver should allocate enough vectors to provide every CPU it's own HW queue and still handle reserved (MB, RSP, ATIO) interrupts. The change fixes the crash on dual core VM and prevents unbalanced QP allocation where nr_hw_queues is two less than the number of CPUs.

Assessing the Risk of CVE-2021-46964

Access Complexity Graph

The exploitability of CVE-2021-46964 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2021-46964

CVE-2021-46964 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2021-46964, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2021-46964, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2021-46964 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2021-46964 poses no threat to data integrity.
  • Availability: High
    CVE-2021-46964 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.042% (probability of exploit)

EPSS Percentile: 5.02% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 94.98% of others.

CVE-2021-46964 References

External References

CWE Common Weakness Enumeration

CWE-476

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:5.11:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.17:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.18:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.18:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.11.19:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.11.19:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:5.12.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:5.12.2:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2021-46964: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-2129 – A vulnerability was found in Mage AI 0.9.75. It has been classified as problematic. This affects an unknown part. The manipulation leads to insecur...
  • CVE-2025-2127 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla. It has been classified as problematic. Affected is an unknown function of th...
  • CVE-2025-2126 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla and classified as critical. This issue affects some unknown processing of the...
  • CVE-2025-2125 – A vulnerability has been found in Control iD RH iD 25.2.25.0 and classified as problematic. This vulnerability affects unknown code of the file /v2...
  • CVE-2025-2124 – A vulnerability, which was classified as problematic, was found in Control iD RH iD 25.2.25.0. This affects an unknown part of the file /v2/custome...