CVE-2025-40326: NFSD: Define actions for the new time_deleg FATTR4 attributes
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Define actions for the new timedeleg FATTR4 attributes
NFSv4 clients won't send legitimate GETATTR requests for these new attributes because they are intended to be used only with CBGETATTR and SETATTR. But NFSD has to do something besides crashing if it ever sees a GETATTR request that queries these attributes.
RFC 8881 Section 18.7.3 states:
The server MUST return a value for each attribute that the client requests if the attribute is supported by the server for the target file system. If the server does not support a particular attribute on the target file system, then it MUST NOT return the attribute value and MUST NOT set the attribute bit in the result bitmap. The server MUST return an error if it supports an attribute on the target but cannot obtain its value. In that case, no attribute values will be returned.
Further, RFC 9754 Section 5 states:
These new attributes are invalid to be used with GETATTR, VERIFY, and NVERIFY, and they can only be used with CBGETATTR and SETATTR by a client holding an appropriate delegation.
Thus there does not appear to be a specific server response mandated by specification. Taking the guidance that querying these attributes via GETATTR is "invalid", NFSD will return nfserrinval, failing the request entirely.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-40326?
The severity of CVE-2025-40326 has not been explicitly rated but is related to the handling of NFSv4 attributes in the Linux kernel.
How do I fix CVE-2025-40326?
To fix CVE-2025-40326, update your Linux kernel to the latest stable version that includes the patch for this vulnerability.
Which versions of the Linux kernel are affected by CVE-2025-40326?
CVE-2025-40326 affects specific versions of the Linux kernel that include the vulnerable NFSD handling.
What impact does CVE-2025-40326 have on NFSv4 clients?
CVE-2025-40326 restricts NFSv4 clients from sending legitimate GETATTR requests for the new time_deleg attributes.
Is CVE-2025-40326 a remote or local vulnerability?
CVE-2025-40326 can be considered a local vulnerability as it affects how clients communicate with NFS servers regarding certain attributes.