CVE-2025-40087
Description
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Define a proc_layoutcommit for the FlexFiles layout type
Avoid a crash if a pNFS client should happen to send a LAYOUTCOMMIT operation on a FlexFiles layout.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In the Linux kernel, NFSD lacked a procedure for FlexFiles LAYOUTCOMMIT, causing a crash if a pNFS client sent such an operation.
Vulnerability
CVE-2025-40087 is a missing function definition in the Linux kernel's NFS server (NFSD) for the FlexFiles layout type. When a pNFS client sends a LAYOUTCOMMIT operation for a FlexFiles layout, the server does not have a corresponding procedure handler defined. This results in a NULL pointer dereference or similar crash, as the server attempts to invoke an undefined operation.
Exploitation
Attack requires a pNFS client capable of using FlexFiles layouts. A client can send of a LAYOUTCOMMIT operation for such a layout triggers the crash. No authentication bypass is needed; a legitimate client with appropriate pNFS capabilities can cause the denial of service.
Impact
An unprivileged pNFS client can cause the NFS server to crash, leading to denial of service for all NFS clients. This is an availability issue with high impact as described in the kernel patch references.
Mitigation
The vulnerability is fixed by adding a proc_layoutcommit handler for FlexFiles layout type in the NFSD code. The commits referenced [1], [2], [3] implement this fix for stable kernels. Administrators should apply the latest kernel updates.
AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2Patches
8a75994dd879434d187e020cbba88a53d7f5dda9129ef7778f7353208c91aa156af6a4dc3785ec512afa84b47a8601b71Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- git.kernel.org/stable/c/34d187e020cbda112a6c6f094f0ca5e6a8672b75nvd
- git.kernel.org/stable/c/4b47a8601b71ad98833b447d465592d847b4dc77nvd
- git.kernel.org/stable/c/785ec512afa80d0540f2ca797c0e56de747a6083nvd
- git.kernel.org/stable/c/a156af6a4dc38c2aa7c98e89520a70fb3b3e7df4nvd
- git.kernel.org/stable/c/a75994dd879401c3e24ff51c2536559f1a53ea27nvd
- git.kernel.org/stable/c/ba88a53d7f5df4191583abf214214efe0cda91d2nvd
- git.kernel.org/stable/c/da9129ef77786839a3ccd1d7afeeab790bceaa1dnvd
- git.kernel.org/stable/c/f7353208c91ab004e0179c5fb6c365b0f132f9f0nvd
News mentions
0No linked articles in our index yet.