# CVE-2026-98161: nvdimm: pmem: keep PREFLUSH before data writes

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-09-25T13:06:51.138Z
- Modified: 2026-10-21T13:21:24.663Z
- Weaknesses: CWE-754
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from c5d4355d10d414a96ca870b731756b89d068d57a before 22d1f4dcdc9c6d0295c6db0c8933126098b14e05; from c5d4355d10d414a96ca870b731756b89d068d57a before d34c30bc994328d9cf6749b2e9a32aabd08fd076; from c5d4355d10d414a96ca870b731756b89d068d57a before 770a90c2127220f0fc194ce909ad4f0842e141cb; from c5d4355d10d414a96ca870b731756b89d068d57a before 72561ca1ab96f0f0f32737a6171641e05a318538; from c5d4355d10d414a96ca870b731756b89d068d57a before c644a2f8fef5618fcf453c591177700fd07dd024; 5.3 (not affected: before 5.3; from 6.6.160 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 5.3 before 6.18.52; from 6.19 before 7.2.6

## References

- <https://git.kernel.org/stable/c/22d1f4dcdc9c6d0295c6db0c8933126098b14e05>
- <https://git.kernel.org/stable/c/d34c30bc994328d9cf6749b2e9a32aabd08fd076>
- <https://git.kernel.org/stable/c/770a90c2127220f0fc194ce909ad4f0842e141cb> (patch)
- <https://git.kernel.org/stable/c/72561ca1ab96f0f0f32737a6171641e05a318538> (patch)
- <https://git.kernel.org/stable/c/c644a2f8fef5618fcf453c591177700fd07dd024> (patch)

## Sources

- CVE List: [CVE-2026-98161](https://www.cve.org/CVERecord?id=CVE-2026-98161), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-98161](https://nvd.nist.gov/vuln/detail/CVE-2026-98161), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-98161 · Whole record: https://cve.day/CVE-2026-98161.json · Rebuilt by cve.day 2026-11-25T22:59:41.098Z
