CVE-2026-99792: smb/server: prevent file publication after tree disconnect

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

smb/server: prevent file publication after tree disconnect

TREEDISCONNECT closes the tree's published file handles before marking and removing the tree connection. A concurrent CREATE that already holds a tree reference can therefore publish its file after the close pass. When CREATE drops its reference, the tree can be freed while the published file still points to it.

Mark and remove the tree connection before closing its files, and serialize both new-open and durable-reconnect volatile ID publication with that state transition. An opener is then either published in time for the close pass or rejected after disconnect with STATUSNETWORKNAMEDELETED.

Keep a tree reference while a file carries its tree pointer. This protects asynchronous users that can defer the file's final destruction past tree disconnect.

The close pass can race the successful FPNEW to FPINITED transition. Take the opening request's file reference atomically with that transition. This keeps the file alive until request completion even if teardown removes the ID immediately.

BUG: KASAN: slab-use-after-free in procshowfiles (fs/smb/server/vfscache.c:126) Read of size 4 at addr ff11000101540f80 by task poc/153

Call Trace: procshowfiles (fs/smb/server/vfscache.c:126) seqreaditer (fs/seqfile.c:231) procregreaditer (fs/proc/inode.c:299) vfsread (fs/readwrite.c:574) ksysread (fs/readwrite.c:716) dosyscall64 (arch/x86/entry/syscall64.c:84) entrySYSCALL64afterhwframe (arch/x86/entry/entry64.S:121)

Allocated by: ksmbdtreeconnconnect (fs/smb/server/mgmt/treeconnect.c:35) smb2treeconnect (fs/smb/server/smb2pdu.c:2819) handleksmbdwork (fs/smb/server/server.c:368)

Freed by: kfree (mm/slub.c:6801) handleksmbdwork (fs/smb/server/server.c:332)

Affected Software

5 affected componentsFixes available
linux/kernel>=5.15.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-2, <=6.12.107-1, <=6.12.117-1, <=7.3.4-1
7.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.5-1

Event History

Nov 20, 2026
CVE Published
via MITRE·05:51 AM
Data Sourced
via MITRE·05:51 AM
Description
Data Sourced
via OSV·05:51 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel SMB server are affected when they handle tree connections and file opens. The race involves a tree disconnect occurring concurrently with a CREATE operation or durable-reconnect volatile ID publication.

2

What does an attacker or client need to do to trigger the vulnerability?

A client must cause a TREE_DISCONNECT to race with an operation that already holds a reference to the tree, such as a concurrent CREATE. The resulting file can be published after the disconnect close pass and retain a pointer to a tree that can later be freed.

3

What runtime symptom can indicate this issue has been triggered?

The described failure is a KASAN slab-use-after-free reported in proc_show_files. This can occur when a published file still points to a freed tree connection.

4

What behavior should the corrected implementation enforce during disconnect?

It must mark and remove the tree connection before closing its files, while serializing new-open and durable-reconnect volatile ID publication against that transition. An opener should either be included in the close pass or fail with STATUS_NETWORK_NAME_DELETED.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203