CVE-2025-40087
NFSD: Define a proc_layoutcommit for the FlexFiles layout type
Check your servers for CVE-2025-40087
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40087 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.50%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 44.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9b9960a0ca4773e21c4b153ed355583946346b25, before a75994dd879401c3e24ff51c2536559f1a53ea27 affected from 9b9960a0ca4773e21c4b153ed355583946346b25, before 34d187e020cbda112a6c6f094f0ca5e6a8672b75 affected from 9b9960a0ca4773e21c4b153ed355583946346b25, before ba88a53d7f5df4191583abf214214efe0cda91d2 affected from 9b9960a0ca4773e21c4b153ed355583946346b25, before da9129ef77786839a3ccd1d7afeeab790bceaa1d affected from 9b9960a0ca4773e21c4b153ed355583946346b25, before f7353208c91ab004e0179c5fb6c365b0f132f9f0 affected from 9b9960a0ca4773e21c4b153ed355583946346b25, before a156af6a4dc38c2aa7c98e89520a70fb3b3e7df4 affected from 9b9960a0ca4773e21c4b153ed355583946346b25, before 785ec512afa80d0540f2ca797c0e56de747a6083 affected from 9b9960a0ca4773e21c4b153ed355583946346b25, before 4b47a8601b71ad98833b447d465592d847b4dc77
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 5.4.301 up to and including 5.4.* unaffected from 5.10.246 up to and including 5.10.* unaffected from 5.15.196 up to and including 5.15.* unaffected from 6.1.158 up to and including 6.1.* unaffected from 6.6.114 up to and including 6.6.* unaffected from 6.12.55 up to and including 6.12.* unaffected from 6.17.5 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40087 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40087
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40087
trivy image --scanners vuln IMAGE | grep CVE-2025-40087
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a75994dd879401c3e24ff51c2536559f1a53ea27 git.kernel.org
- https://git.kernel.org/stable/c/34d187e020cbda112a6c6f094f0ca5e6a8672b75 git.kernel.org
- https://git.kernel.org/stable/c/ba88a53d7f5df4191583abf214214efe0cda91d2 git.kernel.org
- https://git.kernel.org/stable/c/da9129ef77786839a3ccd1d7afeeab790bceaa1d git.kernel.org
- https://git.kernel.org/stable/c/f7353208c91ab004e0179c5fb6c365b0f132f9f0 git.kernel.org
- https://git.kernel.org/stable/c/a156af6a4dc38c2aa7c98e89520a70fb3b3e7df4 git.kernel.org
- https://git.kernel.org/stable/c/785ec512afa80d0540f2ca797c0e56de747a6083 git.kernel.org
- https://git.kernel.org/stable/c/4b47a8601b71ad98833b447d465592d847b4dc77 git.kernel.org
Source: the record CVE-2025-40087 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse