Junglewise Threat Intelligence

CVE-2025-40087: Linux Kernel denial of service in NFSD FlexFiles layout handling

CVE-2025-40087 · Severity: high · CVSS 7.5 · Published 2025-10-30

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's Network File System (NFS) server component could allow a remote user to crash the system. By sending a specific type of file layout request (FlexFiles LAYOUTCOMMIT), an attacker can trigger a kernel crash, leading to a complete denial of service for the affected server. This impacts the availability of shared files and can disrupt business operations relying on NFS storage.

Technical details

The vulnerability exists in the NFSD (NFS server) component of the Linux kernel due to the absence of a 'proc_layoutcommit' definition for the FlexFiles layout type. A remote attacker can trigger a kernel crash (NULL pointer dereference or similar invalid access) by sending a pNFS LAYOUTCOMMIT operation to a server exporting FlexFiles layouts. The fix involves defining a stub 'nfsd4_ff_proc_layoutcommit' function that returns 'nfs_ok' to safely handle these requests. The issue was introduced in version 4.8 and has been patched in various stable branches including 5.4.301, 5.10.246, 5.15.196, and 6.1.158.

Affected products

  • Linux Linux Kernel 4.8 to 6.1.158

Timeline

  • 2025-10-20: patched: Initial fix authored by Chuck Lever
  • 2025-10-30: disclosed: CVE-2025-40087 published

References

Related threats