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.
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [CVE-2026-99289][IMPORTANT] ksmbd: fix app-instance non-durable supersede session UAF [ Upstream commit f728cfee6929057087c303d07d7a6a7c61196b48 ]
@ 2026-11-20  1:43 21% AL-KERNEL
  0 siblings, 0 replies; 1+ results
From: AL-KERNEL @ 2026-11-20  1:43 UTC (permalink / raw)
  To: kernel-cve

CVE: CVE-2026-99289
Priority: IMPORTANT
AL-KERNEL base severity: IMPORTANT
KPANIC flag: NO
Patch: ksmbd: fix app-instance non-durable supersede session UAF [ Upstream commit f728cfee6929057087c303d07d7a6a7c61196b48 ]
Commit: a5b190b352b0ba85f4debe436f42950ced10fadb
Upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a5b190b352b0ba85f4debe436f42950ced10fadb
Original CVE announcement: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99289
Analysis date: Thu, 19 Nov 2026 21:43:32 -0400
ActionableScore: 6
ActionableScore lower bound: 5
Actionable bucket: Actionable Moderate / Strong Important candidate requiring manual review
Manual review required: YES

Summary:
A remote authenticated SMB client can race session teardown with AppInstanceId takeover, causing a stale session file-table lock write and possible subsequent IDR consumption in freed slab storage.

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

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

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-99289	IMPORTANT	https://www.kernelcve.org/list/?q=CVE-2026-99289 CHECK WITH IMPACT FROM ORIG NN MODERATE | AEGIS IMPACT IMPORTANT AEGIS_AS=6 LEGACY=IMPORTANT RESULT=SAME (final reconciliation agrees; DECISION: both IMPORTANT)	Maybe valid. Check manually. Hints by AL-KERNEL: The best (paranoid) CVSS is 'AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H';*CWE-416;CWE-362;*CWE-672;Other CVSS 'AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H';BEST CVSS score: '7.5';DESCR 'A race between ksmbd session teardown and AppInstanceId takeover can leave a non-durable open with a stale session pointer. A remote SMB client able to create the relevant opens and sessions can trigger a slab use-after-free when ksmbd_close_fd_app_instance_id takes a write lock through the freed session file table. For the CVSS the PR:L rating reflects that reliable triggering requires an authenticated or otherwise authorized SMB session with access to the affected share rather than mere reachability to the SMB port. AC:H reflects the required timing between destruction of the old session and takeover from another session. The confirmed primitive is a UAF dereference with writes performed by the lock operation, so impact is at least a remote kernel denial of service and may include memory corruption with confidentiality or integrity consequences. Automated impact decision path. The original SimpleNet classifier selected MODERATE. The primary LLM estimated paranoid CVSS 7.5 and the production ActionableScore returned 6 with recommendation Actionable Moderate / Strong Important candidate requiring manual review. The production rules then evaluated CVSS thresholds and ActionableScore thresholds. Recorded rule transitions were CVSS and initial triage stage MODERATE to IMPORTANT because the CVSS score, vector or bug class threshold rule was applied. final reconciliation stage IMPORTANT to IMPORTANT because KP specialist did not establish a qualifying panic. 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 KPANIC_UNSUPPORTED_REMOVED. The independent weaker Aegis shadow evaluated CVSS 5.3 and ActionableScore 6 with primitive class CLASS_B and manual review REQUIRED. Its independently reconciled impact was IMPORTANT. The shadow agreed with the final production impact and aggregation did not change that impact. The final reported impact is IMPORTANT.';YES REQUIRES MANUAL CHECK; ,and ActionableScore result is Actionable Moderate / Strong Important candidate requiring manual review (with actual score 6)	MAYBE	REMOTE OOB DEADLOCK DANGER DISK INIT UAF SKIP LINUS INCREASED_TO_HIGH_BASED_ON_GUESSCVSS KPANIC_UNSUPPORTED_REMOVED	-	-	checked

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

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

1. ActionableScore

* Raw base score: 5.
* Conservative score: 5; no floor or cap changed it.
* Raw paranoid score: 6.
* Paranoid score: 6; no floor or cap changed it.
* Final recommended bucket: **Actionable Moderate / Strong Important candidate requiring manual review**::

2. Signal breakdown

* +2 real UAF: `opinfo->sess` is unrefcounted and can outlive the freed session.
* +2 remote reachability: an authenticated SMB client with share access can drive session teardown and AppInstanceId takeover.
* +1 reliable kernel crash/DoS: KASAN confirms the stale pointer reaches `_raw_write_lock`.
* +1 attacker-influenced lifetime sequence: the client can drive the old-session teardown and competing-session supersede operations.
* -1 hard race: successful triggering requires timing teardown against takeover.
* Paranoid +1 structured stale-object leverage: the stale session is used for a write lock and, if that succeeds, its file-table `idr` is subsequently read and potentially modified. This is materially beyond a read-only stale dereference.

Not awarded: controlled reclaim, attacker-selected lock target/payload, arbitrary write, disclosure, LPE, or proven C/I impact. The same crash received no additional availability point. The lock write is part of the UAF mechanics and was not separately double-counted as a generic overwrite.

3. Reachability analysis

The supported attacker is a remote authenticated SMB client authorized for the affected share, not host UID 0 or host administrator. It can create relevant opens and sessions and race teardown against takeover. No namespace capability is involved in the shown path. ksmbd service/share configuration is prior administrative setup, but the subsequent vulnerable operation is remotely invocable. Race reliability is limited, supporting the timing penalty.

4. Primitive and severity reading

This is an active structured-object UAF, not fixed stale storage. The stale `ksmbd_session` supplies `file_table`; `write_lock()` writes through freed slab storage, and later code may consume `ft->idr` and remove an entry. The shown effect is host-kernel memory access and plausible crash. Post-free structured corruption beyond that crash is credible but not controlled or proven exploitable, so this remains CLASS_B rather than CLASS_A.

The remote client/server trust boundary, confirmed stale lock write, and reachable later structured consumer make Important-vs-Moderate leverage unresolved. Therefore ImportantCandidate=YES and automatic downgrade is unsafe. There is no authorization DENY-to-ALLOW defect, so B4-PENDING does not apply.

5. One-sentence report phrase

A remote authenticated SMB client can race session teardown with AppInstanceId takeover, causing a stale session file-table lock write and possible subsequent IDR consumption in freed slab storage.

6. Manual review advice

MANUAL CHECK REQUIRED

Review reclaim behavior and whether the stale lock/IDR operations can corrupt a reused host-kernel object rather than only crash.

7. Call-site confidence

Call-site confidence: high

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

Patch: ksmbd: fix app-instance non-durable supersede session UAF [ Upstream commit f728cfee6929057087c303d07d7a6a7c61196b48 ]
Commit: a5b190b352b0ba85f4debe436f42950ced10fadb
Upstream URL: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a5b190b352b0ba85f4debe436f42950ced10fadb

Commit description:

ksmbd_close_fd_app_instance_id() supersedes a prior open that has the
same AppInstanceId. It reaches that open's session through opinfo->sess.
This pointer is not refcounted.

Session teardown detaches durable handles before it frees the session.
It does not detach a non-durable open. That open still points at the
session through opinfo->sess after the session is freed. Another session
can supersede the open at the same time. The supersede then takes a
write lock through the stale pointer, in the freed session's file table.

  BUG: KASAN: slab-use-after-free in _raw_write_lock+0x71/0xd0
  Call Trace:
   _raw_write_lock+0x71/0xd0
   ksmbd_close_fd_app_instance_id+0xd9/0x670 [ksmbd]
   smb2_open+0x3e10/0xd910 [ksmbd]
  Freed by task 212:
   ksmbd_session_destroy+0x38d/0x480 [ksmbd]

Fix this by looking the session up by opinfo->session_id. The lookup
returns a reference, as smb2_break_collect_channels() does. Recheck that
opinfo->sess still points at it before using it.

Do the lookup without m_lock held. destroy_previous_session() takes
m_lock under the session table lock, and taking them in the other order
here would deadlock.

Fixes: 16c30649709d ("ksmbd: handle durable v2 app instance id")
Cc: [email protected] # e0386cd6498b: ksmbd: validate AppInstanceId takeover target
Signed-off-by: Ian Bridges <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat -rw-r--r-- fs/smb/server/vfs_cache.c 32

Changed files:
  fs/smb/server/vfs_cache.c

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=a5b190b352b0ba85f4debe436f42950ced10fadb

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

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

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:L/UI:N/S:U/C:H/I:H/A:H
  The Best / paranoid CVSS score: 7.5

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: 5
  Paranoid ActionableScore: 6

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: NO
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	[relevance 21%]

Results 1-1 of 1 | reverse | sort options + mbox downloads above
-- links below jump to the message on this page --
2026-11-20  1:43 21% [CVE-2026-99289][IMPORTANT] ksmbd: fix app-instance non-durable supersede session UAF [ Upstream commit f728cfee6929057087c303d07d7a6a7c61196b48 ] AL-KERNEL

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