---
id: CVE-2026-98161
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  nvdimm: pmem: keep PREFLUSH before data writes

  pmem_submit_bio() records a REQ_PREFLUSH error, but continues to copy the
  bio data and can later overwrite the error wit…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  nvdimm: pmem: keep PREFLUSH before data writes

  pmem_submit_bio() records a REQ_PREFLUSH error, but continues to copy the
  bio data and can later overwrite the error wit…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-754
  - CWE-390
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.3, < 6.18.52'
  - 'linux_kernel >= 6.19, < 7.2.6'
patched:
  - linux_kernel 7.2.6
published: '2026-09-25'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T11:18:38.640'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98161'
references:
  - url: 'https://git.kernel.org/stable/c/72561ca1ab96f0f0f32737a6171641e05a318538'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/770a90c2127220f0fc194ce909ad4f0842e141cb'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c644a2f8fef5618fcf453c591177700fd07dd024'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d34c30bc994328d9cf6749b2e9a32aabd08fd076'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98161.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-98161'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2541433'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-98161'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98161'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-98161.mbox
  - url: 'https://git.kernel.org/stable/c/22d1f4dcdc9c6d0295c6db0c8933126098b14e05'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00114
epssPercentile: 0.01443
ingestedAt: '2026-09-25T14:09:46.373Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

nvdimm: pmem: keep PREFLUSH before data writes

pmem_submit_bio() records a REQ_PREFLUSH error, but continues to copy the
bio data and can later overwrite the error with a successful REQ_FUA flush.
That lets data writes run after a failed preflush and can complete the bio
successfully despite the failed ordering barrier.

Run the REQ_PREFLUSH flush synchronously before touching the bio data and
complete the bio with the flush error if it fails. Keep asynchronous flush
chaining for REQ_FUA. At that point, data copy has completed and the parent
bio can wait for the chained flush bio.

## Affected

- `linux_kernel >= 5.3, < 6.18.52`
- `linux_kernel >= 6.19, < 7.2.6`

## Remediation

Upgrade past the affected range:

- `linux_kernel 7.2.6`

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98161.json)
