CVE-2026-143029: dm: fix infinite loop in dm_blk_do_report_zones()
In the Linux kernel, the following vulnerability has been resolved:
dm: fix infinite loop in dmblkdoreportzones()
If the device underlying a zoned target is removed, its capacity is set to 0 and blkdevreportzones() returns 0 without reporting any zones. The mapped device keeps its old capacity, so args->zoneidx and args->nextsector never advance and dmblkdoreportzones() loops forever. On non-preemptible kernels this causes soft lockups and RCU stalls.
The following sequence of commands triggers the hang:
modprobe scsidebug zbc=managed devsizemb=1024 zonesizemb=64 udevadm settle echo '0 2097152 linear /dev/sda 0' | dmsetup create lin echo 1 > /sys/block/sda/device/delete blkzone report -o 0 -c 1 /dev/mapper/lin
Fix this by returning -EIO when a target reports no zones. The target always maps args->nextsector, so a zero return means the underlying device no longer covers that sector.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In dm_blk_do_report_zones(), return -EIO when a target reports no zones.
Event History
Frequently Asked Questions
Which systems are exposed to the hang?
Systems using a device-mapper target backed by a zoned device are exposed when the underlying device is removed while the mapped device retains its previous capacity. A zone-report operation against the mapped device can then loop indefinitely.
What does an attacker or triggering process need to do?
The triggering condition requires removal of the underlying zoned device followed by a zone report on the device-mapper mapping. The reported example uses blkzone report against the mapped device after deleting the backing SCSI device.
How can administrators recognize that this issue is occurring?
Affected systems may hang during zone reporting on a device-mapper device after its backing device has been removed. Non-preemptible kernels can show soft lockups and RCU stalls because the reporting loop does not make progress.
What can be done if the fix cannot be applied immediately?
Avoid running zone-report operations on device-mapper mappings whose underlying zoned device has been removed. Treat a removed backing device as unavailable and avoid retaining or querying the stale mapping until it is repaired or removed.
What behavior changes after the fix?
When a target reports no zones for the requested sector, the operation returns an EIO error instead of continuing the loop. This prevents the non-progressing zone-report loop when the backing device no longer covers that sector.