# CVE-2026-23355: ata: libata: cancel pending work after clearing deferred\_qc

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.19% (percentile 5, 2026-11-26)
- **Published:** 2026-03-25T10:27:39.514Z
- **Modified:** 2026-10-30T13:18:36.997Z

## Who should check

- Anyone running Linux \>= ce22aaed011206fed9cbd8c9c2d44718607f31ee, \< 0d12453818c35e1ded84633152c6b05002ae48b9; \>= 888cd7e40adb2ef4af1b4d3b6e2e83ad409ae8c2, \< 6c5e8f16b5e8e614e829aaf38619bdd79107bb0a; \>= 5d61a38a60e62750526d94663b69b7ac5c7f07a5, \< 58e658763ba2aa9168d8516b98a6314d7461a53e; \>= 0ea84089dbf62a92dc7889c79e6b18fc89260808, \< aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9; c475bfce918dc413c4d59b97710b94b1c955ea5f; 33abac5b5a5303ba2c66d89e063a806033be07fc; 21e0d7a15a789e99be89231dae25cb6ffc482a7c; \>= 6.1.191, \< 6.2
- Anyone running Linux \>= 6.18.14, \< 6.18.18; \>= 6.19.4, \< 6.19.7

## Description

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

ata: libata: cancel pending work after clearing deferred\_qc

Syzbot reported a WARN\_ON() in ata\_scsi\_deferred\_qc\_work(), caused by
ap-\>ops-\>qc\_defer() returning non-zero before issuing the deferred qc.

ata\_scsi\_schedule\_deferred\_qc() is called during each command completion.
This function will check if there is a deferred QC, and if
ap-\>ops-\>qc\_defer() returns zero, meaning that it is possible to queue the
deferred qc at this time (without being deferred), then it will queue the
work which will issue the deferred qc.

Once the work get to run, which can potentially be a very long time after
the work was scheduled, there is a WARN\_ON() if ap-\>ops-\>qc\_defer() returns
non-zero.

While we hold the ap-\>lock both when assigning and clearing deferred\_qc,
and the work itself holds the ap-\>lock, the code currently does not cancel
the work after clearing the deferred qc.

This means that the following scenario can happen:
1) One or several NCQ commands are queued.
2) A non-NCQ command is queued, gets stored in ap-\>deferred\_qc.
3) Last NCQ command gets completed, work is queued to issue the deferred
   qc.
4) Timeout or error happens, ap-\>deferred\_qc is cleared. The queued work is
   currently NOT canceled.
5) Port is reset.
6) One or several NCQ commands are queued.
7) A non-NCQ command is queued, gets stored in ap-\>deferred\_qc.
8) Work is finally run. Yet at this time, there is still NCQ commands in
   flight.

The work in 8) really belongs to the non-NCQ command in 2), not to the
non-NCQ command in 7). The reason why the work is executed when it is not
supposed to, is because it was never canceled when ap-\>deferred\_qc was
cleared in 4). Thus, ensure that we always cancel the work after clearing
ap-\>deferred\_qc.

Another potential fix would have been to let ata\_scsi\_deferred\_qc\_work() do
nothing if ap-\>ops-\>qc\_defer() returns non-zero. However, canceling the
work when clearing ap-\>deferred\_qc seems slightly more logical, as we hold
the ap-\>lock when clearing ap-\>deferred\_qc, so we know that the work cannot
be holding the lock. (The function could be waiting for the lock, but that
is okay since it will do nothing if ap-\>deferred\_qc is not set.)

## Affected and fixed versions

- Linux: \>= ce22aaed011206fed9cbd8c9c2d44718607f31ee, \< 0d12453818c35e1ded84633152c6b05002ae48b9; \>= 888cd7e40adb2ef4af1b4d3b6e2e83ad409ae8c2, \< 6c5e8f16b5e8e614e829aaf38619bdd79107bb0a; \>= 5d61a38a60e62750526d94663b69b7ac5c7f07a5, \< 58e658763ba2aa9168d8516b98a6314d7461a53e; \>= 0ea84089dbf62a92dc7889c79e6b18fc89260808, \< aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9; c475bfce918dc413c4d59b97710b94b1c955ea5f; 33abac5b5a5303ba2c66d89e063a806033be07fc; 21e0d7a15a789e99be89231dae25cb6ffc482a7c; \>= 6.1.191, \< 6.2 (cvelist)
- Linux: \>= 6.18.14, \< 6.18.18; \>= 6.19.4, \< 6.19.7 (cvelist)

## Mitigation

- Upgrade Linux to 6.2 or later.
- Upgrade Linux to 6.19.7 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-23355. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23355.md
Affected: Linux >= ce22aaed011206fed9cbd8c9c2d44718607f31ee, < 0d12453818c35e1ded84633152c6b05002ae48b9; >= 888cd7e40adb2ef4af1b4d3b6e2e83ad409ae8c2, < 6c5e8f16b5e8e614e829aaf38619bdd79107bb0a; >= 5d61a38a60e62750526d94663b69b7ac5c7f07a5, < 58e658763ba2aa9168d8516b98a6314d7461a53e; >= 0ea84089dbf62a92dc7889c…
Fixed in: Linux 0d12453818c35e1ded84633152c6b05002ae48b9, Linux 6c5e8f16b5e8e614e829aaf38619bdd79107bb0a, Linux 58e658763ba2aa9168d8516b98a6314d7461a53e, Linux 6.2, Linux 6.18.18, Linux 6.19.7

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= ce22aaed011206fed9cbd8c9c2d44718607f31ee, \< 0d12453818c35e1ded84633152c6b05002ae48b9; \>= 888cd7e40adb2ef4af1b4d3b6e2e83ad409ae8c2, \< 6c5e8f16b5e8e614e829aaf38619bdd79107bb0a; \>= 5d61a38a60e62750526d94663b69b7ac5c7f07a5, \< 58e658763ba2aa9168d8516b98a6314d7461a53e; \>= 0ea84089dbf62a92dc7889c79e6b18fc89260808, \< aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9; c475bfce918dc413c4d59b97710b94b1c955ea5f; 33abac5b5a5303ba2c66d89e063a806033be07fc; 21e0d7a15a789e99be89231dae25cb6ffc482a7c; \>= 6.1.191, \< 6.2; Linux \>= 6.18.14, \< 6.18.18; \>= 6.19.4, \< 6.19.7.

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

Yes. Fixed in Linux 0d12453818c35e1ded84633152c6b05002ae48b9, Linux 6c5e8f16b5e8e614e829aaf38619bdd79107bb0a, Linux 58e658763ba2aa9168d8516b98a6314d7461a53e, Linux 6.2, Linux 6.18.18, Linux 6.19.7. Upgrade Linux to 6.2 or later. Upgrade Linux to 6.19.7 or later.

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

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/0d12453818c35e1ded84633152c6b05002ae48b9>
- patch: <https://git.kernel.org/stable/c/6c5e8f16b5e8e614e829aaf38619bdd79107bb0a>
- patch: <https://git.kernel.org/stable/c/58e658763ba2aa9168d8516b98a6314d7461a53e>
- patch: <https://git.kernel.org/stable/c/aac9b27f7c1f2b2cf7f50a9ca633ecbbcaf22af9>

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

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