CVE-2021-46964
scsi: qla2xxx: Reserve extra IRQ vectors
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 4ecd42dec858b6632c5f024fe13e9ad6c30f2734; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < f02d4086a8f36a0e1aaebf559b54cf24a177a486
- Anyone running Linux 5.11
Vulnerability facts
- Affected
- Linux >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 4ecd42dec858b6632c5f024fe13e9ad6c30f2734; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < f02d4086a8f36a0e1aaebf559b54cf24a177a486; Linux 5.11
- Fixed in
- Linux 4ecd42dec858b6632c5f024fe13e9ad6c30f2734, Linux 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 4ecd42dec858b6632c5f024fe13e9ad6c30f2734; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < f02d4086a8f36a0e1aaebf559b54cf24a177a486 | — | cvelist |
| Linux | 5.11 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-46964. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-46964.md Affected: Linux >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 4ecd42dec858b6632c5f024fe13e9ad6c30f2734; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < f02d4086a8f36a0e1aaebf559b54cf24a177a486; Linux 5.11 Fixed in: Linux 4ecd42dec858b6632c5f024fe13e9ad6c30f2734, Linux 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2021-46964 being exploited?
There is no confirmed exploitation: CVE-2021-46964 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-46964?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-46964?
Linux >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 4ecd42dec858b6632c5f024fe13e9ad6c30f2734; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6; >= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, < f02d4086a8f36a0e1aaebf559b54cf24a177a486; Linux 5.11.
Is there a fix for CVE-2021-46964?
Yes. Fixed in Linux 4ecd42dec858b6632c5f024fe13e9ad6c30f2734, Linux 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2021-46964?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.