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

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-11-30T13:26:16.203Z
- Modified: 2026-12-01T06:17:31.450Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8b211aaccb915bbf4f4a68f1910c4de701df393b before 423436c324664aa98dcfca2042832eba3a9c746d; from 8b211aaccb915bbf4f4a68f1910c4de701df393b before 182b0763365ddf3a7254a6df7a125ebb361499a2; from 8b211aaccb915bbf4f4a68f1910c4de701df393b before ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51; from 8b211aaccb915bbf4f4a68f1910c4de701df393b before affc1ebd65f517897f1c092fb87f2c42f0fc41f5; from 8b211aaccb915bbf4f4a68f1910c4de701df393b before 16802c8e3d7f63833f8bb96d159450544c529e50; from 8b211aaccb915bbf4f4a68f1910c4de701df393b before a279804752e6c767b7f9ecbb32a15bdfd2b80aea; 6.0 (not affected: before 6.0; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-138926](https://www.cve.org/CVERecord?id=CVE-2026-138926), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-138926](https://nvd.nist.gov/vuln/detail/CVE-2026-138926), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-138926 · Whole record: https://cve.day/CVE-2026-138926.json · Rebuilt by cve.day 2026-12-01T06:32:17.257Z
