PT-2026-152671
CVE-2026-99792
·
Published
2026-11-20
·
Updated
2026-11-20
Description by
CVSS 3.1
8.8
HighMetricsAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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)
Found an issue in the description? Have something to add? Feel free to write us 👾