# CVE-2026-89856: scsi: qla2xxx: Clamp MSI-X derived queue counts to avoid truncation

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

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.20% (percentile 5, 2026-11-28)
- **Published:** 2026-09-16T10:31:29.517Z
- **Modified:** 2026-10-19T09:18:29.960Z

## Who should check

- Anyone running Linux \>= d74595278f4ab192af66d9e60a9087464638beee, \< cf623d32761b00f221a9cfded3303d56e84b429d; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 9eeddbeaa896f39d943644b16d83a6ad0ceab255; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 802068b9b683b8008fcccbf6e9ad133e597ec87c; \>= d74595278f4ab192af66d9e60a9087464638beee, \< e80adfeac61b4d5db7ffe0f5af43999c33a4145e; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 2efe50b2da829909023de4a2eb87badb7cfa53cc; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 7a448f5ed0b283dbde4e9183dd1e98c221432dab; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 33c77254e6e91f37c72c7fad4051777452b10de8; \>= d74595278f4ab192af66d9e60a9087464638beee, \< ebfd35c64433821bd5619a6d07ccc2df8b5b1de3
- Anyone running Linux 4.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: qla2xxx: Clamp MSI-X derived queue counts to avoid truncation

ha-\>msix\_count is u16, but ha-\>max\_req\_queues, ha-\>max\_rsp\_queues and
ha-\>max\_qpairs are u8. Deriving the queue count as
"ha-\>max\_req\_queues = ha-\>msix\_count - 1" therefore truncates: a board
(or a misconfigured/malicious hot-plugged device) advertising 257 MSI-X
vectors yields msix\_count - 1 == 256, which truncates to 0. An MSI-X
count of 1 zeroes it as well, and in target mode the subsequent
"ha-\>max\_req\_queues--" then underflows 0 to 255.

When the count is 0, qla2x00\_alloc\_queues() calls
kzalloc\_objs(struct req\_que \*, 0), which returns ZERO\_SIZE\_PTR. That is
not NULL, so the allocation check passes and the following
"ha-\>req\_q\_map\[0\] = req" dereferences ZERO\_SIZE\_PTR, corrupting memory
or crashing the kernel.

Add qla\_calc\_queue\_count() to clamp the derived value into
\[1, QLA\_MAX\_QUEUES - 1\] so it always fits in u8 and is never zero, and
use it at all three derivation sites (qla25xx\_iospace\_config(),
qla83xx\_iospace\_config() and qla24xx\_enable\_msix()). Also guard the
target-mode decrement so it cannot reintroduce a zero (which would in
turn underflow max\_qpairs).

## Affected and fixed versions

- Linux: \>= d74595278f4ab192af66d9e60a9087464638beee, \< cf623d32761b00f221a9cfded3303d56e84b429d; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 9eeddbeaa896f39d943644b16d83a6ad0ceab255; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 802068b9b683b8008fcccbf6e9ad133e597ec87c; \>= d74595278f4ab192af66d9e60a9087464638beee, \< e80adfeac61b4d5db7ffe0f5af43999c33a4145e; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 2efe50b2da829909023de4a2eb87badb7cfa53cc; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 7a448f5ed0b283dbde4e9183dd1e98c221432dab; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 33c77254e6e91f37c72c7fad4051777452b10de8; \>= d74595278f4ab192af66d9e60a9087464638beee, \< ebfd35c64433821bd5619a6d07ccc2df8b5b1de3 (cvelist)
- Linux: 4.10 (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-2026-89856. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89856.md
Affected: Linux >= d74595278f4ab192af66d9e60a9087464638beee, < cf623d32761b00f221a9cfded3303d56e84b429d; >= d74595278f4ab192af66d9e60a9087464638beee, < 9eeddbeaa896f39d943644b16d83a6ad0ceab255; >= d74595278f4ab192af66d9e60a9087464638beee, < 802068b9b683b8008fcccbf6e9ad133e597ec87c; >= d74595278f4ab192af66d9e…
Fixed in: Linux 9eeddbeaa896f39d943644b16d83a6ad0ceab255, Linux 802068b9b683b8008fcccbf6e9ad133e597ec87c, Linux 2efe50b2da829909023de4a2eb87badb7cfa53cc, Linux 7a448f5ed0b283dbde4e9183dd1e98c221432dab, Linux 33c77254e6e91f37c72c7fad4051777452b10de8

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-2026-89856 being exploited?

There is no confirmed exploitation: CVE-2026-89856 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-89856?

High: CVSS 8.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-89856?

Linux \>= d74595278f4ab192af66d9e60a9087464638beee, \< cf623d32761b00f221a9cfded3303d56e84b429d; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 9eeddbeaa896f39d943644b16d83a6ad0ceab255; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 802068b9b683b8008fcccbf6e9ad133e597ec87c; \>= d74595278f4ab192af66d9e60a9087464638beee, \< e80adfeac61b4d5db7ffe0f5af43999c33a4145e; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 2efe50b2da829909023de4a2eb87badb7cfa53cc; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 7a448f5ed0b283dbde4e9183dd1e98c221432dab; \>= d74595278f4ab192af66d9e60a9087464638beee, \< 33c77254e6e91f37c72c7fad4051777452b10de8; \>= d74595278f4ab192af66d9e60a9087464638beee, \< ebfd35c64433821bd5619a6d07ccc2df8b5b1de3; Linux 4.10.

### Is there a fix for CVE-2026-89856?

Yes. Fixed in Linux 9eeddbeaa896f39d943644b16d83a6ad0ceab255, Linux 802068b9b683b8008fcccbf6e9ad133e597ec87c, Linux 2efe50b2da829909023de4a2eb87badb7cfa53cc, Linux 7a448f5ed0b283dbde4e9183dd1e98c221432dab, Linux 33c77254e6e91f37c72c7fad4051777452b10de8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-89856?

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

- other: <https://git.kernel.org/stable/c/cf623d32761b00f221a9cfded3303d56e84b429d>
- other: <https://git.kernel.org/stable/c/9eeddbeaa896f39d943644b16d83a6ad0ceab255>
- other: <https://git.kernel.org/stable/c/802068b9b683b8008fcccbf6e9ad133e597ec87c>
- other: <https://git.kernel.org/stable/c/e80adfeac61b4d5db7ffe0f5af43999c33a4145e>
- other: <https://git.kernel.org/stable/c/2efe50b2da829909023de4a2eb87badb7cfa53cc>
- other: <https://git.kernel.org/stable/c/7a448f5ed0b283dbde4e9183dd1e98c221432dab>
- other: <https://git.kernel.org/stable/c/33c77254e6e91f37c72c7fad4051777452b10de8>
- other: <https://git.kernel.org/stable/c/ebfd35c64433821bd5619a6d07ccc2df8b5b1de3>

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

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