dm: fix a bug in dm_accept_partial_bio
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
dm: fix a bug in dm_accept_partial_bio
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 dm_accept_partial_bio - it set tio->io->sectors = n_sectors;. This is incorrect, according to the diagram in the source code at dm_accept_partial_bio, 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 bio_advance and then calls dm_accept_partial_bio (so, the region 1 is non-empty). All the other targets call dm_accept_partial_bio with region 1 empty, so bug went unnoticed for so long.
| Product | Versions |
|---|---|
| Linux Linux | 8b211aaccb915bbf4f4a68f1910c4de701df393b to before 423436c324664aa98dcfca2042832eba3a9c746d Affected8b211aaccb915bbf4f4a68f1910c4de701df393b to before 182b0763365ddf3a7254a6df7a125ebb361499a2 Affected8b211aaccb915bbf4f4a68f1910c4de701df393b to before ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51 Affected8b211aaccb915bbf4f4a68f1910c4de701df393b to before affc1ebd65f517897f1c092fb87f2c42f0fc41f5 Affected8b211aaccb915bbf4f4a68f1910c4de701df393b to before 16802c8e3d7f63833f8bb96d159450544c529e50 Affected8b211aaccb915bbf4f4a68f1910c4de701df393b to before a279804752e6c767b7f9ecbb32a15bdfd2b80aea Affected |
| Linux Linux | 6.0 Affectedbefore 6.0 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/423436c324664aa98dcfca2042832eba3a9c746d
- https://git.kernel.org/stable/c/182b0763365ddf3a7254a6df7a125ebb361499a2
- https://git.kernel.org/stable/c/ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51
- https://git.kernel.org/stable/c/affc1ebd65f517897f1c092fb87f2c42f0fc41f5
- https://git.kernel.org/stable/c/16802c8e3d7f63833f8bb96d159450544c529e50
- https://git.kernel.org/stable/c/a279804752e6c767b7f9ecbb32a15bdfd2b80aea
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.