# CVE-2026-89668: nfsd: move nfsd_debugfs_init() after nfsd4_init_slabs() in init_nfsd()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-09-11T19:45:54.354Z
- Modified: 2026-10-19T09:18:04.880Z
- Assigned by: Linux

## Description

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

nfsd: move nfsd_debugfs_init() after nfsd4_init_slabs() in init_nfsd()

nfsd_debugfs_init() runs before nfsd4_init_slabs() in init_nfsd().
If the slab allocation fails, the bare "return retval" bypasses
nfsd_debugfs_exit(), leaving orphan debugfs files with stale fops
pointers into the freed module text.

Move nfsd_debugfs_init() to after the slab init succeeds, so the
early return has no debugfs state to clean up.

Since debugfs is now the more recently initialized of the two, also
update the unwind paths to match reverse-initialization (LIFO) order:
run nfsd_debugfs_exit() before nfsd4_free_slabs() in both the
init_nfsd() error path and exit_nfsd(). The nfsd debugfs files only
reference module-global state and have no dependency on the slab
caches, so that reordering is a cleanup with no functional change.

(As written by CVE List.)

## Affected

- Linux Linux: from 9fe5ea760e64f04412dbed51645a0dac7220d40a before 4ae5d7490ae6a7b83b3d607f88c499f4f85e753a; from 9fe5ea760e64f04412dbed51645a0dac7220d40a before ab43ff94f5dfc2b6a080b167b69855eb7655c98b; from 9fe5ea760e64f04412dbed51645a0dac7220d40a before 2c390c8a1764d67095fe444401861fac4c049362; 6.16 (not affected: before 6.16; 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/4ae5d7490ae6a7b83b3d607f88c499f4f85e753a>
- <https://git.kernel.org/stable/c/ab43ff94f5dfc2b6a080b167b69855eb7655c98b>
- <https://git.kernel.org/stable/c/2c390c8a1764d67095fe444401861fac4c049362>

## Sources

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

---

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