{"api_version":"1","generated_at":"2026-11-20T07:29:57+00:00","cve":"CVE-2026-99792","urls":{"html":"https://cve.report/CVE-2026-99792","api":"https://cve.report/api/cve/CVE-2026-99792.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99792","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99792"},"summary":{"title":"smb/server: prevent file publication after tree disconnect","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb/server: prevent file publication after tree disconnect\n\nTREE_DISCONNECT closes the tree's published file handles before marking and\nremoving the tree connection. A concurrent CREATE that already holds a tree\nreference can therefore publish its file after the close pass. When CREATE\ndrops its reference, the tree can be freed while the published file still\npoints to it.\n\nMark and remove the tree connection before closing its files, and serialize\nboth new-open and durable-reconnect volatile ID publication with that state\ntransition. An opener is then either published in time for the close pass\nor rejected after disconnect with STATUS_NETWORK_NAME_DELETED.\n\nKeep a tree reference while a file carries its tree pointer. This protects\nasynchronous users that can defer the file's final destruction past tree\ndisconnect.\n\nThe close pass can race the successful FP_NEW to FP_INITED transition.\nTake the opening request's file reference atomically with that transition.\nThis keeps the file alive until request completion even if teardown removes\nthe ID immediately.\n\n  BUG: KASAN: slab-use-after-free in proc_show_files (fs/smb/server/vfs_cache.c:126)\n  Read of size 4 at addr ff11000101540f80 by task poc/153\n\n  Call Trace:\n    proc_show_files (fs/smb/server/vfs_cache.c:126)\n    seq_read_iter (fs/seq_file.c:231)\n    proc_reg_read_iter (fs/proc/inode.c:299)\n    vfs_read (fs/read_write.c:574)\n    ksys_read (fs/read_write.c:716)\n    do_syscall_64 (arch/x86/entry/syscall_64.c:84)\n    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n\n  Allocated by:\n    ksmbd_tree_conn_connect (fs/smb/server/mgmt/tree_connect.c:35)\n    smb2_tree_connect (fs/smb/server/smb2pdu.c:2819)\n    handle_ksmbd_work (fs/smb/server/server.c:368)\n\n  Freed by:\n    kfree (mm/slub.c:6801)\n    handle_ksmbd_work (fs/smb/server/server.c:332)","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:18","updated_at":"2026-11-20 06:18:18"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/fc5ac6813830eaf5b850e89d57403da1e1c50432","name":"https://git.kernel.org/stable/c/fc5ac6813830eaf5b850e89d57403da1e1c50432","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2ff3730998b015b5b0a3f28330bee16c648dd114","name":"https://git.kernel.org/stable/c/2ff3730998b015b5b0a3f28330bee16c648dd114","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99792","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99792","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f44158485826c076335d6860d35872271a83791d fc5ac6813830eaf5b850e89d57403da1e1c50432 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f44158485826c076335d6860d35872271a83791d 2ff3730998b015b5b0a3f28330bee16c648dd114 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/smb/server/mgmt/tree_connect.c","fs/smb/server/mgmt/tree_connect.h","fs/smb/server/smb2pdu.c","fs/smb/server/vfs_cache.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"fc5ac6813830eaf5b850e89d57403da1e1c50432","status":"affected","version":"f44158485826c076335d6860d35872271a83791d","versionType":"git"},{"lessThan":"2ff3730998b015b5b0a3f28330bee16c648dd114","status":"affected","version":"f44158485826c076335d6860d35872271a83791d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/server/mgmt/tree_connect.c","fs/smb/server/mgmt/tree_connect.h","fs/smb/server/smb2pdu.c","fs/smb/server/vfs_cache.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.15"},{"lessThan":"5.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb/server: prevent file publication after tree disconnect\n\nTREE_DISCONNECT closes the tree's published file handles before marking and\nremoving the tree connection. A concurrent CREATE that already holds a tree\nreference can therefore publish its file after the close pass. When CREATE\ndrops its reference, the tree can be freed while the published file still\npoints to it.\n\nMark and remove the tree connection before closing its files, and serialize\nboth new-open and durable-reconnect volatile ID publication with that state\ntransition. An opener is then either published in time for the close pass\nor rejected after disconnect with STATUS_NETWORK_NAME_DELETED.\n\nKeep a tree reference while a file carries its tree pointer. This protects\nasynchronous users that can defer the file's final destruction past tree\ndisconnect.\n\nThe close pass can race the successful FP_NEW to FP_INITED transition.\nTake the opening request's file reference atomically with that transition.\nThis keeps the file alive until request completion even if teardown removes\nthe ID immediately.\n\n  BUG: KASAN: slab-use-after-free in proc_show_files (fs/smb/server/vfs_cache.c:126)\n  Read of size 4 at addr ff11000101540f80 by task poc/153\n\n  Call Trace:\n    proc_show_files (fs/smb/server/vfs_cache.c:126)\n    seq_read_iter (fs/seq_file.c:231)\n    proc_reg_read_iter (fs/proc/inode.c:299)\n    vfs_read (fs/read_write.c:574)\n    ksys_read (fs/read_write.c:716)\n    do_syscall_64 (arch/x86/entry/syscall_64.c:84)\n    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n\n  Allocated by:\n    ksmbd_tree_conn_connect (fs/smb/server/mgmt/tree_connect.c:35)\n    smb2_tree_connect (fs/smb/server/smb2pdu.c:2819)\n    handle_ksmbd_work (fs/smb/server/server.c:368)\n\n  Freed by:\n    kfree (mm/slub.c:6801)\n    handle_ksmbd_work (fs/smb/server/server.c:332)"}],"providerMetadata":{"dateUpdated":"2026-11-20T05:51:52.304Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/fc5ac6813830eaf5b850e89d57403da1e1c50432"},{"url":"https://git.kernel.org/stable/c/2ff3730998b015b5b0a3f28330bee16c648dd114"}],"title":"smb/server: prevent file publication after tree disconnect","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99792","datePublished":"2026-11-20T05:51:52.304Z","dateReserved":"2026-09-25T10:25:14.434Z","dateUpdated":"2026-11-20T05:51:52.304Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:18","lastModifiedDate":"2026-11-20 06:18:18","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99792","Ordinal":"1","Title":"smb/server: prevent file publication after tree disconnect","CVE":"CVE-2026-99792","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99792","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb/server: prevent file publication after tree disconnect\n\nTREE_DISCONNECT closes the tree's published file handles before marking and\nremoving the tree connection. A concurrent CREATE that already holds a tree\nreference can therefore publish its file after the close pass. When CREATE\ndrops its reference, the tree can be freed while the published file still\npoints to it.\n\nMark and remove the tree connection before closing its files, and serialize\nboth new-open and durable-reconnect volatile ID publication with that state\ntransition. An opener is then either published in time for the close pass\nor rejected after disconnect with STATUS_NETWORK_NAME_DELETED.\n\nKeep a tree reference while a file carries its tree pointer. This protects\nasynchronous users that can defer the file's final destruction past tree\ndisconnect.\n\nThe close pass can race the successful FP_NEW to FP_INITED transition.\nTake the opening request's file reference atomically with that transition.\nThis keeps the file alive until request completion even if teardown removes\nthe ID immediately.\n\n  BUG: KASAN: slab-use-after-free in proc_show_files (fs/smb/server/vfs_cache.c:126)\n  Read of size 4 at addr ff11000101540f80 by task poc/153\n\n  Call Trace:\n    proc_show_files (fs/smb/server/vfs_cache.c:126)\n    seq_read_iter (fs/seq_file.c:231)\n    proc_reg_read_iter (fs/proc/inode.c:299)\n    vfs_read (fs/read_write.c:574)\n    ksys_read (fs/read_write.c:716)\n    do_syscall_64 (arch/x86/entry/syscall_64.c:84)\n    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n\n  Allocated by:\n    ksmbd_tree_conn_connect (fs/smb/server/mgmt/tree_connect.c:35)\n    smb2_tree_connect (fs/smb/server/smb2pdu.c:2819)\n    handle_ksmbd_work (fs/smb/server/server.c:368)\n\n  Freed by:\n    kfree (mm/slub.c:6801)\n    handle_ksmbd_work (fs/smb/server/server.c:332)","Type":"Description","Title":"smb/server: prevent file publication after tree disconnect"}]}}}