9.8

CVE-2026-89686

nfsd: fix BUG_ON in nfsd4_alloc_layout_stateid on racing delegation revoke

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

nfsd: fix BUG_ON in nfsd4_alloc_layout_stateid on racing delegation revoke

nfsd4_alloc_layout_stateid reads fp->fi_deleg_file without holding
fi_lock when the parent stateid is a delegation. A concurrent delegation
revoke via the laundromat can clear fi_deleg_file under fi_lock, causing
nfsd_file_get() to return NULL and triggering the BUG_ON.

This race is client-reachable: two NFS clients can trigger it by having
one hold a delegation while another opens the same file to force a
recall. When the first client doesn't respond to the recall, the
laundromat revokes it. A concurrent LAYOUTGET from any client using the
delegation stateid hits the race window.

Fix this by taking fi_lock around the fi_deleg_file read in the
SC_TYPE_DELEG path, matching the locking discipline of the
find_any_file() arm, and replacing the BUG_ON with a graceful error
return that cleans up the partially-initialized layout stateid.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version c5c707f96fc9a6e5a57ca5baac892673270abe3d
Version < c517f27498757e616d2a8fe6d16caad1fee422e6
Status affected
Version c5c707f96fc9a6e5a57ca5baac892673270abe3d
Version < 607a56fea772c1f4f4989d8e255dd4f7192d9604
Status affected
Version c5c707f96fc9a6e5a57ca5baac892673270abe3d
Version < 97bda8b4284d90897a1f1922e5082ff9e35d7c7e
Status affected
Version c5c707f96fc9a6e5a57ca5baac892673270abe3d
Version < ca94ba36172046be6a694a7986f6931e47ed4d51
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 4.0
Status affected
Version 0
Version < 4.0
Status unaffected
Version <= 6.12.*
Version 6.12.109
Status unaffected
Version <= 6.18.*
Version 6.18.50
Status unaffected
Version <= 7.2.*
Version 7.2.4
Status unaffected
Version <= *
Version 7.3-rc1
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.67% 0.5
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
416baaa9-dc9f-4396-8d5f-8c081fb06d67 9.8 3.9 5.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/c517f27498757e616d2a8fe6d16caad1fee422e6
https://git.kernel.org/stable/c/607a56fea772c1f4f4989d8e255dd4f7192d9604
https://git.kernel.org/stable/c/97bda8b4284d90897a1f1922e5082ff9e35d7c7e
https://git.kernel.org/stable/c/ca94ba36172046be6a694a7986f6931e47ed4d51