Breaking News: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2026-89708

kernel: nfsd: RCU-protect cl_cb_session to fix use-after-free on session teardown

Overview

Published
11 Sep 2026
Modified
19 Oct 2026
Critical CVE
0 Registry packages
266 OS packages
8 Linux distributions
Yes Fix available

Description

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 a DESTROY_SESSION the per-session teardown path can free a session while rpciod still holds an inflight callback rpc_task that dereferences clp->cl_cb_session. nfsd4_probe_callback_sync() flushes cl_callback_wq, but once nfsd4_run_cb_work() has called rpc_call_async() the rpc_task lives on rpciod; flushing the workqueue does not wait for it. rpc_shutdown_client() does drain rpciod tasks, but uses a 1-second wait_event_timeout — tasks stuck in rpc_delay() (e.g. 2-second NFS4ERR_DELAY retries) can outlive the drain.

destroy path                       rpciod
------------                       ------
unhash_session(ses)
nfsd4_probe_callback_sync(clp)
  flush_workqueue(cl_callback_wq)
  /* returns; rpc_task still live */
nfsd4_put_session_locked(ses)
free_session(ses) -> kfree(ses)
                                   nfsd4_cb_sequence_done()
                                     reads cb_clp->cl_cb_session
                                     /* freed slab */

A second window exists in nfsd4_process_cb_update(). When __nfsd4_find_backchannel() returns NULL because unhash_session() has already removed the destroyed session from cl_sessions, setup_callback_client() takes the v4.1 early return so clp->cl_cb_session = ses never fires and the field retains a pointer to the about-to-be-freed session.

Fix both by converting cl_cb_session to an RCU-protected pointer:

  • Move the cl_cb_session = ses assignment in setup_callback_client() to after rpc_create() succeeds, so it is only published when a working backchannel exists. Clear cl_cb_session on the error return in nfsd4_process_cb_update(). Both stores use rcu_assign_pointer().

  • Annotate cl_cb_session with __rcu. All rpciod-side readers use rcu_read_lock()/rcu_dereference() and check for NULL, bailing to the appropriate error or requeue path: encode_cb_sequence4args(), decode_cb_sequence4resok(), nfsd41_cb_get_slot(), nfsd41_cb_release_slot(), nfsd4_cb_prepare(), and nfsd4_cb_sequence_done().

  • Switch __free_session() from kfree() to kfree_rcu() so the session slab is not reclaimed until after an RCU grace period, guaranteeing that rpciod readers inside rcu_read_lock() never dereference freed memory.

  • Pass the session pointer to the nfsd_cb_seq_status and nfsd_cb_free_slot tracepoints instead of having them re-read cl_cb_session.

  • nfsd4_cb_prepare() calls rpc_exit() when the session is NULL, routing through the done/release path to requeue the callback.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 62 fixes

Oracle Linux 1 release · 1 package

fixed 1
kernel-uek
Oracle Linux fixes for CVE-2026-89708
ReleasePackageFixed in
9 kernel-uek +34 6.12.0-207.111.5.1.el9uek

Photon OS 1 release · 1 package

fixed 1
bpftool
Photon OS fixes for CVE-2026-89708
ReleasePackageFixed in
5.0 bpftool +10 6.12.111-1.ph5

Red Hat 3 releases · 1 package

affected 3
bpftool
Red Hat fixes for CVE-2026-89708
ReleasePackageFixed in
7 bpftool +25 affected
8 bpftool +45 affected
9 bpftool +106 affected

amazon linux 1 release · 3 packages

fixed 3
kernel-livepatch-6-12-111-136-204 bpftool6-12 bpftool6-18
amazon linux fixes for CVE-2026-89708
ReleasePackageFixed in
2023 kernel-livepatch-6-12-111-136-204 +1 1:1.0-0.amzn2023
2023 bpftool6-12 +16 1:6.12.111-136.204.amzn2023
2023 bpftool6-18 +17 1:6.18.51-120.162.amzn2023

debian 4 releases · 2 packages

affected 2 fixed 3
linux linux-6-12
debian fixes for CVE-2026-89708
ReleasePackageFixed in
11 linux affected
12 linux affected
12 linux-6-12 6.12.111-1~deb12u1
13 linux 6.12.111-1
14 linux 7.2.6-1

echo 1 release · 2 packages

fixed 2
linux linux-6-12
echo fixes for CVE-2026-89708
ReleasePackageFixed in
linux 1
linux-6-12 6.12.111-1~deb12u1

openSUSE 1 release · 1 package

fixed 1
kernel-devel
openSUSE fixes for CVE-2026-89708
ReleasePackageFixed inAdvisory
Tumbleweed kernel-devel +3 7.2.7-1.1 openSUSE-SU-2026:11880-1

ubuntu 5 releases · 33 packages

affected 5 fixed 41
linux linux-oracle-6-8 linux-ibm-6-8 linux-aws-6-8 linux-azure-fde-6-8 linux-gcp-6-8 +27
ubuntu fixes for CVE-2026-89708
ReleasePackageFixed in
18.04-ESM linux +12 affected
20.04-ESM linux +21 affected
22.04 linux +17 affected
22.04 linux-oracle-6-8 6.8.0-1067.71~22.04.1
22.04 linux-ibm-6-8 6.8.0-1069.70~22.04.1
22.04 linux-aws-6-8 6.8.0-1069.74~22.04.1

40 more rows

References

Show all 25 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.