# CVE-2024-55642: block: Prevent potential deadlocks in zone write plug error recovery

> 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, CNA) `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.21% (percentile 7, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-01-11T12:29:56.848Z
- **Modified:** 2026-06-17T08:11:20.637Z

## Who should check

- Anyone running Linux \>= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, \< 7fa80134cf266325fa61139320091001c9b3c477; \>= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, \< fe0418eb9bd69a19a948b297c8de815e05f3cde1
- Anyone running Linux 6.10

## Description

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

block: Prevent potential deadlocks in zone write plug error recovery

Zone write plugging for handling writes to zones of a zoned block
device always execute a zone report whenever a write BIO to a zone
fails. The intent of this is to ensure that the tracking of a zone write
pointer is always correct to ensure that the alignment to a zone write
pointer of write BIOs can be checked on submission and that we can
always correctly emulate zone append operations using regular write
BIOs.

However, this error recovery scheme introduces a potential deadlock if a
device queue freeze is initiated while BIOs are still plugged in a zone
write plug and one of these write operation fails. In such case, the
disk zone write plug error recovery work is scheduled and executes a
report zone. This in turn can result in a request allocation in the
underlying driver to issue the report zones command to the device. But
with the device queue freeze already started, this allocation will
block, preventing the report zone execution and the continuation of the
processing of the plugged BIOs. As plugged BIOs hold a queue usage
reference, the queue freeze itself will never complete, resulting in a
deadlock.

Avoid this problem by completely removing from the zone write plugging
code the use of report zones operations after a failed write operation,
instead relying on the device user to either execute a report zones,
reset the zone, finish the zone, or give up writing to the device (which
is a fairly common pattern for file systems which degrade to read-only
after write failures). This is not an unreasonnable requirement as all
well-behaved applications, FSes and device mapper already use report
zones to recover from write errors whenever possible by comparing the
current position of a zone write pointer with what their assumption
about the position is.

The changes to remove the automatic error recovery are as follows:
 - Completely remove the error recovery work and its associated
   resources (zone write plug list head, disk error list, and disk
   zone\_wplugs\_work work struct). This also removes the functions
   disk\_zone\_wplug\_set\_error() and disk\_zone\_wplug\_clear\_error().

 - Change the BLK\_ZONE\_WPLUG\_ERROR zone write plug flag into
   BLK\_ZONE\_WPLUG\_NEED\_WP\_UPDATE. This new flag is set for a zone write
   plug whenever a write opration targetting the zone of the zone write
   plug fails. This flag indicates that the zone write pointer offset is
   not reliable and that it must be updated when the next report zone,
   reset zone, finish zone or disk revalidation is executed.

 - Modify blk\_zone\_write\_plug\_bio\_endio() to set the
   BLK\_ZONE\_WPLUG\_NEED\_WP\_UPDATE flag for the target zone of a failed
   write BIO.

 - Modify the function disk\_zone\_wplug\_set\_wp\_offset() to clear this
   new flag, thus implementing recovery of a correct write pointer
   offset with the reset (all) zone and finish zone operations.

 - Modify blkdev\_report\_zones() to always use the disk\_report\_zones\_cb()
   callback so that disk\_zone\_wplug\_sync\_wp\_offset() can be called for
   any zone marked with the BLK\_ZONE\_WPLUG\_NEED\_WP\_UPDATE flag.
   This implements recovery of a correct write pointer offset for zone
   write plugs marked with BLK\_ZONE\_WPLUG\_NEED\_WP\_UPDATE and within
   the range of the report zones operation executed by the user.

 - Modify blk\_revalidate\_seq\_zone() to call
   disk\_zone\_wplug\_sync\_wp\_offset() for all sequential write required
   zones when a zoned block device is revalidated, thus always resolving
   any inconsistency between the write pointer offset of zone write
   plugs and the actual write pointer position of sequential zones.

## Affected and fixed versions

- Linux: \>= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, \< 7fa80134cf266325fa61139320091001c9b3c477; \>= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, \< fe0418eb9bd69a19a948b297c8de815e05f3cde1 (cvelist)
- Linux: 6.10 (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-55642. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-55642.md
Affected: Linux >= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, < 7fa80134cf266325fa61139320091001c9b3c477; >= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, < fe0418eb9bd69a19a948b297c8de815e05f3cde1; Linux 6.10
Fixed in: Linux 7fa80134cf266325fa61139320091001c9b3c477

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

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

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

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

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

Linux \>= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, \< 7fa80134cf266325fa61139320091001c9b3c477; \>= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, \< fe0418eb9bd69a19a948b297c8de815e05f3cde1; Linux 6.10.

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

Yes. Fixed in Linux 7fa80134cf266325fa61139320091001c9b3c477. No fix listed yet: follow the vendor advisory.

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

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/7fa80134cf266325fa61139320091001c9b3c477>
- patch: <https://git.kernel.org/stable/c/fe0418eb9bd69a19a948b297c8de815e05f3cde1>

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

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