CVE-2026-99792
published high CVSS 3.1 · 8.8smb/server: prevent file publication after tree disconnect
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf44158485826c076335d6860d35872271a83791d to < fc5ac6813830eaf5b850e89d57403da1e1c50432 · f44158485826c076335d6860d35872271a83791d to < 2ff3730998b015b5b0a3f28330bee16c648dd114 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: smb/server: prevent file publication after tree disconnect TREE_DISCONNECT 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 STATUS_NETWORK_NAME_DELETED. 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 FP_NEW to FP_INITED 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 proc_show_files (fs/smb/server/vfs_cache.c:126) Read of size 4 at addr ff11000101540f80 by task poc/153 Call Trace: proc_show_files (fs/smb/server/vfs_cache.c:126) seq_read_iter (fs/seq_file.c:231) proc_reg_read_iter (fs/proc/inode.c:299) vfs_read (fs/read_write.c:574) ksys_read (fs/read_write.c:716) do_syscall_64 (arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) Allocated by: ksmbd_tree_conn_connect (fs/smb/server/mgmt/tree_connect.c:35) smb2_tree_connect (fs/smb/server/smb2pdu.c:2819) handle_ksmbd_work (fs/smb/server/server.c:368) Freed by: kfree (mm/slub.c:6801) handle_ksmbd_work (fs/smb/server/server.c:332)
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - SMB2 CREATE and SMB2 TREE_DISCONNECT are the attacker-controlled PDUs. ksmbd_tcp_new_connection accepts the TCP socket, ksmbd_conn_handler_loop reads each PDU, and queue_ksmbd_work hands it to handle_ksmbd_work, which calls smb2_open and smb2_tree_disconnect; those race ksmbd_open_fd's publication of fp->tcon against ksmbd_close_tree_conn_fds. AC:L - The same client sends both PDUs. ksmbd_conn_handler_loop does not wait for a worker to finish before reading the next request, so the CREATE and TREE_DISCONNECT workers run together and the client can repeat the window between ksmbd_update_fstate storing FP_INITED and smb2_set_request_open taking its reference. PR:L - handle_ksmbd_work calls smb2_check_user_session, which accepts SMB2 CREATE and SMB2 TREE_DISCONNECT only for an SMB2_SESSION_VALID session, then smb2_get_ksmbd_tcon resolves the header TreeId with ksmbd_tree_conn_lookup. That session exists only after smb2_sess_setup has authenticated the user. UI:N - The authenticated client itself sends the TREE_CONNECT, the CREATE, and the TREE_DISCONNECT, and the CREATE worker reaches the freed ksmbd_file on that path. S:U - The freed objects are ksmbd_file and ksmbd_tree_connect in the host kernel that serves the share. The corruption stays in that kernel and does not cross a guest-to-host or IOMMU boundary. C:H - If ksmbd_close_tree_conn_fds wins after ksmbd_update_fstate stores FP_INITED but before smb2_set_request_open calls ksmbd_file_get, __ksmbd_close_fd frees the filp_cache object and the CREATE error path's ksmbd_fd_put reads that slot and can fput whatever a later CREATE reused. proc_show_files also reads the freed tree id. I:H - ksmbd_fd_put's atomic_dec_and_test writes the freed ksmbd_file slot and, once a reused object hits zero, __ksmbd_close_fd calls fput and kmem_cache_free on it. That is a kernel write and free of a filp_cache object the attacker reallocates with further SMB2 CREATE requests. A:H - The CREATE worker continues in ksmbd_fd_put and __ksmbd_close_fd against the freed filp_cache object, which double-frees or faults. The reported KASAN slab-use-after-free is proc_show_files reading fp->tcon->id after handle_ksmbd_work has kfreed the tree connection.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f44158485826c076335d6860d35872271a83791d to < fc5ac6813830eaf5b850e89d57403da1e1c50432 (affected · git)f44158485826c076335d6860d35872271a83791d to < 2ff3730998b015b5b0a3f28330bee16c648dd114 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
smb/server: prevent file publication after tree disconnect
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 57ae4b6c786d63b502689a69903ac7bc5aa521e4056c5285af63d0daea04f9e6
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record