CVE-2026-89689
Received Received - Intake

Use-After-Free in Linux Kernel NFS Server

Vulnerability report for CVE-2026-89689, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-11

Last updated on: 2026-09-11

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: nfsd: don't free session slots that are still in use nfsd4_sequence() can free the very slot it is currently processing. When the session shrinker has reduced se_target_maxslots below se_fchannel.maxreqs, the shrink path checks three conditions before calling free_session_slots(): 1. se_target_maxslots < maxreqs (shrink was advertised) 2. slot->sl_generation == se_slot_gen (slot is up-to-date) 3. seq->maxslots <= se_target_maxslots (client acknowledges) However, seq->slotid is never checked against se_target_maxslots. A client using a slot in the range [se_target_maxslots, maxreqs) can satisfy all three conditions: its slot has the current generation (set by a prior SEQUENCE), and it sends sa_highest_slotid <= se_target_maxslots to acknowledge the reduction. free_session_slots() then kfrees every slot at index >= se_target_maxslots, including the caller's own slot. The function continues to write sl_seqid, sl_flags, sl_generation, and stores the dangling pointer in cstate->slot. Later, nfsd4_store_cache_entry() copies up to maxresp_cached bytes of the compound reply into the freed sl_data[] array, corrupting whatever slab object now occupies that address. Additionally, a concurrent thread processing SEQUENCE on a different high-numbered slot can have its slot freed out from under it. NFSD4_SLOT_INUSE is set under nn->client_lock before the lock is released, so any concurrent thread past SEQUENCE will have its slot marked. However, free_session_slots() does not check NFSD4_SLOT_INUSE before freeing. Fix both problems by: 1. Checking that the current request's slotid is below the shrink boundary. 2. Scanning slots in the to-be-freed range for NFSD4_SLOT_INUSE and deferring the shrink if any are active.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-11
Last Modified
2026-09-11
Generated
2026-09-12
AI Q&A
2026-09-12
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a flaw in the NFS (Network File System) daemon where session slots can be freed while still in use. Specifically, nfsd4_sequence() may free the slot it is currently processing, leading to memory corruption. The issue occurs when the session shrinker reduces the maximum slots below the current maximum requests, but fails to check if the slot being used is within the new limit or if the slot is actively in use by another thread.

Detection Guidance

This vulnerability affects the Linux kernel's NFS server (nfsd) and involves improper handling of session slots. Detection requires checking kernel logs for NFS-related errors or crashes, particularly involving nfsd4_sequence() or session slot management. Monitor for kernel oops messages or slab corruption errors in system logs. No specific commands are provided in the context to directly detect this issue.

Impact Analysis

This vulnerability can lead to memory corruption, system crashes, or potential privilege escalation if exploited. It may cause data corruption or instability in systems relying on NFS for file sharing, especially in multi-user environments where multiple clients access shared resources simultaneously.

Mitigation Strategies

Apply the kernel patch that fixes the issue by ensuring slotid checks and NFSD4_SLOT_INUSE verification before freeing session slots. Update to a patched kernel version where the described fixes are implemented. Restart the NFS server service after applying the patch to ensure the fix is active.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-89689. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart