# CVE-2024-26931: scsi: qla2xxx: Fix command flush on cable pull

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; 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.48% (percentile 34, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-01T05:17:14.823Z
- **Modified:** 2026-08-05T11:28:26.685Z

## Who should check

- Anyone running Linux \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< b73377124f56d2fec154737c2f8d2e839c237d5a; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< d7a68eee87b05d4e29419e6f151aef99314970a9; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 67b2d35853c2da25a8ca1c4190a5e96d3083c2ac; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< a859f6a8f4234b8ef62862bf7a92f1af5f8cd47a; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 09c0ac18cac206ed1218b1fe6c1a0918e5ea9211; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 8de1584ec4fe0ebea33c273036e7e0a05e65c81d; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 8f0d32004e3a572bb77e6c11c2797c87f8c9703d; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< ec7587eef003cab15a13446d67c3adb88146a150; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< a27d4d0e7de305def8a5098a614053be208d1aa1
- Anyone running Linux 4.11

## Description

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

scsi: qla2xxx: Fix command flush on cable pull

System crash due to command failed to flush back to SCSI layer.

 BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
 PGD 0 P4D 0
 Oops: 0000 \[\#1\] SMP NOPTI
 CPU: 27 PID: 793455 Comm: kworker/u130:6 Kdump: loaded Tainted: G           OE    --------- -  - 4.18.0-372.9.1.el8.x86\_64 \#1
 Hardware name: HPE ProLiant DL360 Gen10/ProLiant DL360 Gen10, BIOS U32 09/03/2021
 Workqueue: nvme-wq nvme\_fc\_connect\_ctrl\_work \[nvme\_fc\]
 RIP: 0010:\_\_wake\_up\_common+0x4c/0x190
 Code: 24 10 4d 85 c9 74 0a 41 f6 01 04 0f 85 9d 00 00 00 48 8b 43 08 48 83 c3 08 4c 8d 48 e8 49 8d 41 18 48 39 c3 0f 84 f0 00 00 00 \<49\> 8b 41 18 89 54 24 08 31 ed 4c 8d 70 e8 45 8b 29 41 f6 c5 04 75
 RSP: 0018:ffff95f3e0cb7cd0 EFLAGS: 00010086
 RAX: 0000000000000000 RBX: ffff8b08d3b26328 RCX: 0000000000000000
 RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffff8b08d3b26320
 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffffffffffe8
 R10: 0000000000000000 R11: ffff95f3e0cb7a60 R12: ffff95f3e0cb7d20
 R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
 FS:  0000000000000000(0000) GS:ffff8b2fdf6c0000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 0000000000000000 CR3: 0000002f1e410002 CR4: 00000000007706e0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 PKRU: 55555554
 Call Trace:
  \_\_wake\_up\_common\_lock+0x7c/0xc0
  qla\_nvme\_ls\_req+0x355/0x4c0 \[qla2xxx\]
 qla2xxx \[0000:12:00.1\]-f084:3: qlt\_free\_session\_done: se\_sess 0000000000000000 / sess ffff8ae1407ca000 from port 21:32:00:02:ac:07:ee:b8 loop\_id 0x02 s\_id 01:02:00 logout 1 keep 0 els\_logo 0
 ? \_\_nvme\_fc\_send\_ls\_req+0x260/0x380 \[nvme\_fc\]
 qla2xxx \[0000:12:00.1\]-207d:3: FCPort 21:32:00:02:ac:07:ee:b8 state transitioned from ONLINE to LOST - portid=010200.
  ? nvme\_fc\_send\_ls\_req.constprop.42+0x1a/0x45 \[nvme\_fc\]
 qla2xxx \[0000:12:00.1\]-2109:3: qla2x00\_schedule\_rport\_del 21320002ac07eeb8. rport ffff8ae598122000 roles 1
 ? nvme\_fc\_connect\_ctrl\_work.cold.63+0x1e3/0xa7d \[nvme\_fc\]
 qla2xxx \[0000:12:00.1\]-f084:3: qlt\_free\_session\_done: se\_sess 0000000000000000 / sess ffff8ae14801e000 from port 21:32:01:02:ad:f7:ee:b8 loop\_id 0x04 s\_id 01:02:01 logout 1 keep 0 els\_logo 0
  ? \_\_switch\_to+0x10c/0x450
 ? process\_one\_work+0x1a7/0x360
 qla2xxx \[0000:12:00.1\]-207d:3: FCPort 21:32:01:02:ad:f7:ee:b8 state transitioned from ONLINE to LOST - portid=010201.
  ? worker\_thread+0x1ce/0x390
  ? create\_worker+0x1a0/0x1a0
 qla2xxx \[0000:12:00.1\]-2109:3: qla2x00\_schedule\_rport\_del 21320102adf7eeb8. rport ffff8ae3b2312800 roles 70
  ? kthread+0x10a/0x120
 qla2xxx \[0000:12:00.1\]-2112:3: qla\_nvme\_unregister\_remote\_port: unregister remoteport on ffff8ae14801e000 21320102adf7eeb8
  ? set\_kthread\_struct+0x40/0x40
 qla2xxx \[0000:12:00.1\]-2110:3: remoteport\_delete of ffff8ae14801e000 21320102adf7eeb8 completed.
  ? ret\_from\_fork+0x1f/0x40
 qla2xxx \[0000:12:00.1\]-f086:3: qlt\_free\_session\_done: waiting for sess ffff8ae14801e000 logout

The system was under memory stress where driver was not able to allocate an
SRB to carry out error recovery of cable pull.  The failure to flush causes
upper layer to start modifying scsi\_cmnd.  When the system frees up some
memory, the subsequent cable pull trigger another command flush. At this
point the driver access a null pointer when attempting to DMA unmap the
SGL.

Add a check to make sure commands are flush back on session tear down to
prevent the null pointer access.

## Affected and fixed versions

- Linux: \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< b73377124f56d2fec154737c2f8d2e839c237d5a; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< d7a68eee87b05d4e29419e6f151aef99314970a9; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 67b2d35853c2da25a8ca1c4190a5e96d3083c2ac; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< a859f6a8f4234b8ef62862bf7a92f1af5f8cd47a; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 09c0ac18cac206ed1218b1fe6c1a0918e5ea9211; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 8de1584ec4fe0ebea33c273036e7e0a05e65c81d; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 8f0d32004e3a572bb77e6c11c2797c87f8c9703d; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< ec7587eef003cab15a13446d67c3adb88146a150; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< a27d4d0e7de305def8a5098a614053be208d1aa1 (cvelist)
- Linux: 4.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-2024-26931. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26931.md
Affected: Linux >= 726b85487067d7f5b23495bc33c484b8517c4074, < b73377124f56d2fec154737c2f8d2e839c237d5a; >= 726b85487067d7f5b23495bc33c484b8517c4074, < d7a68eee87b05d4e29419e6f151aef99314970a9; >= 726b85487067d7f5b23495bc33c484b8517c4074, < 67b2d35853c2da25a8ca1c4190a5e96d3083c2ac; >= 726b85487067d7f5b23495b…
Fixed in: Linux 67b2d35853c2da25a8ca1c4190a5e96d3083c2ac, Linux 09c0ac18cac206ed1218b1fe6c1a0918e5ea9211, Linux 8de1584ec4fe0ebea33c273036e7e0a05e65c81d, Linux 8f0d32004e3a572bb77e6c11c2797c87f8c9703d

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-2024-26931 being exploited?

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

### How serious is CVE-2024-26931?

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

### Which versions are affected by CVE-2024-26931?

Linux \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< b73377124f56d2fec154737c2f8d2e839c237d5a; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< d7a68eee87b05d4e29419e6f151aef99314970a9; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 67b2d35853c2da25a8ca1c4190a5e96d3083c2ac; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< a859f6a8f4234b8ef62862bf7a92f1af5f8cd47a; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 09c0ac18cac206ed1218b1fe6c1a0918e5ea9211; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 8de1584ec4fe0ebea33c273036e7e0a05e65c81d; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< 8f0d32004e3a572bb77e6c11c2797c87f8c9703d; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< ec7587eef003cab15a13446d67c3adb88146a150; \>= 726b85487067d7f5b23495bc33c484b8517c4074, \< a27d4d0e7de305def8a5098a614053be208d1aa1; Linux 4.11.

### Is there a fix for CVE-2024-26931?

Yes. Fixed in Linux 67b2d35853c2da25a8ca1c4190a5e96d3083c2ac, Linux 09c0ac18cac206ed1218b1fe6c1a0918e5ea9211, Linux 8de1584ec4fe0ebea33c273036e7e0a05e65c81d, Linux 8f0d32004e3a572bb77e6c11c2797c87f8c9703d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26931?

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/b73377124f56d2fec154737c2f8d2e839c237d5a>
- patch: <https://git.kernel.org/stable/c/d7a68eee87b05d4e29419e6f151aef99314970a9>
- patch: <https://git.kernel.org/stable/c/67b2d35853c2da25a8ca1c4190a5e96d3083c2ac>
- patch: <https://git.kernel.org/stable/c/a859f6a8f4234b8ef62862bf7a92f1af5f8cd47a>
- patch: <https://git.kernel.org/stable/c/09c0ac18cac206ed1218b1fe6c1a0918e5ea9211>
- patch: <https://git.kernel.org/stable/c/8de1584ec4fe0ebea33c273036e7e0a05e65c81d>
- patch: <https://git.kernel.org/stable/c/8f0d32004e3a572bb77e6c11c2797c87f8c9703d>
- patch: <https://git.kernel.org/stable/c/ec7587eef003cab15a13446d67c3adb88146a150>
- patch: <https://git.kernel.org/stable/c/a27d4d0e7de305def8a5098a614053be208d1aa1>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

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

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