nfsd: sample writeback error cursor before async COPY loop (Linux Linux)

CVE-2026-89704
HIGH 7.5

En bref

Source
NVD
EPSS
EPSS 0.53 % · centile 45 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

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().

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected f14816f2f928c560d28ba344af689f56efcd6f55 < 435e4246c7dfff2fbd76dfdbf91975d5d9f788c9 ; affected 3145fe0ebb16e1715ad541a301bc6675c8375fcd < 9f539a1c0791f907eb4e6d04b43178d9962e2def ; affected 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 4728504c021656128a07f4693af80ed4a5fcc863 ; affected 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 322422d66d1a04434a0dcc0c9d3a4c4b3f225117 ; affected 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 52b2db7a72e19ac2686fa4b2a52406661e7bf9e2 ; affected 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb < 8277d4a11ae2cb5495842be558fd946032c24363
Linux · Linuxaffected 5.17 ; unaffected 0 < 5.17 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD