CVE-2026-143010: dm-thin: fix data corruption if discard races with regular I/O
In the Linux kernel, the following vulnerability has been resolved:
dm-thin: fix data corruption if discard races with regular I/O
In the function breakupdiscardbio, if a discard hits the same block as regular I/O, it was intended to skip the discard for the affected range. However, the skip code only advances "databegin", it doesn't advance "virtbegin". So, the databegin and virtbegin variables become unsynchronized.
processprepareddiscardpassdownpt1 calculates "dataend = m->datablock + (m->virtend - m->virtbegin);" - if m->datablock is incremented and m->virtbegin isn't, it will overshoot the intended discard range.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel device-mapper thin-provisioning target (dm-thin) are exposed when discard operations can race with regular I/O on the same block. The issue concerns discard passdown handling in dm-thin.
What conditions are required for corruption to occur?
A discard must hit the same block as regular I/O. Under that race condition, dm-thin can incorrectly calculate the discard range and discard blocks beyond the intended range, causing data corruption.
How can I tell whether this issue may have affected my data?
The provided information identifies a race that can cause unintended discard ranges, but it does not provide a reliable detection method or specific indicators of prior corruption. Review whether affected dm-thin volumes experienced concurrent discard and regular I/O activity.