# CVE-2026-93212: nfsd: guard nfsd_serv deref in nfsd_file_net_dispose

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-09-24T15:10:35.280Z
- Modified: 2026-10-19T10:17:12.113Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nfsd: guard nfsd_serv deref in nfsd_file_net_dispose

nfsd_file_net_dispose() is the consumer side of l->freeme: the nfsd
service thread loop calls it to drain entries that the filecache
garbage collector and shrinker append via
nfsd_file_dispose_list_delayed().  During per-net teardown,
nn->nfsd_serv is cleared before the filecache laundrette is shut
down, so the service thread can still run a dispose pass that finds
more than eight entries on l->freeme and dereferences a NULL
svc_serv:

    nfsd service thread loop
      nfsd_file_net_dispose(nn)
        if (!list_empty(&l->freeme)) {
            ...
            svc_wake_up(nn->nfsd_serv);   /* nn->nfsd_serv == NULL */
        }

The sibling helper nfsd_file_dispose_list_delayed() already documents
this ordering and caches nn->nfsd_serv into a local before testing it
for NULL.  nfsd_file_net_dispose() was introduced with the same raw
svc_wake_up(nn->nfsd_serv) call and never picked up the guard.

Fix by loading nn->nfsd_serv into a local svc_serv pointer and only
calling svc_wake_up() when it is non-NULL, matching the pattern in
nfsd_file_dispose_list_delayed().

(As written by CVE List.)

## Affected

- Linux Linux: from ffb402596147ac583f3464ff5c48feb9423e3838 before f4776c1c4b38fbc459420321c8ece87d0f7f95fb; from ffb402596147ac583f3464ff5c48feb9423e3838 before 59baf45a06435194005fc5fa9a42d89f77a30432; from ffb402596147ac583f3464ff5c48feb9423e3838 before 766170b4fd2daaf5c4d6735560101474e18edab6; from ffb402596147ac583f3464ff5c48feb9423e3838 before 9f1ddfc8cb9076592401a611eb3a44d36186d014; 6.9 (not affected: before 6.9; from 6.12.109 up to 6.12.*; from 6.18.50 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/f4776c1c4b38fbc459420321c8ece87d0f7f95fb>
- <https://git.kernel.org/stable/c/59baf45a06435194005fc5fa9a42d89f77a30432>
- <https://git.kernel.org/stable/c/766170b4fd2daaf5c4d6735560101474e18edab6>
- <https://git.kernel.org/stable/c/9f1ddfc8cb9076592401a611eb3a44d36186d014>

## Sources

- CVE List: [CVE-2026-93212](https://www.cve.org/CVERecord?id=CVE-2026-93212), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-93212](https://nvd.nist.gov/vuln/detail/CVE-2026-93212), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-93212 · Whole record: https://cve.day/CVE-2026-93212.json · Rebuilt by cve.day 2026-11-25T22:59:40.779Z
