CVE-2026-99792 (GCVE-0-2026-99792)
Vulnerability from cvelistv5 – Published: 2026-11-20 05:51 – Updated: 2026-11-22 11:10
VLAI
EPSS
VEX
Title
smb/server: prevent file publication after tree disconnect
Summary
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)
Severity
8.8 (High)
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
f44158485826c076335d6860d35872271a83791d , < fc5ac6813830eaf5b850e89d57403da1e1c50432
(git)
Affected: f44158485826c076335d6860d35872271a83791d , < 2ff3730998b015b5b0a3f28330bee16c648dd114 (git) |
|
| Linux | Linux |
Affected:
5.15
Unaffected: 0 , < 5.15 (semver) Unaffected: 7.3.5 , ≤ 7.3.* (semver) Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix) |
{
"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\u0027s 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\u0027s final destruction past tree\ndisconnect.\n\nThe close pass can race the successful FP_NEW to FP_INITED transition.\nTake the opening request\u0027s 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)"
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 8.8,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "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\u0027s publication of fp-\u003etcon against ksmbd_close_tree_conn_fds.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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\u0027s ksmbd_fd_put reads that slot and can fput whatever a later CREATE reused. proc_show_files also reads the freed tree id.\nI:H - ksmbd_fd_put\u0027s 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.\nA: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-\u003etcon-\u003eid after handle_ksmbd_work has kfreed the tree connection."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-22T11:10:08.269Z",
"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-22T11:10:08.269Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-99792",
"date": "2026-11-23",
"epss": "0.00361",
"percentile": "0.30534"
},
"microsoft_vex": {
"current_release_date": "2026-11-21T01:18:45.000Z",
"cve": "CVE-2026-99792",
"id": "msrc_CVE-2026-99792",
"initial_release_date": "2026-11-20T18:08:50.000Z",
"product_status:known_affected": "1",
"product_status:under_investigation": "1",
"source": "Microsoft CSAF VEX",
"status": "final",
"title": "smb/server: prevent file publication after tree disconnect",
"url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99792.json",
"version": "2"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"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"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"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\u0027s 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\u0027s final destruction past tree\ndisconnect.\n\nThe close pass can race the successful FP_NEW to FP_INITED transition.\nTake the opening request\u0027s 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)"
}
],
"id": "CVE-2026-99792",
"lastModified": "2026-11-22T11:17:10.083",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
}
]
},
"published": "2026-11-20T06:18:18.627",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/2ff3730998b015b5b0a3f28330bee16c648dd114"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/fc5ac6813830eaf5b850e89d57403da1e1c50432"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-22T11:36:21+00:00",
"cve": "CVE-2026-99792",
"id": "CVE-2026-99792",
"initial_release_date": "2026-11-20T05:51:52.304000+00:00",
"product_status:known_not_affected": "204",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: kernel: ksmbd: Denial of Service via use-after-free during tree disconnect",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99792.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "not set",
"current_release_date": "2026-11-20T17:39:18Z",
"cve": "CVE-2026-99792",
"id": "CVE-2026-99792",
"initial_release_date": "2026-11-20T17:39:18Z",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2026-99792",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99792.json",
"version": "2"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…