CVE-2026-143127: NFSv4: Prevent indefinite waits for out-of-order OPEN stateids
In the Linux kernel, the following vulnerability has been resolved:
NFSv4: Prevent indefinite waits for out-of-order OPEN stateids
When processing an out-of-order OPEN stateid on an NFSv4.1 or later mount, nfssetopenstateidlocked() waits for stateid updates to be processed in order. A five-second timeout is intended to prevent indefinite waits when preceding updates never arrive.
However, each iteration calls scheduletimeout() with a fresh five-second timeout. An update to the shared open state can wake the caller without satisfying its ordering check. The remaining timeout is then discarded, and the next iteration starts another full wait.
Under sustained concurrent OPEN/CLOSE activity on the same open state, repeated wakeups can prevent the timeout from ever expiring. Some tasks can remain stuck in updateopenstateid() while others continue making progress.
Compute a single deadline on entry and pass only the remaining time to scheduletimeout(). Once the deadline expires, take the existing timeout path rather than starting another wait. This prevents wakeups from extending the wait indefinitely.
Observed on Linux 6.8.0 and reproduced on 7.3.0 with 96 concurrent ORDWR|OTRUNC open/close loops on one NFSv4.1/TCP file (nconnect=16). Ten workers made no progress for over 300 seconds while others ran. With the fix, all workers resumed after transient stalls.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In nfs_set_open_stateid_locked(), compute a single deadline on entry and pass only the remaining time to schedule_timeout(); once the deadline expires, take the existing timeout path instead of starting another wait.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue affects Linux kernel systems using NFSv4.1 or later mounts. The described condition involves concurrent OPEN and CLOSE activity on the same open state.
What conditions are needed to trigger the indefinite wait?
An out-of-order OPEN stateid must be processed while preceding stateid updates do not arrive in the required order. Sustained concurrent activity can repeatedly wake a waiting task without satisfying its ordering check, continually resetting its effective five-second wait.
How can I tell whether a system is affected in practice?
Affected behavior presents as tasks remaining stuck in update_open_stateid() while other tasks continue to make progress. The issue was observed on Linux 6.8.0 and reproduced on 7.3.0 with 96 concurrent O_RDWR operations.