CVE-2025-40087 NFSD: Define a proc_layoutcommit for the FlexFiles layout type
A missing handler in the Linux kernel NFSD FlexFiles layout type causes a crash when a pNFS client sends a LAYOUTCOMMIT operation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-40087?
CVE-2025-40087 is a high-severity vulnerability in Linux, published on 30 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-40087?
How do I fix CVE-2025-40087?
Apply the vendor's patch.
Is CVE-2025-40087 being exploited?
There is no known exploitation of CVE-2025-40087 in the wild and no public exploit code.
Sources
Also known as AZL-69406, BELL-CVE-2025-40087, DEBIAN-CVE-2025-40087, GHSA-527r-239p-grh5, ROOT-OS-DEBIAN-11-CVE-2025-40087, ROOT-OS-DEBIAN-12-CVE-2025-40087 and 4 more.