Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-55642

MEDIUM 5.5EPSS 7%

block: Prevent potential deadlocks in zone write plug error recovery

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

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

Vulnerability facts

Affected
Linux >= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, < 7fa80134cf266325fa61139320091001c9b3c477; >= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, < fe0418eb9bd69a19a948b297c8de815e05f3cde1; Linux 6.10
Fixed in
Linux 7fa80134cf266325fa61139320091001c9b3c477
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.21% chance of exploitation in 30 days (percentile 7, 2026-11-26)
CWE
CWE-667
Published
Modified

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

Package / productAffectedFixedSource
Linux>= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, < 7fa80134cf266325fa61139320091001c9b3c477; >= dd291d77cc90eb6a86e9860ba8e6e38eebd57d12, < fe0418eb9bd69a19a948b297c8de815e05f3cde1—cvelist
Linux6.10—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors