CVE-2025-38231
nfsd: Initialize ssc before laundromat_work to prevent NULL dereference
Check your servers for CVE-2025-38231
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-38231 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: Initialize ssc before laundromat_work to prevent NULL dereference
In nfs4_state_start_net(), laundromat_work may access nfsd_ssc through nfs4_laundromat -> nfsd4_ssc_expire_umount. If nfsd_ssc isn't initialized, this can cause NULL pointer dereference.
Normally the delayed start of laundromat_work allows sufficient time for nfsd_ssc initialization to complete. However, when the kernel waits too long for userspace responses (e.g. in nfs4_state_start_net -> nfsd4_end_grace -> nfsd4_record_grace_done -> nfsd4_cld_grace_done -> cld_pipe_upcall -> __cld_pipe_upcall -> wait_for_completion path), the delayed work may start before nfsd_ssc initialization finishes.
Fix this by moving nfsd_ssc initialization before starting laundromat_work.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a4bc287943f5695209ff36bdc89f17b48d68fae7, before deaeb74ae9318252829c59a84a7d2316fc335660 affected from f4e44b393389c77958f7c58bf4415032b4cda15b, before 0fccf5f01ed28725cc313a66ca1247eef911d55e affected from f4e44b393389c77958f7c58bf4415032b4cda15b, before a97668ec6d73dab237cd1c15efe012a10090a4ed affected from f4e44b393389c77958f7c58bf4415032b4cda15b, before 5060e1a5fef184bd11d298e3f0ee920d96a23236 affected from f4e44b393389c77958f7c58bf4415032b4cda15b, before d622c2ee6c08147ab8c9b9e37d93b6e95d3258e0 affected from f4e44b393389c77958f7c58bf4415032b4cda15b, before 83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64 affected from f4e44b393389c77958f7c58bf4415032b4cda15b, before b31da62889e6d610114d81dc7a6edbcaa503fcf8 affected from 5.10.220, before 5.10.239
Other versions: unaffected
|
| Linux |
affected 5.14 unaffected before 5.14 unaffected from 5.10.239 up to and including 5.10.* unaffected from 5.15.186 up to and including 5.15.* unaffected from 6.1.142 up to and including 6.1.* unaffected from 6.6.95 up to and including 6.6.* unaffected from 6.12.35 up to and including 6.12.* unaffected from 6.15.4 up to and including 6.15.* unaffected 6.16 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-38231 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38231
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-38231
trivy image --scanners vuln IMAGE | grep CVE-2025-38231
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/deaeb74ae9318252829c59a84a7d2316fc335660 git.kernel.org
- https://git.kernel.org/stable/c/0fccf5f01ed28725cc313a66ca1247eef911d55e git.kernel.org
- https://git.kernel.org/stable/c/a97668ec6d73dab237cd1c15efe012a10090a4ed git.kernel.org
- https://git.kernel.org/stable/c/5060e1a5fef184bd11d298e3f0ee920d96a23236 git.kernel.org
- https://git.kernel.org/stable/c/d622c2ee6c08147ab8c9b9e37d93b6e95d3258e0 git.kernel.org
- https://git.kernel.org/stable/c/83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64 git.kernel.org
- https://git.kernel.org/stable/c/b31da62889e6d610114d81dc7a6edbcaa503fcf8 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
Source: the record CVE-2025-38231 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse