CVE-2026-99953: Linux kernel NFS server reconnect path defers its directory file releases until unreclaimable slab fills memory

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

An NFS server that receives a file handle for a directory it no longer has in its dentry cache has to reconnect the dentry to the root, and exportfs_decode_fh() does that by walking upward with get_name(), which opens each parent directory, reads it to find the child’s name, and closes it. The kernel CNA record says the close used fput(), which “from a kernel thread … defers the final __fput() to the delayed_fput work item”, and that on a filesystem with more directories than the dcache retains “the deferred releases arrive faster than the work item retires them, and each pending file pins the directory’s readdir state.” On ext4 that state is the htree name cache; the reporter saw “unreclaimable slab growing by about 90 MB per second” under a parallel tree walk, and a global OOM on 5.15. Red Hat rates it Important at 7.5, remote and unauthenticated. On NFS servers, upgrade to 6.6.163, 6.12.117, 6.18.63, 7.3.4 or later; until then watch SUnreclaim on hosts that export large trees to clients you do not control.

CVE-2026-99953 at a glance.

ComponentLinux kernel, exportfs (fs/exportfs/expfs.c, function get_name()), on the exportfs_decode_fh() reconnect path that nfsd takes for a disconnected file handle
Affected versionsfrom 4a9d4b024a31 (“switch fput to task_work_add”, 3.6): 3.6 up to 6.6 before 6.6.163, 6.12 before 6.12.117, 6.18 before 6.18.63, 7.3 before 7.3.4 and 7.4 before 7.4-rc1. The record notes that kernels before 6.6 need the __fput_sync() call guarded by PF_KTHREAD, and the CNA lists no backport for 6.1 or 5.15
Fixed inmainline 7.4-rc1 (commit 49184daa, Chuck Lever, committed by Christian Brauner; fs/exportfs/expfs.c +5/−1: fput(file) becomes __fput_sync(file) with a comment; patch of 8 October 2026; Reported-by and Tested-by Danny Pidutti, Reviewed-by Benjamin Coddington; Cc: stable “needs adjustments for < v6.2”) and stable 6.6.163, 6.12.117, 6.18.63, 7.3.4
SeverityRed Hat Important, CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, draft, CWE-770 allocation without limits), bug 2586275 “Denial of service via memory exhaustion in exportfs”; the kernel CNA gives no score and NVD (Received, 30 November) carries none; Ubuntu and SUSE pages could not be read on 2 December 2026
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00309 (26th percentile) on 1 December 2026
Who is exposedHosts running the kernel NFS server (nfsd) that export a filesystem with more directories than the dentry cache holds, to clients that walk it; the record’s reproduction is a 64-thread NFSv3 server under a parallel tree walk with READDIRPLUS. Red Hat: affects “NFS servers exporting filesystems with deep or extensive directory structures”; systems that do not run the NFS server, or do not export to untrusted networks, are not affected. A legitimate backup or indexing client can trigger it as well as a hostile one
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

An NFS file handle names an inode, not a path. When a client presents a handle for a directory the server has since evicted from its dentry cache, exportfs_decode_fh() gets back a disconnected dentry and has to reconnect it: find the parent, open the parent directory, read through it until an entry with the child’s inode number turns up, and repeat upward until it reaches a dentry that is connected. get_name() is the step that opens the parent with dentry_open(), reads it, and releases it with fput(). On a server whose exports hold more directories than the dcache retains, “nearly every READDIRPLUS needs a reconnect”, so this path runs constantly under a tree walk.

The problem is what fput() does when called from a kernel thread. For an ordinary process the final close is queued as task work and runs before the process returns to userspace; a kernel thread never returns to userspace, so the release is pushed onto the global delayed_fput work item instead. NFSD threads are kernel threads. The record says the deferred releases arrive faster than that single work item retires them, and until a file is actually released it pins the directory’s readdir state, which on ext4 is “the htree fname cache for the last leaf block read.” The reporter measured unreclaimable slab growing by about 90 MB per second, and the same workload on a 5.15 kernel “ended in a global OOM.” An earlier commit, 5ff318f645eb (“nfsd: use __fput_sync() to avoid delayed closing of files”), had stopped NFSD’s own closes feeding that queue but did not cover the exportfs reconnect path.

Chuck Lever’s fix releases the file with __fput_sync(), which performs the close immediately; the record argues it is safe because get_name() opened the file itself, read-only, on a directory, so nothing in __fput() can wait on the caller. Five lines change in fs/exportfs/expfs.c, merged through Christian Brauner for 7.4-rc1 with backports to 6.6, 6.12, 6.18 and 7.3. The commit’s stable note, repeated in the record, is that kernels before 6.6 need the call guarded by current->flags & PF_KTHREAD with a plain fput() otherwise, which is why 6.1 and 5.15 have no listed backport yet even though the record’s own reproduction ran on 5.15.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The code is in every kernel; only hosts that run the kernel NFS server exercise it.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) fixed; forky and sid (7.3.6-1) fixed, first fixed upload 7.3.4-1; no DSAtrixie 6.12.117-1; unstable 7.3.4-1
UbuntuNot consulted for this page: ubuntu.com refused the automated reader on 2 December 2026 (client error, two attempts); the Ubuntu priority is not stated here—
RHEL, Rocky, Alma, CentOS StreamImportant, 7.5 (bug 2586275, CWE-770); kernel and kernel-rt affected in RHEL 6 ELS, 7 ELS, 8, 9 and 10 and every OpenShift 4/5 RHCOS image; no errata on 2 December 2026—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply. 6.1 and 5.15 have no listed backport yet; the record says those need the PF_KTHREAD guard6.6.163 / 6.12.117 / 6.18.63 / 7.3.4 or later

How to check

Is this host an NFS server, what does it export and to whom, and is the symptom already visible: unreclaimable slab climbing while clients walk the tree. The kernel version decides whether the fix is in.

# 1. is the kernel NFS server running, and what does it export
systemctl is-active nfs-server 2>/dev/null; cat /proc/fs/nfsd/threads 2>/dev/null
exportfs -v 2>/dev/null

# 2. the running kernel: fixed in 6.6.163, 6.12.117, 6.18.63, 7.3.4 or later
uname -r

# 3. the symptom: unreclaimable slab and the ext4 htree name cache growing under client load
grep -E '^(SUnreclaim|SReclaimable|Slab):' /proc/meminfo
grep -E '^(ext4_fname|dentry|filp) ' /proc/slabinfo 2>/dev/null | awk '{print $1, $2, $3}'
# watch it move: run twice a minute apart while a client does a recursive listing
watch -n 30 "grep SUnreclaim /proc/meminfo"

No nfs-server and an empty exportfs -v means the host does not run the vulnerable path and the page does not apply. A server on an affected kernel whose exports are large trees walked by many clients, backup agents, indexers or build farms included, is the case the record describes; one that exports a handful of directories to a few hosts will reconnect rarely and the deferred closes will be retired as fast as they arrive. A steadily rising SUnreclaim that only comes back down when client activity stops is the signature; SReclaimable rising is ordinary cache and not this.

How to fix it

Update the kernel and reboot, or restart nfs-server after a live-patch where your distribution offers one. There is no vendor mitigation; the interim is to keep the reconnect rate down and the slab in view.

# Debian trixie (6.12.117-1) and forky / sid (7.3.4-1 and later) carry the fix; bookworm: watch the tracker row above
apt update && apt install linux-image-amd64 && systemctl reboot
# RHEL / Rocky / Alma: no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot
# Ubuntu: tracker unreachable from here today; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# Interim: give the dentry cache room so fewer handles arrive disconnected, and alarm on SUnreclaim
sysctl -w vm.vfs_cache_pressure=50
# (monitoring) alert when SUnreclaim exceeds a baseline you measure on a quiet host, e.g. 4 GB:
awk '/SUnreclaim/ && $2 > 4*1024*1024 {print "SUnreclaim high:", $2, "kB"}' /proc/meminfo

Lowering vm.vfs_cache_pressure keeps more dentries resident, which reduces how often a handle needs reconnecting; it does not fix the leak, it slows the trigger, and it costs memory elsewhere. What not to do: do not respond to the OOM by tuning the OOM killer or adding swap. The pinned readdir state is unreclaimable slab, which swap cannot take and the OOM killer cannot free by killing a process; the queue drains only when the deferred closes run, and the fix makes them run at once.

Sources

  • CVE-2026-99953 at CVE.org — the kernel CNA record: the delayed_fput paragraph, the “about 90 MB per second” measurement, the 5.15 OOM, the reference to commit 5ff318f645eb and the LTS backport note (30 November 2026)
  • Fix commit 49184daa (Chuck Lever, committed by Christian Brauner; mainline 7.4-rc1 per Debian; fs/exportfs/expfs.c +5/−1; Fixes: 4a9d4b024a31; Reported-by and Tested-by: Danny Pidutti; Reviewed-by: Benjamin Coddington; Cc: stable; Link: patch of 8 October 2026) and the 6.12 backport 0242cf17, both read on 2 December 2026; the patch view was rate-limited
  • NVD entry — Received on 30 November 2026; no CVSS metric and no CWE on 2 December 2026
  • Distribution trackers: Debian (bookworm vulnerable, trixie fixed in 6.12.117-1, unstable in 7.3.4-1) · Red Hat (Important 7.5, bug 2586275, CWE-770, every RHEL kernel affected; the statement on NFS servers and untrusted networks) · Ubuntu, SUSE and Alpine (all refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00309 (percentile 0.256) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.