{"api_version":"1","generated_at":"2026-11-24T19:55:03+00:00","cve":"CVE-2026-99533","urls":{"html":"https://cve.report/CVE-2026-99533","api":"https://cve.report/api/cve/CVE-2026-99533.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99533","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99533"},"summary":{"title":"ksmbd: validate AppInstanceId takeover target","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate AppInstanceId takeover target\n\nAppInstanceId lookup currently selects the first open with the matching\nidentifier. CREATE for an unrelated share or path can therefore\nforce-close another session's open before authorization of the new\ntarget. Matching only the base path also conflates alternate data streams\nwith the unnamed stream.\n\nMS-SMB2 requires the old open to match the share and path, belong to a\ndifferent ClientGuid, and be closed only when the requester has\nGENERIC_READ access. Search all opens with the ID and match share,\nresolved path, stream, and the current connection's client GUID. Retain a\nshare configuration reference in ksmbd_file and reuse its name instead of\nallocating a name for every open. This keeps matching safe during tree\nconnection teardown and preserves name-based matching across configuration\nupdates.\n\nRefresh the share reference on durable reconnect and restore the old\nreference if reopening fails. Serialize connection and share comparisons\nwith durable disconnect/reconnect, and recheck the target before closing\nit. Keep the original ClientGuid for durable replay and lease checks.\n\nCheck AppInstanceVersion before querying access, even when GENERIC_READ\nis absent, and before disconnected delete-on-close cleanup. Rejected\nCREATE must leave other durable opens untouched. Calculate maximal access\non the matched open's referenced path so a rename cannot substitute another\nfile's authorization. Require read access with the effective VFS\ncredentials as well as the NT DACL before takeover. Access denial only\nskips takeover and leaves CREATE to its normal access checks. Restore\nfilesystem credentials before returning a takeover error.\n\nHandle takeover before checking FILE_CREATE collisions, and re-resolve\nthe path after closing the old open. This lets delete-on-close remove the\nold file before a new one is created. Include SYNCHRONIZE in the baseline\nmaximal-access mask so read-only files report GENERIC_READ correctly.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-19 15:18:09","updated_at":"2026-11-19 15:18:09"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1","name":"https://git.kernel.org/stable/c/e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/896ecf714703f6801af43b6d3db4b824d8a12286","name":"https://git.kernel.org/stable/c/896ecf714703f6801af43b6d3db4b824d8a12286","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99533","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99533","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 16c30649709d949b439273e61769028b1e706327 896ecf714703f6801af43b6d3db4b824d8a12286 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 16c30649709d949b439273e61769028b1e706327 e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 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/smb2pdu.c","fs/smb/server/vfs.c","fs/smb/server/vfs_cache.c","fs/smb/server/vfs_cache.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"896ecf714703f6801af43b6d3db4b824d8a12286","status":"affected","version":"16c30649709d949b439273e61769028b1e706327","versionType":"git"},{"lessThan":"e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1","status":"affected","version":"16c30649709d949b439273e61769028b1e706327","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/server/smb2pdu.c","fs/smb/server/vfs.c","fs/smb/server/vfs_cache.c","fs/smb/server/vfs_cache.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.2"},{"lessThan":"7.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","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.2","versionStartIncluding":"7.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate AppInstanceId takeover target\n\nAppInstanceId lookup currently selects the first open with the matching\nidentifier. CREATE for an unrelated share or path can therefore\nforce-close another session's open before authorization of the new\ntarget. Matching only the base path also conflates alternate data streams\nwith the unnamed stream.\n\nMS-SMB2 requires the old open to match the share and path, belong to a\ndifferent ClientGuid, and be closed only when the requester has\nGENERIC_READ access. Search all opens with the ID and match share,\nresolved path, stream, and the current connection's client GUID. Retain a\nshare configuration reference in ksmbd_file and reuse its name instead of\nallocating a name for every open. This keeps matching safe during tree\nconnection teardown and preserves name-based matching across configuration\nupdates.\n\nRefresh the share reference on durable reconnect and restore the old\nreference if reopening fails. Serialize connection and share comparisons\nwith durable disconnect/reconnect, and recheck the target before closing\nit. Keep the original ClientGuid for durable replay and lease checks.\n\nCheck AppInstanceVersion before querying access, even when GENERIC_READ\nis absent, and before disconnected delete-on-close cleanup. Rejected\nCREATE must leave other durable opens untouched. Calculate maximal access\non the matched open's referenced path so a rename cannot substitute another\nfile's authorization. Require read access with the effective VFS\ncredentials as well as the NT DACL before takeover. Access denial only\nskips takeover and leaves CREATE to its normal access checks. Restore\nfilesystem credentials before returning a takeover error.\n\nHandle takeover before checking FILE_CREATE collisions, and re-resolve\nthe path after closing the old open. This lets delete-on-close remove the\nold file before a new one is created. Include SYNCHRONIZE in the baseline\nmaximal-access mask so read-only files report GENERIC_READ correctly."}],"providerMetadata":{"dateUpdated":"2026-11-19T14:44:45.808Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/896ecf714703f6801af43b6d3db4b824d8a12286"},{"url":"https://git.kernel.org/stable/c/e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1"}],"title":"ksmbd: validate AppInstanceId takeover target","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99533","datePublished":"2026-11-19T14:44:45.808Z","dateReserved":"2026-09-25T10:25:14.420Z","dateUpdated":"2026-11-19T14:44:45.808Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-19 15:18:09","lastModifiedDate":"2026-11-19 15:18:09","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99533","Ordinal":"1","Title":"ksmbd: validate AppInstanceId takeover target","CVE":"CVE-2026-99533","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99533","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate AppInstanceId takeover target\n\nAppInstanceId lookup currently selects the first open with the matching\nidentifier. CREATE for an unrelated share or path can therefore\nforce-close another session's open before authorization of the new\ntarget. Matching only the base path also conflates alternate data streams\nwith the unnamed stream.\n\nMS-SMB2 requires the old open to match the share and path, belong to a\ndifferent ClientGuid, and be closed only when the requester has\nGENERIC_READ access. Search all opens with the ID and match share,\nresolved path, stream, and the current connection's client GUID. Retain a\nshare configuration reference in ksmbd_file and reuse its name instead of\nallocating a name for every open. This keeps matching safe during tree\nconnection teardown and preserves name-based matching across configuration\nupdates.\n\nRefresh the share reference on durable reconnect and restore the old\nreference if reopening fails. Serialize connection and share comparisons\nwith durable disconnect/reconnect, and recheck the target before closing\nit. Keep the original ClientGuid for durable replay and lease checks.\n\nCheck AppInstanceVersion before querying access, even when GENERIC_READ\nis absent, and before disconnected delete-on-close cleanup. Rejected\nCREATE must leave other durable opens untouched. Calculate maximal access\non the matched open's referenced path so a rename cannot substitute another\nfile's authorization. Require read access with the effective VFS\ncredentials as well as the NT DACL before takeover. Access denial only\nskips takeover and leaves CREATE to its normal access checks. Restore\nfilesystem credentials before returning a takeover error.\n\nHandle takeover before checking FILE_CREATE collisions, and re-resolve\nthe path after closing the old open. This lets delete-on-close remove the\nold file before a new one is created. Include SYNCHRONIZE in the baseline\nmaximal-access mask so read-only files report GENERIC_READ correctly.","Type":"Description","Title":"ksmbd: validate AppInstanceId takeover target"}]}}}