nfsd: Initialize ssc before laundromat_work to prevent NULL dereference (Linux Linux)

CVE-2025-38231
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 8 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected a4bc287943f5695209ff36bdc89f17b48d68fae7 < deaeb74ae9318252829c59a84a7d2316fc335660 ; affected f4e44b393389c77958f7c58bf4415032b4cda15b < 0fccf5f01ed28725cc313a66ca1247eef911d55e ; affected f4e44b393389c77958f7c58bf4415032b4cda15b < a97668ec6d73dab237cd1c15efe012a10090a4ed ; affected f4e44b393389c77958f7c58bf4415032b4cda15b < 5060e1a5fef184bd11d298e3f0ee920d96a23236 ; affected f4e44b393389c77958f7c58bf4415032b4cda15b < d622c2ee6c08147ab8c9b9e37d93b6e95d3258e0 ; affected f4e44b393389c77958f7c58bf4415032b4cda15b < 83ac1ba8ca102ab5c0ed4351f8ac6e74ac4d5d64
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.10.239 ≤ 5.10.* ; unaffected 5.15.186 ≤ 5.15.* ; unaffected 6.1.142 ≤ 6.1.* ; unaffected 6.6.95 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD