---
id: CVE-2026-89704
title: 'nfsd: sample writeback error cursor before async COPY loop'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  nfsd: sample writeback error cursor before async COPY loop

  _nfsd_copy_file_range() samples dst->f_wb_err into "since"
  after the copy loop, then uses it to detect write…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-367
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= f14816f2f928c560d28ba344af689f56efcd6f55 <
    435e4246c7dfff2fbd76dfdbf91975d5d9f788c9
  - >-
    Linux >= 3145fe0ebb16e1715ad541a301bc6675c8375fcd <
    9f539a1c0791f907eb4e6d04b43178d9962e2def
  - >-
    Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb <
    4728504c021656128a07f4693af80ed4a5fcc863
  - >-
    Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb <
    322422d66d1a04434a0dcc0c9d3a4c4b3f225117
  - >-
    Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb <
    52b2db7a72e19ac2686fa4b2a52406661e7bf9e2
  - >-
    Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb <
    8277d4a11ae2cb5495842be558fd946032c24363
  - >-
    Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb <
    a1cbafe756cd5e6ab0e099062f37da7a5b081169
  - >-
    Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb <
    20a67a7d18221af736f124770c2c5e859b479046
  - Linux >= 5.10.124 < 5.10.270
  - Linux >= 5.15.49 < 5.15.221
  - Linux 5.17
published: '2026-09-11'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T08:51:17.323Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-89704'
references:
  - url: 'https://git.kernel.org/stable/c/435e4246c7dfff2fbd76dfdbf91975d5d9f788c9'
  - url: 'https://git.kernel.org/stable/c/9f539a1c0791f907eb4e6d04b43178d9962e2def'
  - url: 'https://git.kernel.org/stable/c/4728504c021656128a07f4693af80ed4a5fcc863'
  - url: 'https://git.kernel.org/stable/c/322422d66d1a04434a0dcc0c9d3a4c4b3f225117'
  - url: 'https://git.kernel.org/stable/c/52b2db7a72e19ac2686fa4b2a52406661e7bf9e2'
  - url: 'https://git.kernel.org/stable/c/8277d4a11ae2cb5495842be558fd946032c24363'
  - url: 'https://git.kernel.org/stable/c/a1cbafe756cd5e6ab0e099062f37da7a5b081169'
  - url: 'https://git.kernel.org/stable/c/20a67a7d18221af736f124770c2c5e859b479046'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89704.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-89704'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2532298'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-89704'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-89704'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-89704.mbox
tags:
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00526
epssPercentile: 0.44375
scores:
  cna: 7.5
  vendor: 7
ingestedAt: '2026-09-14T15:23:07.449Z'
---

## Overview

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

nfsd: sample writeback error cursor before async COPY loop

_nfsd_copy_file_range() samples dst->f_wb_err into "since"
after the copy loop, then uses it to detect writeback errors
via filemap_check_wb_err() once vfs_fsync_range() returns.
Because the nfsd_file cache reuses a single struct file
across requests targeting the same inode, a concurrent
COMMIT or stable WRITE on dst advances dst->f_wb_err to the
current mapping->wb_err via file_check_and_advance_wb_err()
during its own vfs_fsync_range(). If that advancement lands
between the writeback error appearing in mapping->wb_err
and the COPY worker sampling "since", the worker captures
the already-advanced cursor, errseq_check() sees cur ==
since and returns zero, and NFSD4_COPY_F_COMMITTED is set
even though writeback failed. CB_OFFLOAD then encodes
wr_stable_how = FILE_SYNC4, the client treats the copied
data as durable, and the failure becomes silent data loss.

Sample since once at the start of the function. The cursor
then reflects state in effect before this COPY issues any
writes, and filemap_check_wb_err() detects any error that
occurs during the copy regardless of which thread first
observes it. This matches the pattern used by
nfsd_vfs_write() and nfsd4_clone_file_range().

## Affected

- `Linux >= f14816f2f928c560d28ba344af689f56efcd6f55 < 435e4246c7dfff2fbd76dfdbf91975d5d9f788c9`
- `Linux >= 3145fe0ebb16e1715ad541a301bc6675c8375fcd < 9f539a1c0791f907eb4e6d04b43178d9962e2def`
- `Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 4728504c021656128a07f4693af80ed4a5fcc863`
- `Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 322422d66d1a04434a0dcc0c9d3a4c4b3f225117`
- `Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 52b2db7a72e19ac2686fa4b2a52406661e7bf9e2`
- `Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 8277d4a11ae2cb5495842be558fd946032c24363`
- `Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < a1cbafe756cd5e6ab0e099062f37da7a5b081169`
- `Linux >= 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 20a67a7d18221af736f124770c2c5e859b479046`
- `Linux >= 5.10.124 < 5.10.270`
- `Linux >= 5.15.49 < 5.15.221`
- `Linux 5.17`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

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