{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99533","id":"CVE-2026-99533","title":"Linux ksmbd unauthorized file closure in AppInstanceId takeover","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 th","descriptionLong":"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.","published":"2026-11-19T14:44:45.808Z","updated":"2026-11-19T15:18:09.183Z","reserved":"2026-09-25T10:25:14.420Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"16c30649709d949b439273e61769028b1e706327","lessThan":"896ecf714703f6801af43b6d3db4b824d8a12286","status":"affected","versionType":"git"},{"version":"16c30649709d949b439273e61769028b1e706327","lessThan":"e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","lessThan":"7.2","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/896ecf714703f6801af43b6d3db4b824d8a12286","tags":[]},{"url":"https://git.kernel.org/stable/c/e0386cd6498b9c63f8c6d10b3e08670b92c0f3f1","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99533","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99533","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99533","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99533","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}