Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98161 Overview
CVE-2026-98161 is a Linux kernel vulnerability in the nvdimm persistent memory (pmem) driver. The flaw resides in pmem_submit_bio(), which records a REQ_PREFLUSH error but continues to copy bio data and can later overwrite that error with a successful REQ_FUA flush. The result is that data writes execute after a failed preflush, and the block I/O (bio) can complete successfully despite the failed ordering barrier. This breaks write-ordering guarantees relied on by filesystems and databases layered on top of pmem devices, risking data integrity on crash or power loss.
Critical Impact
Write-ordering barriers can silently fail on nvdimm pmem devices, allowing data writes to complete despite a failed preflush and potentially causing filesystem or database corruption.
Affected Products
- Linux kernel nvdimm subsystem (pmem driver)
- Systems exposing persistent memory block devices through pmem_submit_bio()
- Workloads using filesystems or databases that rely on REQ_PREFLUSH/REQ_FUA ordering on pmem
Discovery Timeline
- 2026-09-25 - CVE-2026-98161 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98161
Vulnerability Analysis
The Linux block layer uses REQ_PREFLUSH to force prior writes to stable storage before new data is written, and REQ_FUA to ensure the current write is durable before completion. The pmem driver violates this contract. When pmem_submit_bio() issues the preflush and the flush fails, the driver stores the error but proceeds to copy the bio payload into persistent memory. It then chains an asynchronous REQ_FUA flush. If that chained flush succeeds, its status overwrites the earlier preflush error, and the parent bio completes with success.
Upper layers interpret the successful completion as proof that both the ordering barrier and the data write were durable. In reality, the preflush failed, so earlier in-flight writes may not have reached stable media before the new write landed. On crash or power loss, this can leave filesystems and journaled databases in an inconsistent state that their recovery logic assumes is impossible.
Root Cause
The root cause is incorrect error propagation and ordering in pmem_submit_bio(). The function treats the preflush as advisory, continuing with the data copy regardless of its outcome, and allows a later asynchronous completion to clobber the earlier error status.
Attack Vector
This is a data-integrity defect rather than a direct remote exploitation primitive. Triggering it requires a REQ_PREFLUSH failure on a pmem device, which typically arises from hardware fault conditions or injected I/O errors. There are no known public exploits, and the issue is not listed in the CISA Known Exploited Vulnerabilities catalog.
Technical details and the kernel fix are published in the upstream patches 72561ca, 770a90c, and c644a2f. See the Kernel Patch 72561ca, Kernel Patch 770a90c, and Kernel Patch c644a2f.
Detection Methods for CVE-2026-98161
Indicators of Compromise
- Filesystem consistency check (fsck) errors or journal replay anomalies on pmem-backed volumes after an unclean shutdown.
- Database engines reporting torn writes, missing commits, or write-ahead log corruption on persistent memory devices.
- Kernel log entries indicating flush errors on /dev/pmem* devices followed by successful bio completions.
Detection Strategies
- Inventory kernels running the vulnerable nvdimm pmem driver and compare build identifiers against the fixed commits 72561ca, 770a90c, and c644a2f.
- Monitor dmesg and systemd journal output for REQ_PREFLUSH or block flush errors associated with pmem block devices.
- Correlate storage error telemetry with application-level integrity checks on workloads using pmem as a durable medium.
Monitoring Recommendations
- Centralize kernel and block-layer logs from pmem-equipped hosts for retention and analysis.
- Alert on repeated flush failures or I/O errors from pmem* devices, which may precede silent data divergence.
- Track kernel package versions across the fleet to confirm patched builds are deployed on affected hosts.
How to Mitigate CVE-2026-98161
Immediate Actions Required
- Apply the upstream kernel fix on all hosts exposing nvdimm pmem block devices.
- Prioritize patching on systems where pmem backs filesystems, journals, or database storage with durability requirements.
- Validate backups and run filesystem consistency checks on pmem volumes before and after patching.
Patch Information
The fix runs the REQ_PREFLUSH flush synchronously before touching the bio data and completes the bio with the flush error if it fails. Asynchronous flush chaining is retained only for REQ_FUA, where the data copy has already completed and the parent bio can safely wait on the chained flush bio. Patches are available in kernel commits 72561ca1ab96, 770a90c21272, and c644a2f8fef5. Rebuild or install a distribution kernel package that incorporates these commits and reboot affected hosts.
Workarounds
- Where immediate patching is not possible, avoid using pmem block devices as the durable backing store for crash-sensitive workloads.
- Increase application-level write verification and checksumming on pmem-backed data paths.
- Schedule planned maintenance windows to apply the patched kernel rather than relying on long-term operational workarounds.
# Verify running kernel and pmem device presence before planning the patch rollout
uname -r
ls -l /dev/pmem* 2>/dev/null || echo "No pmem devices present"
dmesg | grep -iE 'pmem|preflush|flush error'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

