{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99750","id":"CVE-2026-99750","title":"Linux kernel unauthorized file deletion in ksmbd delete-on-close opens","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: require DELETE access for delete-on-close opens\n\nsmb2_open() accepts FILE_DELETE_ON_CLOSE on an existing file without\nDELETE in DesiredAccess. When the request asks only for\nFILE_READ_ATTRIBUTES or READ_CONTROL, it also skips inode_permission()\nand the parent directory MAY_WRITE | MAY_EXEC check that delete-on-close\nis mea","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: require DELETE access for delete-on-close opens\n\nsmb2_open() accepts FILE_DELETE_ON_CLOSE on an existing file without\nDELETE in DesiredAccess. When the request asks only for\nFILE_READ_ATTRIBUTES or READ_CONTROL, it also skips inode_permission()\nand the parent directory MAY_WRITE | MAY_EXEC check that delete-on-close\nis meant to get. The file is then marked for deletion by a caller who\ncould not delete it.\n\nThe unlink happens later, in __ksmbd_inode_close(), when the last handle\non the inode is closed, and it runs with the credentials of that handle.\nIf the caller closes last, the unlink fails. If another user who can\nwrite the parent directory, such as the file's owner, still has the file\nopen, the file is deleted when that user closes it. Until then new opens\nof the file fail with STATUS_DELETE_PENDING. So a user with only search\npermission on a directory can delete a file in it, or block opens of it,\nwhile the owner has it open.\n\nA MAXIMUM_ALLOWED open that also requests DELETE has the same problem.\nThe requested access is replaced with the maximal access, which does not\ninclude DELETE when the caller cannot write the parent directory, and the\nlater permission checks are skipped as already done.\n\nMS-FSA 2.1.5.1 requires an open with FILE_DELETE_ON_CLOSE and without\nDELETE in DesiredAccess to fail with STATUS_INVALID_PARAMETER, and Samba\ndoes the same. Add that check to the CreateOptions validation, using\nthe generic-mapped DesiredAccess so that GENERIC_ALL still qualifies.\nThis also refuses MAXIMUM_ALLOWED with FILE_DELETE_ON_CLOSE but no\nexplicit DELETE, as MS-FSA and Samba do. When MAXIMUM_ALLOWED is\nrequested with DELETE but the maximal access does not include DELETE,\nfail with STATUS_ACCESS_DENIED. With DELETE requested, delete-on-close\nopens go through the existing parent directory check.","published":"2026-11-20T05:51:20.619Z","updated":"2026-11-20T05:51:20.619Z","reserved":"2026-09-25T10:25:14.432Z","status":"PUBLISHED","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","lessThan":"cc71e3abb81ae1470c09acae85d989b42509a2e0","status":"affected","versionType":"git"},{"version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","lessThan":"2d0d4adb6bade8b204b10ad2a4c43f3b7d2af030","status":"affected","versionType":"git"},{"version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","lessThan":"7e9a78223752911e118710009aab9dd9e10b2ee7","status":"affected","versionType":"git"},{"version":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9","lessThan":"1dd91081ba3c692565f9c1f884149178d5a06d1e","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","lessThan":"5.15","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/cc71e3abb81ae1470c09acae85d989b42509a2e0","tags":[]},{"url":"https://git.kernel.org/stable/c/2d0d4adb6bade8b204b10ad2a4c43f3b7d2af030","tags":[]},{"url":"https://git.kernel.org/stable/c/7e9a78223752911e118710009aab9dd9e10b2ee7","tags":[]},{"url":"https://git.kernel.org/stable/c/1dd91081ba3c692565f9c1f884149178d5a06d1e","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-99750","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99750","ok":false,"note":"not found"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99750","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-99750","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}