# CVE-2026-97951: scsi: target: iscsi: Fix hang for aborted WRITE_PENDING commands

> An attacker can cause a denial of service by aborting iSCSI write commands, leading to a kernel deadlock in the target worker thread.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 25 Sep 2026
- **Updated:** 19 Oct 2026
- **Also known as:** AZL-110479, BELL-CVE-2026-97951, DEBIAN-CVE-2026-97951, GHSA-gmcj-g64q-4863, UBUNTU-CVE-2026-97951

## What is CVE-2026-97951?

CVE-2026-97951 is a denial of service vulnerability in Linux, published on 25 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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

scsi: target: iscsi: Fix hang for aborted WRITE_PENDING commands

When a LUN_RESET aborts a WRITE command that is in the
TRANSPORT_WRITE_PENDING state, the target core sets CMD_T_ABORTED and
waits for the frontend to finish processing.

If the initiator subsequently sends the remaining dataout PDUs,
__iscsit_check_dataout_hdr() catches the payload, stops the dataout
timer if the sequence is final and finally dumps the data.  However, the
iSCSI target doesn't trigger the completion process for these aborted
commands. Because of this, the abort path hangs indefinitely in
target_put_cmd_and_wait(), leading to a deadlocked target worker thread.

Fix this by explicitly calling target_complete_cmd() when the final
dataout PDU is received for an aborted WRITE command.
target_complete_cmd() detects the CMD_T_ABORTED flag and cleanly routes
the command into target_abort_work, allowing the abort completion to
successfully unblock.

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


## How do I fix CVE-2026-97951?

Apply the vendor's patch.

## Is CVE-2026-97951 being exploited?

There is no known exploitation of CVE-2026-97951 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-97951 and fix it if it is affected.

What it is: CVE-2026-97951 is a denial of service vulnerability in Linux, published on 25 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-97951 in the wild and no public exploit code.

Affected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-97951/ (Markdown: https://insights.sbomify.com/CVE-2026-97951/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-97951
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-97951
- OSV: https://osv.dev/vulnerability/CVE-2026-97951

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-97951/
Summaries are generated and may contain mistakes; the official description above is the record.
