{"id":"CVE-2026-138926","aliases":["CVE-2026-138926"],"related":[],"kind":"vulnerability","state":"published","title":"dm: fix a bug in dm_accept_partial_bio","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm: fix a bug in dm_accept_partial_bio\n\ndm-writecache doesn't work in pmem mode - mkfs.ext4 and the following\nfsck.ext4 fail with data corruption reported.\n\nThe commit 7dd76d1feec7 (\"dm: improve bio splitting and associated IO\naccounting\") introduced a latent bug in dm_accept_partial_bio - it set\ntio->io->sectors = n_sectors;. This is incorrect, according to the\ndiagram in the source code at dm_accept_partial_bio, it should be the\nsize of regions 1+2, not the region 2 alone.\n\nThe latent bug become real bug with the commit 8b211aaccb91 (\"dm: add two\nstage requeue mechanism\").\n\ndm-writecache in pmem mode is the only target that actually advances bio\nwith bio_advance and then calls dm_accept_partial_bio (so, the region 1\nis non-empty). All the other targets call dm_accept_partial_bio with\nregion 1 empty, so bug went unnoticed for so long.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm: fix a bug in dm_accept_partial_bio\n\ndm-writecache doesn't work in pmem mode - mkfs.ext4 and the following\nfsck.ext4 fail with data corruption reported.\n\nThe commit 7dd76d1feec7 (\"dm: improve bio splitting and associated IO\naccounting\") introduced a latent bug in dm_accept_partial_bio - it set\ntio->io->sectors = n_sectors;. This is incorrect, according to the\ndiagram in the source code at dm_accept_partial_bio, it should be the\nsize of regions 1+2, not the region 2 alone.\n\nThe latent bug become real bug with the commit 8b211aaccb91 (\"dm: add two\nstage requeue mechanism\").\n\ndm-writecache in pmem mode is the only target that actually advances bio\nwith bio_advance and then calls dm_accept_partial_bio (so, the region 1\nis non-empty). All the other targets call dm_accept_partial_bio with\nregion 1 empty, so bug went unnoticed for so long.","source":"cvelist"}],"published":"2026-11-30T13:26:16.203Z","modified":"2026-12-01T06:17:31.450Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8b211aaccb915bbf4f4a68f1910c4de701df393b","fixed":"423436c324664aa98dcfca2042832eba3a9c746d","status":"affected"},{"type":"git","introduced":"8b211aaccb915bbf4f4a68f1910c4de701df393b","fixed":"182b0763365ddf3a7254a6df7a125ebb361499a2","status":"affected"},{"type":"git","introduced":"8b211aaccb915bbf4f4a68f1910c4de701df393b","fixed":"ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51","status":"affected"},{"type":"git","introduced":"8b211aaccb915bbf4f4a68f1910c4de701df393b","fixed":"affc1ebd65f517897f1c092fb87f2c42f0fc41f5","status":"affected"},{"type":"git","introduced":"8b211aaccb915bbf4f4a68f1910c4de701df393b","fixed":"16802c8e3d7f63833f8bb96d159450544c529e50","status":"affected"},{"type":"git","introduced":"8b211aaccb915bbf4f4a68f1910c4de701df393b","fixed":"a279804752e6c767b7f9ecbb32a15bdfd2b80aea","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/423436c324664aa98dcfca2042832eba3a9c746d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/182b0763365ddf3a7254a6df7a125ebb361499a2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/affc1ebd65f517897f1c092fb87f2c42f0fc41f5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/16802c8e3d7f63833f8bb96d159450544c529e50","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a279804752e6c767b7f9ecbb32a15bdfd2b80aea","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138926","url":"https://www.cve.org/CVERecord?id=CVE-2026-138926","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:44.878Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138926","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138926","licence":"Public domain","modified":"2026-12-01T06:17:31.450Z"}],"updatedAt":"2026-12-01T06:32:17.257Z","epss":{"score":0.00411,"percentile":0.37409,"date":"2026-12-01T12:00:22.000Z"}}