public inbox for [email protected]
 help / color / mirror / Atom feed
This is experimental automated Linux kernel CVE triage research. Results are heuristic and may be incorrect. This site is not an official vendor advisory or severity source.
* [CVE-2026-99366][IMPORTANT] nfsd: don't modify a session slot when replaying its cached reply commit 2987838317501ff67b672ac2a441fe34b7729f3d upstream.
@ 2026-11-20  4:31 AL-KERNEL
  0 siblings, 0 replies; only message in thread
From: AL-KERNEL @ 2026-11-20  4:31 UTC (permalink / raw)
  To: kernel-cve

CVE: CVE-2026-99366
Priority: IMPORTANT
AL-KERNEL base severity: IMPORTANT
KPANIC flag: YES
Patch: nfsd: don't modify a session slot when replaying its cached reply commit 2987838317501ff67b672ac2a441fe34b7729f3d upstream.
Commit: 065764e256ebff20201dca5bc6ff075c6cb62e17
Upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=065764e256ebff20201dca5bc6ff075c6cb62e17
Original CVE announcement: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99366
Analysis date: Fri, 20 Nov 2026 00:31:40 -0400
ActionableScore: 7
ActionableScore lower bound: 6
Actionable bucket: Strong Important candidate
Manual review required: YES

Summary:
Concurrent remote NFSv4.1 session replays can make an unowned replay modify or write through freed slot and credential state, causing a proven host panic and unresolved post-lifetime corruption.

======================================================================
ABOUT THIS REPORT
======================================================================

The original Linux kernel CVE announcement for CVE-2026-99366 is available here:
https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99366

The original announcement does not normally provide a security severity
estimate, CVSS assessment, or enough information to determine whether the
reported kernel bug represents a practically relevant security issue.

This report was generated by AL-KERNEL, an AI-assisted Linux kernel
vulnerability analysis system developed by Alexander Larkin. It combines
an autonomous classifier with LLM-assisted technical analysis and a
separate ActionableScore mechanism.

The purpose of this report is to prioritize Linux kernel CVEs before
manual review, identify cases that require prompt investigation, and
support automatic closure of issues that are unlikely to have meaningful
security impact.

Published priority for this report: IMPORTANT
Manual review required: YES

A detailed explanation of the methodology and priority rules is included
at the end of this message.

======================================================================
AL-KERNEL CLASSIFICATION RESULT
======================================================================

CVE-2026-99366	IMPORTANT	https://www.kernelcve.org/list/?q=CVE-2026-99366 CHECK WITH IMPACT FROM ORIG NN MODERATE | AEGIS IMPACT MODERATE_KPANIC AEGIS_AS=5 LEGACY=IMPORTANT RESULT=DIFF INDEPENDENT_LEGACY=IMPORTANT INDEPENDENT_RESULT=DIFF TEMP_KPANIC_MERGE=IMPORTANT_HARD_VETO PRE_MERGE_LEGACY=IMPORTANT (final Legacy and Aegis differ; FINAL: IMPORTANT, Aegis: MODERATE_KPANIC)	Maybe valid. Check manually. Hints by AL-KERNEL: The best (paranoid) CVSS is 'AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H';CWE-362;*CWE-416;CWE-415;**CWE-476;Other CVSS 'AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H';BEST CVSS score: '8.1';DESCR 'A race in NFSD NFSv4 session replay handling allows a replay that did not claim a slot to update the reply cache and clear NFSD4_SLOT_INUSE. Concurrent replays can race on sl_cred, causing a NULL pointer dereference or a double release of group_info, while kernels with shrinkable live slot tables can perform a use-after-free write after free_session_slots releases the slot. A remote NFSv4.1 client with a valid session can trigger the issue by issuing concurrent cached replays and, for the UAF path, coordinating the replay with slot table shrink. For the CVSS the PR:N value is selected for the paranoid score because a reachable client may create and replay its own session without local execution or a privileged server account. Deployments requiring authenticated NFS access support PR:L for the base score. Availability impact is demonstrated by a kernel panic, and the UAF write and double free support possible confidentiality and integrity impact. Automated impact decision path. The original SimpleNet classifier selected MODERATE_KPANIC. The primary LLM estimated paranoid CVSS 8.1 and the production ActionableScore returned 7 with recommendation Strong Important candidate. The production rules then evaluated CVSS thresholds and ActionableScore thresholds. Recorded rule transitions were CVSS and initial triage stage MODERATE_KPANIC to IMPORTANT because the CVSS score, vector or bug class threshold rule was applied. final reconciliation stage IMPORTANT to IMPORTANT because a specific evidence based protection or manual review veto was applied. The legacy KP specialist produced a review artifact and its decision was processed by the applicable KP rules. The legacy FD or DH downgrade specialist produced a review artifact and its decision was processed by the applicable downgrade and preservation rules. Exact triggered rule markers were INCREASED_TO_HIGH_BASED_ON_GUESSCVSS and TEMP_KPANIC_MERGE_IMPORTANT_VETO. The independent weaker Aegis shadow evaluated CVSS 5.3 and ActionableScore 5 with primitive class CLASS_B and manual review REQUIRED. Its independently reconciled impact was MODERATE_KPANIC. Cross model aggregation changed the production result under an enabled evidence gated merge rule. The final reported impact is IMPORTANT.';YES REQUIRES MANUAL CHECK; ,and ActionableScore result is Strong Important candidate (with actual score 7)	MAYBE	WRITE OOB DANGER NULLPTR DISK UAF NETWORK HARDWARE LINUS KPANIC  KPANIC INCREASED_TO_HIGH_BASED_ON_GUESSCVSS TEMP_KPANIC_MERGE_IMPORTANT_VETO	-	-	checked

======================================================================
ACTIONABLESCORE ANALYSIS
======================================================================

ActionableScore=7
ActionableScoreLower=6
PrimitiveClass=CLASS_B
RealUAF=YES
HostAdminRequired=NO
NamespaceScopedPrivilege=NO
ImportantCandidate=YES
ManualReview=REQUIRED
AutoDowngradeAllowed=NO
RequiresHostUID0=NO
AuthorizationDecisionBypass=NO
ProtectedResourceImpact=NONE
B4PendingReview=NO
B4PendingConfirmed=NO

1. ActionableScore

* Raw base score: 6.
* Conservative score: 6; no floor or cap changes the arithmetic.
* Raw paranoid score: 7.
* Paranoid score: 7; the extra point reflects the specifically described second lifetime/refcount mutation through the same potentially freed `group_info`.
* Final recommended bucket: **Strong Important candidate**::

2. Signal breakdown

* +2 — Real UAF/lifetime violation: on kernels with shrinkable live slot tables, `free_session_slots()` can free the slot retained in `cstate->slot`, after which replay completion writes the cached reply and clears `sl_flags`.
* +2 — Remote reachability: a remote NFSv4.1 client with a valid session can issue concurrent cached replays; no host-local administrative operation is needed for each trigger.
* +1 — Reliable kernel crash: the commit provides a production NULL dereference and resulting kernel panic.
* +1 — Concrete repeated release/refcount operation: colliding completions can release the same `group_info` twice. The first release can end its lifetime, the same shared credential reference remains reachable, and the second release mutates lifetime state.
* Paranoid +1 — The second release itself can modify refcount/lifetime metadata after the original object lifetime ended; this is more specific than theoretical allocator reuse.
* FLOOR 5 conditions are satisfied by the repeated lifetime mutation, but the raw score already exceeds the floor.
* No points for arbitrary write, controlled reclaim, confidentiality, integrity, or LPE: none is demonstrated. The UAF writes are real but their freed-memory target after reuse is not attacker-directed.
* No extra availability point: it would duplicate the demonstrated panic.
* NEW52 B5-R does not apply: there is no retry-accumulated index or offset.

3. Reachability analysis

The grounded actor is a remote NFSv4.1 client holding a valid server session. It can send concurrent cached replays; the supplied analysis also grounds coordination with live slot-table shrink for the UAF-write path. NFS service availability and session establishment are prerequisites, and deployments may require NFS authentication, but neither host UID 0 nor host-administrator capabilities are required. No namespace capability participates. The race requires concurrency, but the client can repeatedly drive replay requests, so a hard-race penalty is unsupported.

4. Primitive and severity reading

This is an active structured-state lifetime/ownership failure, not fixed stale storage. A replay that never owned the slot nevertheless performs cache and flag writes, races credential rebuilding, and can retain a slot pointer across slot-table freeing. Separately, two completions can perform a second release on the same potentially dead `group_info`.

That establishes CLASS_B UAF and post-lifetime mutation with a proven host panic. Controlled replacement, directed writes, disclosure, and privilege escalation remain unproven, so CLASS_A is not justified. ImportantCandidate is YES and auto-downgrade is disallowed because remote-triggerable writes through freed structured state and a concrete double-release require exploit-leverage review.

5. One-sentence report phrase

Concurrent remote NFSv4.1 session replays can make an unowned replay modify or write through freed slot and credential state, causing a proven host panic and unresolved post-lifetime corruption.

6. Manual review advice

MANUAL CHECK REQUIRED

The remote active-object UAF write and concrete repeated lifetime mutation preserve an Important candidate despite the absence of demonstrated arbitrary write or LPE.

7. Call-site confidence

Call-site confidence: high

======================================================================
UPSTREAM PATCH SUMMARY
======================================================================

Patch: nfsd: don't modify a session slot when replaying its cached reply commit 2987838317501ff67b672ac2a441fe34b7729f3d upstream.
Commit: 065764e256ebff20201dca5bc6ff075c6cb62e17
Upstream URL: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=065764e256ebff20201dca5bc6ff075c6cb62e17

Commit description:

nfsd4_sequence() claims a session slot by setting NFSD4_SLOT_INUSE
under nn->client_lock. A reply served from the slot's reply cache does
not claim it, and that distinction lived only in cstate->status, which
nfsd4_sequence() set to nfserr_replay_cache. Commit cc028a10a48c
("NFSD: Hoist status code encoding into XDR encoder functions") moved
nfsd4_proc_compound()'s cstate->status assignment below the out:
label, and the replay path's goto out was the one path that relied on
skipping it. The test in nfsd4_sequence_done() therefore no longer
identifies a replay, and every replay now stores its reply and clears
NFSD4_SLOT_INUSE as though it owned the slot.

NFSD4_SLOT_INUSE is the interlock: check_slot_seqid() rejects every
sequence id for a slot that is in use, before replay_matches_cache()
runs. A replay never sets it, so two replays can be in flight on the
same slot at once. One can read slot->sl_cred under nn->client_lock
while the other's completion frees and rebuilds it from the XDR
encoder without that lock. Two completions can also collide with each
other and release the same group_info twice. free_svc_cred() leaves
cr_uid, cr_gid and cr_flavor intact, so the reader passes every
earlier test in same_creds() and dereferences a NULL cr_group_info.
From a 6.12.91 production server:

  BUG: kernel NULL pointer dereference, address: 0000000000000004
  CPU: 63 UID: 0 PID: 39015 Comm: nfsd
  RIP: 0010:same_creds+0x38/0xa0 [nfsd]
  RDX: 0000000000000000
  Call Trace:
   nfsd4_sequence+0x6a8/0x910 [nfsd]
   nfsd4_proc_compound+0x345/0x670 [nfsd]
   nfsd_dispatch+0x100/0x220 [nfsd]
   svc_process_common+0x311/0x700 [sunrpc]
   svc_process+0x131/0x1c0 [sunrpc]
   svc_recv+0x7ef/0x9c0 [sunrpc]
   nfsd+0xa3/0x100 [nfsd]
  Kernel panic - not syncing: Fatal exception

Since v6.14 a live session's slot table can shrink, and the unowned
store becomes a use-after-free write. nfsd4_sequence() defers the
shrink while a slot is in use, but it tests NFSD4_SLOT_INUSE, which a
replay does not set, so free_session_slots() can kfree() the slot the
replay still holds in cstate->slot.

Record the claim in cstate->slot_owned when nfsd4_sequence() accepts a
request and test that in nfsd4_sequence_done(), so only the request
that claimed the slot updates its cached reply and clears
NFSD4_SLOT_INUSE. svc_generic_init_request() zeroes the compound
response before each request, so the flag starts clear.

Fixes: cc028a10a48c ("NFSD: Hoist status code encoding into XDR encoder functions")
Cc: [email protected]
Assisted-by: Claude:claude-opus-5
Signed-off-by: Ameer Hamza <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat -rw-r--r-- fs/nfsd/nfs4state.c 7
-rw-r--r-- fs/nfsd/xdr4.h 1

Changed files:
  fs/nfsd/xdr4.h

Diff excerpt:

Not included in this email. See the upstream URL for the full patch.

Full patch:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=065764e256ebff20201dca5bc6ff075c6cb62e17

======================================================================
DETAILED REPORT METHODOLOGY
======================================================================

The original Linux kernel CVE announcement for CVE-2026-99366 can be found here:
https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99366

The original CVE announcement normally does not include a security-level
estimate. In particular, it may not contain a CVSS assessment, an impact
level, or enough information to determine whether the reported bug is a
practically relevant security issue. One purpose of this parallel CVE list
is to provide that missing technical and prioritization information.

The original goal of the AL-KERNEL project was to prioritize Linux kernel
CVE analysis automatically before manual review. The system can also help
identify non-security issues that may be suitable for automatic closure.

This report was generated by AL-KERNEL, an AI-assisted Linux kernel
vulnerability analysis system developed by Alexander Larkin.

The first analysis stage combines an autonomous classifier with additional
LLM-based analysis. The autonomous classifier runs locally on a CPU and is
based on a backpropagation neural network. Together, these mechanisms
produce a technical vulnerability description, identify likely weakness
types, estimate CVSS severity, and provide input for ActionableScore.

Two CVSS estimates are retained because incomplete kernel vulnerability
information often permits more than one defensible interpretation:

  Conservative CVSS vector: AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
  The Best / paranoid CVSS vector: AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  The Best / paranoid CVSS score: 8.1

The conservative vector represents a lower-impact interpretation.
The Best/paranoid vector intentionally represents a plausible upper-bound
interpretation and should not automatically be treated as demonstrated
real-world impact.

CVSS may also need to be adjusted for a particular Linux deployment,
because actual reachability, privileges, enabled kernel configuration,
hardware, namespaces, exposed device nodes, and other environmental
conditions can differ significantly between systems.

A separate ActionableScore mechanism evaluates practical remediation
urgency. Its analysis may include reachability, attack prerequisites,
subsystem exposure, memory-corruption characteristics, denial-of-service
reliability, and possible confidentiality, integrity, or
privilege-escalation impact.

  Conservative ActionableScore: 6
  Paranoid ActionableScore: 7

The final base severity is taken directly from the second tab-separated
field of the AL-KERNEL classification result. ActionableScore does not
replace or independently override that final AL-KERNEL decision, and
if ActionableScore adjusted impact level of ALKERNEL, then you would see
self-readable flags above like INCREASED_TO_HIGH_BASED_ON_ACTIONABLESCOREHIGHEREQTHAN7.

For an AL-KERNEL result of MODERATE, this report uses the following
additional presentation split:

  ActionableScore below 5   -> MODERATE REGULAR
  ActionableScore 5 or more -> MODERATE 7.0

The distinction between MODERATE REGULAR and MODERATE 7.0 makes it
possible to identify Moderate issues that should receive manual analysis
and fixes before lower-priority MODERATE REGULAR issues. In many cases,
MODERATE REGULAR fixes may wait for a later rebase or routine update.

There is one override in which MODERATE REGULAR becomes MODERATE 7.0
even when the ActionableScore is below 5. When the AL-KERNEL result
contains the KPANIC flag, a MODERATE result is always presented as
MODERATE 7.0. The KPANIC flag selected with few regexps without
usage of AI at all, so it helps to detect cases when Kernel Crash happens
and similar (to filter False-Negative results from the LLM usage).

KPANIC indicates that a reliable kernel crash, kernel panic, or similarly
serious kernel availability impact was identified by the classification
workflow.

AL-KERNEL base severity for this report: IMPORTANT
KPANIC detected for this report: YES
Published priority for this report (same as in Subject): IMPORTANT

These results are intended to support engineering triage. They are
machine-generated estimates, and cases marked for manual review should
be validated by a human security engineer before final disposition.
For more info read docs linked from here: https://kernelcve.org/
(and you can submit you own patch there to generate such a report
for non-existant CVE-id yet).

Note that in many cases this AI tool selects higher severity, than
real is (means you can expect Importants instead of Moderate 7.0 or
Moderates 7.0 instead of regular Moderates). If you see such cases,
please use reply email interface to add additional manual analyses
info to this particular CVE.
And please, please, let me know when you see Lows instead of Importants
or Important instead of Low (because particular for such cases I
need to tune this AI tool to make it better for this one and next similar).
My contact email for such notifications is [email protected] (and both
send reply to CVE record itself too and see "reply" button below for howto reply).

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-20  4:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20  4:31 [CVE-2026-99366][IMPORTANT] nfsd: don't modify a session slot when replaying its cached reply commit 2987838317501ff67b672ac2a441fe34b7729f3d upstream AL-KERNEL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox