CVE-2025-40087
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40087 is a denial-of-service vulnerability in the Linux kernel's NFSD (Network File System Daemon) subsystem caused by a missing proc_layoutcommit handler for the FlexFiles layout type. When a pNFS client sends a LAYOUTCOMMIT operation targeting a FlexFiles layout, the kernel crashes due to the absent handler. The vulnerability was published on October 30, 2025, and affects Linux kernel versions from 4.8 up to the patched releases. It carries a CVSS v3.1 base score of 5.5 (Medium), with a local attack vector and high availability impact (Red Hat CVE, MSRC).

Technical details

The root cause is a missing function pointer (proc_layoutcommit) in the FlexFiles layout driver within the Linux kernel's NFSD implementation (CWE-476: NULL Pointer Dereference). When a pNFS client issues a LAYOUTCOMMIT RPC operation on a FlexFiles layout, the NFSD code attempts to invoke the layout type's proc_layoutcommit callback, which was not defined for FlexFiles, resulting in a null pointer dereference and kernel crash. Exploitation requires local access with low privileges — specifically, the ability to interact with or simulate a pNFS client sending crafted NFS operations to the server. The fix defines a proper proc_layoutcommit handler for the FlexFiles layout type across multiple stable kernel branches (Red Hat CVE, ENISA EUVD).

Impact

Successful exploitation causes a kernel crash on the affected Linux system, resulting in a complete denial of service (system reboot required). The impact is limited to availability — there is no confidentiality or integrity impact. Systems acting as NFS servers with pNFS and FlexFiles layout support enabled are at risk, and exploitation could disrupt all services running on the affected host (Red Hat CVE, ENISA EUVD).

Exploitability

There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation as of the time of writing. The EPSS score is approximately 0.024% (0.000240), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access and the ability to send pNFS LAYOUTCOMMIT operations to a vulnerable NFS server, limiting the practical attack surface (Red Hat CVE, ENISA EUVD).

Mitigation and workarounds

Patches have been released for multiple Linux kernel stable branches. Administrators should update to the following fixed versions or later: 5.4.301, 5.10.246, 5.15.196, 6.1.158, 6.6.114, 6.12.55, 6.17.5, or 6.18-rc2. Distribution-specific updates are available from Red Hat, Debian (DSA-6053-1, DLA-4379-1, DLA-4404-1), Ubuntu (USN-8033 series, USN-8034 series, USN-8141-1, USN-8163 series), openSUSE, Oracle Linux, and Amazon Linux. As a workaround where patching is not immediately possible, disabling pNFS FlexFiles layout support or restricting NFS server access to trusted clients can reduce exposure (Red Hat CVE, Debian LTS, Ubuntu USN-8033).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74576HIGH7.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-6.17
NoYesAug 15, 2026
CVE-2026-74578HIGH7.1
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.8
NoYesAug 16, 2026
CVE-2026-74579LOW3.4
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-5.15
NoYesAug 17, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • perf
NoNoAug 21, 2026
CVE-2026-74577NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management