CVE-2026-138926

Source
https://cve.org/CVERecord?id=CVE-2026-138926
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138926.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138926
Downstream
Published
2026-11-30T13:26:16Z
Modified
2026-12-01T07:00:44Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L CVSS Calculator
Summary
dm: fix a bug in dm_accept_partial_bio
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138926.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8b211aaccb915bbf4f4a68f1910c4de701df393b
Fixed
423436c324664aa98dcfca2042832eba3a9c746d
Fixed
182b0763365ddf3a7254a6df7a125ebb361499a2
Fixed
ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51
Fixed
affc1ebd65f517897f1c092fb87f2c42f0fc41f5
Fixed
16802c8e3d7f63833f8bb96d159450544c529e50
Fixed
a279804752e6c767b7f9ecbb32a15bdfd2b80aea

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138926.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138926.json"