# CVE-2025-38231: nfsd: Initialize ssc before laundromat\_work to prevent NULL dereference

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-07-04T13:37:44.978Z
- **Modified:** 2026-11-05T21:18:22.690Z

## Who should check

- Anyone running Linux \>= a4bc287943f5695209ff36bdc89f17b48d68fae7, \< deaeb74ae9318252829c59a84a7d2316fc335660; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 0fccf5f01ed28725cc313a66ca1247eef911d55e; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< a97668ec6d73dab237cd1c15efe012a10090a4ed; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 5060e1a5fef184bd11d298e3f0ee920d96a23236; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< d622c2ee6c08147ab8c9b9e37d93b6e95d3258e0; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< b31da62889e6d610114d81dc7a6edbcaa503fcf8; \>= 5.10.220, \< 5.10.239
- Anyone running Linux 5.14

## 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.

## Affected and fixed versions

- Linux: \>= a4bc287943f5695209ff36bdc89f17b48d68fae7, \< deaeb74ae9318252829c59a84a7d2316fc335660; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 0fccf5f01ed28725cc313a66ca1247eef911d55e; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< a97668ec6d73dab237cd1c15efe012a10090a4ed; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 5060e1a5fef184bd11d298e3f0ee920d96a23236; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< d622c2ee6c08147ab8c9b9e37d93b6e95d3258e0; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< b31da62889e6d610114d81dc7a6edbcaa503fcf8; \>= 5.10.220, \< 5.10.239 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 5.10.239 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38231. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38231.md
Affected: Linux >= a4bc287943f5695209ff36bdc89f17b48d68fae7, < deaeb74ae9318252829c59a84a7d2316fc335660; >= f4e44b393389c77958f7c58bf4415032b4cda15b, < 0fccf5f01ed28725cc313a66ca1247eef911d55e; >= f4e44b393389c77958f7c58bf4415032b4cda15b, < a97668ec6d73dab237cd1c15efe012a10090a4ed; >= f4e44b393389c77958f7c58…
Fixed in: Linux 0fccf5f01ed28725cc313a66ca1247eef911d55e, Linux 5060e1a5fef184bd11d298e3f0ee920d96a23236, Linux 83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64, Linux 5.10.239

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38231 being exploited?

There is no confirmed exploitation: CVE-2025-38231 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38231?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38231?

Linux \>= a4bc287943f5695209ff36bdc89f17b48d68fae7, \< deaeb74ae9318252829c59a84a7d2316fc335660; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 0fccf5f01ed28725cc313a66ca1247eef911d55e; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< a97668ec6d73dab237cd1c15efe012a10090a4ed; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 5060e1a5fef184bd11d298e3f0ee920d96a23236; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< d622c2ee6c08147ab8c9b9e37d93b6e95d3258e0; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< 83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64; \>= f4e44b393389c77958f7c58bf4415032b4cda15b, \< b31da62889e6d610114d81dc7a6edbcaa503fcf8; \>= 5.10.220, \< 5.10.239; Linux 5.14.

### Is there a fix for CVE-2025-38231?

Yes. Fixed in Linux 0fccf5f01ed28725cc313a66ca1247eef911d55e, Linux 5060e1a5fef184bd11d298e3f0ee920d96a23236, Linux 83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64, Linux 5.10.239. Upgrade Linux to 5.10.239 or later.

### How do I check if I'm affected by CVE-2025-38231?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/deaeb74ae9318252829c59a84a7d2316fc335660>
- patch: <https://git.kernel.org/stable/c/0fccf5f01ed28725cc313a66ca1247eef911d55e>
- patch: <https://git.kernel.org/stable/c/a97668ec6d73dab237cd1c15efe012a10090a4ed>
- patch: <https://git.kernel.org/stable/c/5060e1a5fef184bd11d298e3f0ee920d96a23236>
- patch: <https://git.kernel.org/stable/c/d622c2ee6c08147ab8c9b9e37d93b6e95d3258e0>
- patch: <https://git.kernel.org/stable/c/83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64>
- patch: <https://git.kernel.org/stable/c/b31da62889e6d610114d81dc7a6edbcaa503fcf8>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38231>

HTML: <https://flawdb.com/CVE-2025-38231> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38231>
