Skip to main content
Menu
CVEs

Linux kernel data corruption via DM partial bio accounting

Affects Linux dm-writecache in pmem mode with an admin-built table on a DAX-synchronous pmem cache device. Fixed by kernel patch 423436c324664aa98dcfca2042832eba3a9c746d and two others.

CVE-2026-138926EUVD-2026-138629GHSA-829C-V38F-759FPublished November 30, 2026, updated

7.1HighCNA
Exploited
No known exploitation
Fix
Vendor patch: 423436c324664aa98dcfca2042832eba3a9c746d, 182b0763365ddf3a7254a6df7a125ebb361499a2, ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51
Who is exposed
Specific setups only

Summary

Written by a model

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.

Who should check

Linux kernel operators running dm-writecache in pmem mode on DAX pmem cache devices, including NVMe-oF targets serving such volumes

“a pmem dm-writecache LV behind nvmet-tcp”

cve.org

What to do

  1. Check whether your setup matches what the bug needs.

    Linux kernel with the dm-writecache target running in pmem mode Admin-built writecache table on a DAX-synchronous pmem cache device
  2. Apply the vendor's patch: 423436c324664aa98dcfca2042832eba3a9c746d, 182b0763365ddf3a7254a6df7a125ebb361499a2, ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-138926 (dm: fix a bug in dm_accept_partial_bio), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-138926 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 6.0
Vendor patches: 423436c324664aa98dcfca2042832eba3a9c746d, 182b0763365ddf3a7254a6df7a125ebb361499a2, ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51 (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=423436c324664aa98dcfca2042832eba3a9c746d). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- Linux kernel with the dm-writecache target running in pmem mode (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=423436c324664aa98dcfca2042832eba3a9c746d)
- Admin-built writecache table on a DAX-synchronous pmem cache device (source: https://www.cve.org/CVERecord?id=CVE-2026-138926)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: network access, low-privilege login, no user action.
CISA KEV: CVE-2026-138926 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138926 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- 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
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=423436c324664aa98dcfca2042832eba3a9c746d
- https://www.cve.org/CVERecord?id=CVE-2026-138926
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-138926
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138926"}.

Affected versions

cve.now Index

35Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure8/25Specific setups only, reachable over the network
  • Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
  • Severity7.1/10CVSS 7.1
  • No patch0/5No signal

What would change the score

  • Would score about 85 if added to CISA KEV
  • Would score about 80 if CISA's SSVC rates exploitation active
  • Would score about 42 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated
  4. Posted on X by cve.now

Evidence 8

Questions about CVE-2026-138926

Is CVE-2026-138926 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

The bug is in the device-mapper code that handles partial bios, where the length of the I/O is not tracked correctly. Reads can return stale contents of previously freed kernel pages as successful data, and in some cache modes writes can be silently dropped while reporting success, causing data corruption.

Source: git.kernel.org, cve.org

Which versions are affected by CVE-2026-138926?

Linux: version 6.0.

Source: cve.now feed data

Am I affected, and how do I check?

The affected setup is the Linux kernel with the dm-writecache target running in pmem mode, using an admin-built writecache table on a DAX-synchronous pmem cache device. The sources do not name specific affected kernel versions. To check a system's setup, look at whether dm-writecache tables are in use (for example with dmsetup table) and whether they select pmem mode.

Source: git.kernel.org, cve.org

How do I fix CVE-2026-138926?

The sources do not name a fixed kernel version. The fix is the upstream kernel commits 423436c324664aa98dcfca2042832eba3a9c746d, 182b0763365ddf3a7254a6df7a125ebb361499a2 and ae3cf25c6fbed9ad71d5cdb5409d0f5f9bdd9d51, so apply these patches or move to a kernel release that includes them.

Source: git.kernel.org, cve.org

No corrections so far. Something wrong on this page? Report an error.