CVE-2026-143025: dm-pcache: do not advance dirty_tail after backing flush failure
In the Linux kernel, the following vulnerability has been resolved:
dm-pcache: do not advance dirtytail after backing flush failure
After all writeback bios for a kset complete, writebackctxend() flushes the backing device and then advances the persistent dirtytail. However, backingdevflush() discards the error returned by blkdevissueflush(), so dirtytail is advanced even when the written data is not known to be durable.
dirtytail points to the first kset that still requires writeback. Advancing it causes recovery to treat the preceding kset as clean and allows its cache copy to eventually be reclaimed by garbage collection. If the backing device flush failed, a subsequent power failure may therefore result in data loss.
Make backingdevflush() return the flush status and handle a flush failure like a writeback I/O failure. Leave dirtytail unchanged so that the same kset will be retried.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In dm-pcache, make backing_dev_flush() return the flush status and handle a backing-device flush failure like a writeback I/O failure: leave dirty_tail unchanged so the same kset is retried.
Event History
Frequently Asked Questions
Which systems are exposed to data loss from this issue?
Systems using the Linux kernel's dm-pcache device-mapper cache are exposed when a backing-device flush fails. Data loss requires a subsequent power failure after the failed flush causes dirty data to be incorrectly treated as clean.
What condition is needed for exploitation or impact?
This is a failure-handling issue rather than an attacker-driven condition described in the available data. The backing device must fail a flush after writeback I/O completes, and power must then fail before the data can be safely written again.
What happens if the flush failure is handled correctly?
The persistent dirty_tail remains unchanged, so the affected kset continues to require writeback and will be retried. This prevents recovery from treating data as durable when the backing-device flush did not succeed.