CVE-2026-138926
Received Received - Intake

dm-writecache Partial Bio Accounting Bug in Linux Kernel

Vulnerability report for CVE-2026-138926, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-30

Last updated on: 2026-11-30

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-30
Last Modified
2026-11-30
Generated
2026-12-01
AI Q&A
2026-12-01
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in the Linux kernel's device mapper (dm) component. It involves a bug in the dm_accept_partial_bio function where incorrect sector accounting occurs. Specifically, it sets tio->io->sectors to n_sectors instead of the combined size of regions 1 and 2. This bug became active with a later commit and affects dm-writecache in pmem mode, causing mkfs.ext4 and fsck.ext4 to fail with data corruption.

Impact Analysis

If you use dm-writecache in pmem mode on a Linux system with this vulnerable kernel, you may experience filesystem corruption during operations like mkfs.ext4 or fsck.ext4. This could lead to data loss or system instability.

Mitigation Strategies

Update the Linux kernel to a version that includes the fix for this vulnerability. Check your distribution's security advisories for the patched kernel version and apply it immediately.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138926. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...