{"id":"CVE-2026-98161","state":"PUBLISHED","title":"nvdimm: pmem: keep PREFLUSH before data writes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvdimm: pmem: keep PREFLUSH before data writes\n\npmem_submit_bio() records a REQ_PREFLUSH error, but continues to copy the\nbio data and can later overwrite the error with a successful REQ_FUA flush.\nThat lets data writes run after a failed preflush and can complete the bio\nsuccessfully despite the failed ordering barrier.\n\nRun the REQ_PREFLUSH flush synchronously before touching the bio data and\ncomplete the bio with the flush error if it fails. Keep asynchronous flush\nchaining for REQ_FUA. At that point, data copy has completed and the parent\nbio can wait for the chained flush bio.","publishedAt":"2026-09-25T13:06:51.138Z","updatedAt":"2026-10-21T12:54:44.996Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"22d1f4dcdc9c6d0295c6db0c8933126098b14e05","versionType":"git"},{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"d34c30bc994328d9cf6749b2e9a32aabd08fd076","versionType":"git"},{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"770a90c2127220f0fc194ce909ad4f0842e141cb","versionType":"git"},{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"72561ca1ab96f0f0f32737a6171641e05a318538","versionType":"git"},{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"c644a2f8fef5618fcf453c591177700fd07dd024","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvdimm/pmem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvdimm/pmem.c"]}],"references":["https://git.kernel.org/stable/c/22d1f4dcdc9c6d0295c6db0c8933126098b14e05","https://git.kernel.org/stable/c/d34c30bc994328d9cf6749b2e9a32aabd08fd076","https://git.kernel.org/stable/c/770a90c2127220f0fc194ce909ad4f0842e141cb","https://git.kernel.org/stable/c/72561ca1ab96f0f0f32737a6171641e05a318538","https://git.kernel.org/stable/c/c644a2f8fef5618fcf453c591177700fd07dd024"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98161.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98161","state":"PUBLISHED","datePublished":"2026-09-25T13:06:51.138Z","dateUpdated":"2026-10-21T12:54:44.996Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.321Z"},"containers":{"cna":{"title":"nvdimm: pmem: keep PREFLUSH before data writes","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvdimm: pmem: keep PREFLUSH before data writes\n\npmem_submit_bio() records a REQ_PREFLUSH error, but continues to copy the\nbio data and can later overwrite the error with a successful REQ_FUA flush.\nThat lets data writes run after a failed preflush and can complete the bio\nsuccessfully despite the failed ordering barrier.\n\nRun the REQ_PREFLUSH flush synchronously before touching the bio data and\ncomplete the bio with the flush error if it fails. Keep asynchronous flush\nchaining for REQ_FUA. At that point, data copy has completed and the parent\nbio can wait for the chained flush bio."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"22d1f4dcdc9c6d0295c6db0c8933126098b14e05","versionType":"git"},{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"d34c30bc994328d9cf6749b2e9a32aabd08fd076","versionType":"git"},{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"770a90c2127220f0fc194ce909ad4f0842e141cb","versionType":"git"},{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"72561ca1ab96f0f0f32737a6171641e05a318538","versionType":"git"},{"version":"c5d4355d10d414a96ca870b731756b89d068d57a","status":"affected","lessThan":"c644a2f8fef5618fcf453c591177700fd07dd024","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvdimm/pmem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvdimm/pmem.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/22d1f4dcdc9c6d0295c6db0c8933126098b14e05"},{"url":"https://git.kernel.org/stable/c/d34c30bc994328d9cf6749b2e9a32aabd08fd076"},{"url":"https://git.kernel.org/stable/c/770a90c2127220f0fc194ce909ad4f0842e141cb"},{"url":"https://git.kernel.org/stable/c/72561ca1ab96f0f0f32737a6171641e05a318538"},{"url":"https://git.kernel.org/stable/c/c644a2f8fef5618fcf453c591177700fd07dd024"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:54:44.996Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}