In the Linux kernel, the following vulnerability has been resolved: nfsd: RCU-protect cl_cb_session to fix use-after-free on session teardown After… (CVE-2026-89708)
A use-after-free vulnerability in the Linux kernel's NFS server (nfsd) was resolved by protecting the cl_cb_session pointer with RCU mechanisms. The flaw allowed a session to be freed while an inflight callback still referenced it, potentially causing memory corruption. The fix involves converting cl_cb_session to an RCU-protected pointer, deferring freeing until after an RCU grace period, and ensuring proper synchronization between session teardown and callback processing.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel's nfsd component involves a use-after-free condition on the cl_cb_session pointer during session teardown. After a DESTROY_SESSION operation, the session memory can be freed while the rpciod daemon still holds an inflight callback rpc_task referencing cl_cb_session. The existing synchronization using workqueue flushing and rpc_shutdown_client's wait_event_timeout is insufficient because tasks stuck in rpc_delay() can outlive the drain. Additionally, a second race condition exists where cl_cb_session may retain a pointer to a freed session due to early returns in nfsd4_process_cb_update(). The fix converts cl_cb_session to an RCU-protected pointer, moves the assignment to after rpc_create() succeeds, clears the pointer on error, annotates it with __rcu, uses rcu_read_lock()/rcu_dereference() in all readers, and replaces kfree() with kfree_rcu() to defer freeing until after an RCU grace period. These changes ensure that no rpciod-side readers dereference freed memory, eliminating the use-after-free.
Potential Impact
This vulnerability could lead to use-after-free memory corruption in the Linux kernel's NFS server component, potentially causing kernel crashes or undefined behavior. However, no known exploits in the wild have been reported. The impact is limited to systems running the affected Linux kernel versions with NFS server enabled and using the affected nfsd callback session handling.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel by converting cl_cb_session to an RCU-protected pointer and deferring freeing until after an RCU grace period. Users should apply the official kernel updates containing this fix when available. Since this is a kernel-level issue, upgrading to a patched kernel version is the recommended remediation. Patch status is not explicitly stated in the provided data; users should consult their Linux distribution or kernel vendor advisories for the specific fixed versions and update accordingly.
In the Linux kernel, the following vulnerability has been resolved: nfsd: RCU-protect cl_cb_session to fix use-after-free on session teardown After… (CVE-2026-89708)
Description
A use-after-free vulnerability in the Linux kernel's NFS server (nfsd) was resolved by protecting the cl_cb_session pointer with RCU mechanisms. The flaw allowed a session to be freed while an inflight callback still referenced it, potentially causing memory corruption. The fix involves converting cl_cb_session to an RCU-protected pointer, deferring freeing until after an RCU grace period, and ensuring proper synchronization between session teardown and callback processing.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's nfsd component involves a use-after-free condition on the cl_cb_session pointer during session teardown. After a DESTROY_SESSION operation, the session memory can be freed while the rpciod daemon still holds an inflight callback rpc_task referencing cl_cb_session. The existing synchronization using workqueue flushing and rpc_shutdown_client's wait_event_timeout is insufficient because tasks stuck in rpc_delay() can outlive the drain. Additionally, a second race condition exists where cl_cb_session may retain a pointer to a freed session due to early returns in nfsd4_process_cb_update(). The fix converts cl_cb_session to an RCU-protected pointer, moves the assignment to after rpc_create() succeeds, clears the pointer on error, annotates it with __rcu, uses rcu_read_lock()/rcu_dereference() in all readers, and replaces kfree() with kfree_rcu() to defer freeing until after an RCU grace period. These changes ensure that no rpciod-side readers dereference freed memory, eliminating the use-after-free.
Potential Impact
This vulnerability could lead to use-after-free memory corruption in the Linux kernel's NFS server component, potentially causing kernel crashes or undefined behavior. However, no known exploits in the wild have been reported. The impact is limited to systems running the affected Linux kernel versions with NFS server enabled and using the affected nfsd callback session handling.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel by converting cl_cb_session to an RCU-protected pointer and deferring freeing until after an RCU grace period. Users should apply the official kernel updates containing this fix when available. Since this is a kernel-level issue, upgrading to a patched kernel version is the recommended remediation. Patch status is not explicitly stated in the provided data; users should consult their Linux distribution or kernel vendor advisories for the specific fixed versions and update accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-m8hw-pq6j-j4w4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-89708"]
Threat ID: 6aa49ffc55bf5e2cf5a865e7
Added to database: 09/12/2026, 00:42:36 UTC
Last enriched: 09/12/2026, 00:52:05 UTC
Last updated: 09/12/2026, 00:52:05 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.