# CVE-2021-46964: scsi: qla2xxx: Reserve extra IRQ vectors

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-02-27T18:47:02.404Z
- **Modified:** 2026-06-17T04:16:00.477Z

## Who should check

- Anyone running Linux \>= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, \< 4ecd42dec858b6632c5f024fe13e9ad6c30f2734; \>= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, \< 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6; \>= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, \< f02d4086a8f36a0e1aaebf559b54cf24a177a486
- Anyone running Linux 5.11

## 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

- Linux: \>= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, \< 4ecd42dec858b6632c5f024fe13e9ad6c30f2734; \>= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, \< 0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6; \>= a6dcfe08487e5e83b6b4214c959a9577a9ed2d9f, \< f02d4086a8f36a0e1aaebf559b54cf24a177a486 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/4ecd42dec858b6632c5f024fe13e9ad6c30f2734>
- patch: <https://git.kernel.org/stable/c/0f86d66b38501e3ac66cf2d9f9f8ad6838bad0e6>
- patch: <https://git.kernel.org/stable/c/f02d4086a8f36a0e1aaebf559b54cf24a177a486>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46964>

HTML: <https://flawdb.com/CVE-2021-46964> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46964>
