Description
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 break_up_discard_bio, 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 "data_begin", it doesn't advance "virt_begin". So, the data_begin and virt_begin variables become unsynchronized. process_prepared_discard_passdown_pt1 calculates "data_end = m->data_block + (m->virt_end - m->virt_begin);" - if m->data_block is incremented and m->virt_begin isn't, it will overshoot the intended discard range.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e2dd8aca2d76f937f1f08d03041684f3532e9df4 to < f1341f858a055e7e2f512d1b1ddface0b3bd6898affectede2dd8aca2d76f937f1f08d03041684f3532e9df4 to < 29398176771782e9217a4b0cdaac200560d65d00affectede2dd8aca2d76f937f1f08d03041684f3532e9df4 to < 18bb782c7c10536360042eeba37da9e9268e82dfaffectede2dd8aca2d76f937f1f08d03041684f3532e9df4 to < 62ee9c09366cad69410330087d990e469dd92314affected
Linux Linux
Default version status: affected
6.4affected0 to < 6.4unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected