** Changed in: linux (Ubuntu Tenacious)
       Status: New => Fix Released

** Changed in: linux (Ubuntu Stonking)
       Status: New => Fix Released

** Changed in: linux (Ubuntu Resolute)
       Status: New => Fix Released

** Changed in: linux (Ubuntu Noble)
       Status: New => Fix Released

** Summary changed:

- [SRU] Latency in NFS file opens caused by delegations not being returned when 
clients fail to record
+ Latency in NFS file opens caused by delegations not being returned when 
clients fail to record

** Description changed:

  [ Impact ]
  
  When an NFS server grants a delegation in an OPEN reply, the client
  function `nfs_inode_set_delegation()` records it. However, under certain
  error flows, it returns without sending a required `DELEGRETURN`. When
  this happens, NFS incurs severe latency on file open operations
  (sometimes increasing to hours) degrading the system availability.
  
  Because a delegation can only be relinquished via `DELEGRETURN` (RFC
  8881 Section 20.2.4), silently dropping it causes the server to believe
  the client still holds the delegation. When the server later issues a
  `CB_RECALL`, the client responds with `NFS4ERR_BADHANDLE` because it
  lacks a record of the stateid. The server revokes the delegation and
  moves it to its revoked list (`cl_revoked`). Because the client never
  sends `FREE_STATEID` to clear it, subsequent `SEQUENCE` replies carry
  `SEQ4_STATUS_RECALLABLE_STATE_REVOKED`. Consequently, the client state
  manager enters an infinite loop repeatedly issuing `TEST_STATEID` across
  delegations without resolving the condition.
  
  [ Fix ]
  
  Backport upstream commit 220af23d863995091f0edeb1e6aa0945b3db8b37 ("NFS:
  Return a delegation the client fails to record") [1]. Instead of
  dropping the delegation silently during these error paths, the client
  hands it back via `DELEGRETURN`. This is the fix for CVE-2026-90234
  
  [ Test Plan ]
  
  Realistically, this is quite difficult to test as an individual. This
  was observed in a shared NFS cluster with thousands of daily users, and
  many concurrent accessors. Under this sustained load, the issue would
  occur about every two weeks. Since having been patched, the issue has
  not manifested in three months.
  
  1. Mount an NFSv4 share from an NFS server configured to grant write 
delegations on write OPEN operations.
  2. Concurrently open, modify, and close files across multiple processes or 
clients to trigger conditions where a delegation recall races against a re-open 
receiving a fresh write delegation to induce delegation return error flows.
  3. Observe untenable latency, long wait times to open files, and the client 
logging loop `nfs41_handle_recallable_state_revoked: Recallable state revoked 
on server`.
  
  After patching, we no longer see the race occur. This is demonstrated by
  no severe increase in latency when stress tested over sufficiently long
  timespans. As well, as described, the bug leaves a signature trace in
  the logs that serves as evidence that the infinite loop was encountered.
  Once patched, these logs will not be generated
  
  [ Where problems could occur ]
  
  Since this changes the cleanup paths, there is potential that either
  some flows will still result in orphaned delegations, however, the patch
  will strictly improve the situation by reducing the number of orphaned
  delegations, so that is not a regression.
  
  A newly granted delegation may be returned instead of recorded if the
  client cannot safely replace the existing one. This is unlikely to cause
  correctness issues because the return is limited to cases where the
  existing delegation is already being returned or cannot be detached.
  
  [ References ]
  
  [1]
  
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=220af23d863995091f0edeb1e6aa0945b3db8b37
+ 
+ Fixed in 6.8.0-151.151 per https://ubuntu.com/security/CVE-2026-90234

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2179476

Title:
  Latency in NFS file opens caused by delegations not being returned
  when clients fail to record

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2179476/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to