CVE-2026-138926: dm: fix a bug in dm_accept_partial_bio

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

dm: fix a bug in dmacceptpartialbio

dm-writecache doesn't work in pmem mode - mkfs.ext4 and the following fsck.ext4 fail with data corruption reported.

The commit 7dd76d1feec7 ("dm: improve bio splitting and associated IO accounting") introduced a latent bug in dmacceptpartialbio - it set tio->io->sectors = nsectors;. This is incorrect, according to the diagram in the source code at dmacceptpartialbio, it should be the size of regions 1+2, not the region 2 alone.

The latent bug become real bug with the commit 8b211aaccb91 ("dm: add two stage requeue mechanism").

dm-writecache in pmem mode is the only target that actually advances bio with bioadvance and then calls dmacceptpartialbio (so, the region 1 is non-empty). All the other targets call dmacceptpartialbio with region 1 empty, so bug went unnoticed for so long.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:26 PM
Data Sourced
via MITRE·01:26 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203