Description
In the Linux kernel, the following vulnerability has been resolved: NFS: Return a delegation the client fails to record When an NFS server grants a delegation in an OPEN reply, nfs_inode_set_delegation() records it on the client. However, three of its error flows return without sending DELEGRETURN. A delegation can be relinquished only by DELEGRETURN (RFC 8881 Section 20.2.4), so dropping one silently leaves the server believing the client still holds it. If the server happens to recall that delegation, the client answers CB_RECALL with NFS4ERR_BADHANDLE because it has no record of the stateid. The server revokes the delegation and moves it onto its cl_revoked list, because the client never sends the FREE_STATEID that would drain it. Every subsequent SEQUENCE reply then carries SEQ4_STATUS_RECALLABLE_STATE_REVOKED, and the client's state manager loops issuing TEST_STATEID across its delegations without ever clearing the condition. The window is easy to reach now that a server offers a write delegation on any write OPEN: a delegation recalled for one opener races a re-open that the server answers with a fresh write delegation. Instead of dropping it, hand the delegation back during these error flows.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
ade04647dd56881e285983af3db702d56ee97e86 to < 61b23f482b2082e77d2f78bd1624f93a12ec35ceaffectedade04647dd56881e285983af3db702d56ee97e86 to < 9e71e332fa2c7a48f3d00001f856a13cc2d69639affectedade04647dd56881e285983af3db702d56ee97e86 to < fe3b1c8966a27b70599d28ce7e80819adac1ff22affectedade04647dd56881e285983af3db702d56ee97e86 to < 6822ba1ae9b6df6a094f7f8998f1da734c85fa19affectedade04647dd56881e285983af3db702d56ee97e86 to < 92533e49fe3c455088657b862cf3562260c0ce25affectedade04647dd56881e285983af3db702d56ee97e86 to < 220af23d863995091f0edeb1e6aa0945b3db8b37affected
Linux Linux
Default version status: affected
4.0affected0 to < 4.0unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.114 to ≤ 6.12.*unaffected6.18.57 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/61b23f482b2082e77d2f78bd1624f93a12ec35ce ↗
- https://git.kernel.org/stable/c/9e71e332fa2c7a48f3d00001f856a13cc2d69639 ↗
- https://git.kernel.org/stable/c/fe3b1c8966a27b70599d28ce7e80819adac1ff22 ↗
- https://git.kernel.org/stable/c/6822ba1ae9b6df6a094f7f8998f1da734c85fa19 ↗
- https://git.kernel.org/stable/c/92533e49fe3c455088657b862cf3562260c0ce25 ↗
- https://git.kernel.org/stable/c/220af23d863995091f0edeb1e6aa0945b3db8b37 ↗