# CVE-2026-97537: scsi: qla2xxx: Fix queue teardown NULL dma\_free and bitmap locking

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-09-25T10:21:35.608Z
- **Modified:** 2026-10-30T13:21:07.253Z

## Who should check

- Anyone running Linux \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< b65e3a82f77b7a63e386623d2ea70d2b5580295a; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< a9ff85886425355c72749be6090758aa19a89f16; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 81ee4df2a488f0909f7ff563e88a0e0099485a8b; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 2e6f60adf609c77e828f64e0cd371920bef91c12; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 56e25d716833604fd5bff388e472f290bfe793aa; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< f35cb67f2092b49d7949065dd56895ed47238f22; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 94fc0c5b45de2bf3a691619bcfd10b9a49fc647e; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 34a40e0dff940ac5eba494a69b553ea571e24873
- Anyone running Linux 2.6.29

## Description

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

scsi: qla2xxx: Fix queue teardown NULL dma\_free and bitmap locking

qla25xx\_free\_req\_que() and qla25xx\_free\_rsp\_que() have two pre-existing
bugs exposed on the error path of qla25xx\_create\_{req,rsp}\_que():

 1. When dma\_alloc\_coherent() fails during queue creation, the error
    path calls the free function with req-\>ring / rsp-\>ring still NULL
    (from kzalloc).  The unconditional dma\_free\_coherent() with a NULL
    cpu\_addr is undefined behavior and can panic.

 2. The free functions clear req\_qid\_map / rsp\_qid\_map under vport\_lock,
    but the create functions protect the same bitmaps with mq\_lock.
    This provides no mutual exclusion.  Additionally, the create error
    path clears the bit and releases mq\_lock before calling the free
    function, creating a window where another thread can allocate the
    same que\_id and have its ha-\>req\_q\_map entry clobbered by the
    subsequent lockless NULL assignment in the free function.

Fix by:

 - Guarding dma\_free\_coherent() with a NULL check on the ring pointer.

 - Using mq\_lock (the lock held by all creators) in the free functions
   to atomically NULL the map entry and clear the bitmap bit.

 - Removing the now-redundant clear\_bit blocks from the create error
   paths since the free functions handle it atomically.

## Affected and fixed versions

- Linux: \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< b65e3a82f77b7a63e386623d2ea70d2b5580295a; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< a9ff85886425355c72749be6090758aa19a89f16; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 81ee4df2a488f0909f7ff563e88a0e0099485a8b; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 2e6f60adf609c77e828f64e0cd371920bef91c12; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 56e25d716833604fd5bff388e472f290bfe793aa; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< f35cb67f2092b49d7949065dd56895ed47238f22; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 94fc0c5b45de2bf3a691619bcfd10b9a49fc647e; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 34a40e0dff940ac5eba494a69b553ea571e24873 (cvelist)
- Linux: 2.6.29 (cvelist)

## Mitigation

- Upgrade Linux to 34a40e0dff940ac5eba494a69b553ea571e24873 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-97537. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97537.md
Affected: Linux >= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, < b65e3a82f77b7a63e386623d2ea70d2b5580295a; >= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, < a9ff85886425355c72749be6090758aa19a89f16; >= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, < 81ee4df2a488f0909f7ff563e88a0e0099485a8b; >= 73208dfd7ab19f379d73e8a…
Fixed in: Linux 81ee4df2a488f0909f7ff563e88a0e0099485a8b, Linux 2e6f60adf609c77e828f64e0cd371920bef91c12, Linux 56e25d716833604fd5bff388e472f290bfe793aa, Linux 94fc0c5b45de2bf3a691619bcfd10b9a49fc647e, Linux 34a40e0dff940ac5eba494a69b553ea571e24873

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-97537 being exploited?

There is no confirmed exploitation: CVE-2026-97537 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-2026-97537?

It has no CVSS score yet. Unknown.

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

Linux \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< b65e3a82f77b7a63e386623d2ea70d2b5580295a; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< a9ff85886425355c72749be6090758aa19a89f16; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 81ee4df2a488f0909f7ff563e88a0e0099485a8b; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 2e6f60adf609c77e828f64e0cd371920bef91c12; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 56e25d716833604fd5bff388e472f290bfe793aa; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< f35cb67f2092b49d7949065dd56895ed47238f22; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 94fc0c5b45de2bf3a691619bcfd10b9a49fc647e; \>= 73208dfd7ab19f379d73e8a0fbf30f92c203e5e8, \< 34a40e0dff940ac5eba494a69b553ea571e24873; Linux 2.6.29.

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

Yes. Fixed in Linux 81ee4df2a488f0909f7ff563e88a0e0099485a8b, Linux 2e6f60adf609c77e828f64e0cd371920bef91c12, Linux 56e25d716833604fd5bff388e472f290bfe793aa, Linux 94fc0c5b45de2bf3a691619bcfd10b9a49fc647e, Linux 34a40e0dff940ac5eba494a69b553ea571e24873. Upgrade Linux to 34a40e0dff940ac5eba494a69b553ea571e24873 or later.

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

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/b65e3a82f77b7a63e386623d2ea70d2b5580295a>
- other: <https://git.kernel.org/stable/c/a9ff85886425355c72749be6090758aa19a89f16>
- other: <https://git.kernel.org/stable/c/81ee4df2a488f0909f7ff563e88a0e0099485a8b>
- other: <https://git.kernel.org/stable/c/2e6f60adf609c77e828f64e0cd371920bef91c12>
- other: <https://git.kernel.org/stable/c/56e25d716833604fd5bff388e472f290bfe793aa>
- other: <https://git.kernel.org/stable/c/f35cb67f2092b49d7949065dd56895ed47238f22>
- other: <https://git.kernel.org/stable/c/94fc0c5b45de2bf3a691619bcfd10b9a49fc647e>
- other: <https://git.kernel.org/stable/c/34a40e0dff940ac5eba494a69b553ea571e24873>

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

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