# CVE-2026-99207: scsi: target: Disable interrupts while holding delayed\_cmd\_lock

> 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.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-28T10:36:00.728Z
- **Modified:** 2026-10-28T11:17:42.033Z

## Who should check

- Anyone running Linux \>= 06933066d88a3093953b062922c016a67d2cdbf8, \< 7563650522732041ccfb2e4593878b5ea98d498c; \>= 06933066d88a3093953b062922c016a67d2cdbf8, \< 04a67a8b1a4460345d22fe75d93430cbf7e651d7
- Anyone running Linux 7.1

## Description

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

scsi: target: Disable interrupts while holding delayed\_cmd\_lock

target\_do\_delayed\_work() takes dev-\>delayed\_cmd\_lock with a plain
spin\_lock(). It runs from system\_percpu\_wq, so interrupts stay enabled
while the lock is held. Every other acquisition of that lock uses
spin\_lock\_irqsave(): target\_handle\_task\_attr() and
transport\_complete\_ordered\_sync() in target\_core\_transport.c, and
target\_non\_ordered\_release() in target\_core\_device.c.

That was safe while every caller of transport\_complete\_task\_attr() ran
in process context: target\_complete\_ok\_work() from target\_completion\_wq,
transport\_complete\_qf() from dev-\>qf\_work\_queue, and
transport\_generic\_request\_failure() from the submit and execute paths.

Since commit 06933066d88a ("scsi: target: Add support for completing
commands from backend context") that is no longer true. With
complete\_type=1 on a fabric that sets direct\_compl\_supp,
target\_complete() runs target\_complete\_ok\_work() inline in the backend's
completion context, which target\_complete\_cmd\_with\_sense() documents as
"May be called from interrupt context". For iblock that is the bio
end\_io.

target\_complete\_ok\_work() starts with transport\_complete\_task\_attr(),
which takes delayed\_cmd\_lock in two ways:

 - Every ORDERED command is put on dev-\>delayed\_cmd\_list by
   target\_handle\_task\_attr() and dispatched from there by
   target\_do\_delayed\_work(), which marks it SCF\_TASK\_ORDERED\_SYNC.  Its
   completion therefore goes through transport\_complete\_ordered\_sync().

 - A SIMPLE command that completes while an ORDERED command is pending
   drops the last reference to the killed dev-\>non\_ordered, and
   percpu\_ref\_put() then runs target\_non\_ordered\_release() in the
   completing context.

Both take the lock and, if commands are waiting, call
schedule\_work(&dev-\>delayed\_cmd\_work), which queues on system\_percpu\_wq,
i.e. on the CPU that took the completion. Further completions for the
same queue are typically delivered there too, so one arriving while the
work holds the lock spins on it forever.

Reaching this needs complete\_type=1, which is not the default
(vhost-scsi, the only fabric with direct\_compl\_supp, defaults to
TARGET\_QUEUE\_COMPL), a backend whose I/O completes from interrupt
context, and ORDERED commands from the initiator. Linux virtio\_scsi
guests send only VIRTIO\_SCSI\_S\_SIMPLE and never take the ordered path;
any guest that uses the ORDERED task attribute, which vhost-scsi
accepts, does.

target\_do\_delayed\_work() is a work item and always runs in process
context, so spin\_lock\_irq() is sufficient.

Found by inspection; no runtime report. A single ORDERED command goes
through both acquisitions, so with CONFIG\_PROVE\_LOCKING the first one
completed through direct completion should produce an inconsistent lock
state report on delayed\_cmd\_lock (hardirq or softirq, depending on where
the backend completes).

## Affected and fixed versions

- Linux: \>= 06933066d88a3093953b062922c016a67d2cdbf8, \< 7563650522732041ccfb2e4593878b5ea98d498c; \>= 06933066d88a3093953b062922c016a67d2cdbf8, \< 04a67a8b1a4460345d22fe75d93430cbf7e651d7 (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 04a67a8b1a4460345d22fe75d93430cbf7e651d7 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-99207. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99207.md
Affected: Linux >= 06933066d88a3093953b062922c016a67d2cdbf8, < 7563650522732041ccfb2e4593878b5ea98d498c; >= 06933066d88a3093953b062922c016a67d2cdbf8, < 04a67a8b1a4460345d22fe75d93430cbf7e651d7; Linux 7.1
Fixed in: Linux 7563650522732041ccfb2e4593878b5ea98d498c, Linux 04a67a8b1a4460345d22fe75d93430cbf7e651d7

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

There is no confirmed exploitation: CVE-2026-99207 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-26).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 06933066d88a3093953b062922c016a67d2cdbf8, \< 7563650522732041ccfb2e4593878b5ea98d498c; \>= 06933066d88a3093953b062922c016a67d2cdbf8, \< 04a67a8b1a4460345d22fe75d93430cbf7e651d7; Linux 7.1.

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

Yes. Fixed in Linux 7563650522732041ccfb2e4593878b5ea98d498c, Linux 04a67a8b1a4460345d22fe75d93430cbf7e651d7. Upgrade Linux to 04a67a8b1a4460345d22fe75d93430cbf7e651d7 or later.

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

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/7563650522732041ccfb2e4593878b5ea98d498c>
- other: <https://git.kernel.org/stable/c/04a67a8b1a4460345d22fe75d93430cbf7e651d7>

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

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