AZL-117406: CVE-2026-99953 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
exportfs: Release the getname() directory file synchronously
getname() opens the parent directory with dentryopen() and releases it with fput(). From a kernel thread, fput() defers the final fput() to the delayedfput work item. NFSD threads are kernel threads, and NFSD reaches getname() through exportfsdecodefh() whenever a file handle's dentry is not connected to the root.
On a filesystem with more directories than the dcache retains, nearly every READDIRPLUS needs a reconnect. 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 fname cache for the last leaf block read. A 64-thread NFSv3 server under a parallel tree walk showed unreclaimable slab growing by about 90 MB per second, and the same workload on a 5.15 kernel ended in a global OOM.
Commit 5ff318f645eb ("nfsd: use fputsync() to avoid delayed closing of files.") stopped NFSD's own closes from feeding the delayedfput queue but did not cover the exportfs reconnect path.
Release the file with fputsync(). getname() opened the file itself, read-only, on a directory, so fput() involves nothing that could wait on the caller.
Note for LTS backports: Kernels before v6.6 need the fputsync() call guarded by current->flags & PFKTHREAD, with a plain fput() otherwise.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In exportfs get_name(), release the opened parent-directory file with __fput_sync() instead of fput(), so the final __fput() runs synchronously.
Event History
Frequently Asked Questions
Which systems are most exposed to this issue?
NFS servers using NFSD are exposed when exportfs must reconnect file-handle dentries to the filesystem root. The described high-impact case is a 64-thread NFSv3 server performing parallel tree walks on a filesystem whose directory count exceeds dcache retention.
What workload is needed to trigger the memory growth?
READDIRPLUS operations can trigger the affected reconnect path when a file handle's dentry is not connected to the root. Repeated reconnects queue deferred file releases faster than delayed_fput can process them, pinning per-directory readdir state; on ext4, this is the htree filename cache for the last leaf block read.
What is the operational impact if the issue is triggered?
The resulting unreclaimable slab growth can exhaust system memory. In the reported testing, memory grew by about 90 MB per second on a 64-thread NFSv3 server, and a similar workload on a 5.15 kernel ended in a global out-of-memory condition.
What change resolves the affected release path?
The fix releases the directory file synchronously with __fput_sync() in exportfs get_name(), rather than using fput() and the delayed_fput work queue. A prior NFSD change that used __fput_sync() for NFSD's own closes did not cover this exportfs reconnect path.