Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Requires an authenticated NFSv4.1 session (PR:L) and winning a shrinker-timing race (AC:H); primary impact is server crash (A:H) with limited integrity from slab OOB write (I:L), no confidentiality.
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
Lifecycle Timeline
6DescriptionCVE.org
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():
- se_target_maxslots < maxreqs (shrink was advertised)
- slot->sl_generation == se_slot_gen (slot is up-to-date)
- 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:
- Checking that the current request's slotid is below the shrink
boundary.
- Scanning slots in the to-be-freed range for NFSD4_SLOT_INUSE and
deferring the shrink if any are active.
AnalysisAI
Memory corruption in the Linux kernel NFSD server (NFSv4.1+ session handling) occurs because nfsd4_sequence() can free the very session slot it is currently processing. When the session slot shrinker lowers se_target_maxslots below the channel's maxreqs, free_session_slots() kfrees every slot at index >= se_target_maxslots without verifying the caller's own slotid or the NFSD4_SLOT_INUSE flag, so an authenticated NFSv4.1+ client using a high-numbered slot can have its live slot freed, after which the code writes to the freed object and nfsd4_store_cache_entry() copies the compound reply into the dangling sl_data[] buffer, corrupting the slab. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | Requires the target to run the in-kernel NFS server (nfsd) exporting an NFSv4.1 or later filesystem with sessions enabled, and an authenticated NFSv4.1+ client able to establish a session and issue SEQUENCE operations. … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H = 9.8) materially overstates real-world risk. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | Full exploit scenario with step-by-step reproduction available after sign-in. |
| Remediation | Vendor-released patch: upgrade to Linux 6.18.50, 7.2.4, or 7.3-rc1 (or a distro kernel that backports commits 72d40b103bb0 / b449b134e776 / f5d22e372f4a), which add the missing checks that the current request's slotid is below the shrink boundary and that no slot in the to-be-freed range is marked NFSD4_SLOT_INUSE, deferring the shrink otherwise. … Detailed patch versions, workarounds, and compensating controls in full report. |
Recommended ActionAI
Within 24 hours, identify systems running Linux NFS servers (NFSD) with kernel versions 6.14 through 7.2. …
Sign in for detailed remediation steps and compensating controls.
Threat intelligence, references, and detailed analysis are available after sign-in.
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-76601
GHSA-49vg-hxcf-g87m