CVE-2026-99750: ksmbd: require DELETE access for delete-on-close opens

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: require DELETE access for delete-on-close opens

smb2open() accepts FILEDELETEONCLOSE on an existing file without DELETE in DesiredAccess. When the request asks only for FILEREADATTRIBUTES or READCONTROL, it also skips inodepermission() and the parent directory MAYWRITE | MAYEXEC check that delete-on-close is meant to get. The file is then marked for deletion by a caller who could not delete it.

The unlink happens later, in ksmbdinodeclose(), when the last handle on the inode is closed, and it runs with the credentials of that handle. If the caller closes last, the unlink fails. If another user who can write the parent directory, such as the file's owner, still has the file open, the file is deleted when that user closes it. Until then new opens of the file fail with STATUSDELETEPENDING. So a user with only search permission on a directory can delete a file in it, or block opens of it, while the owner has it open.

A MAXIMUMALLOWED open that also requests DELETE has the same problem. The requested access is replaced with the maximal access, which does not include DELETE when the caller cannot write the parent directory, and the later permission checks are skipped as already done.

MS-FSA 2.1.5.1 requires an open with FILEDELETEONCLOSE and without DELETE in DesiredAccess to fail with STATUSINVALIDPARAMETER, and Samba does the same. Add that check to the CreateOptions validation, using the generic-mapped DesiredAccess so that GENERICALL still qualifies. This also refuses MAXIMUMALLOWED with FILEDELETEONCLOSE but no explicit DELETE, as MS-FSA and Samba do. When MAXIMUMALLOWED is requested with DELETE but the maximal access does not include DELETE, fail with STATUSACCESSDENIED. With DELETE requested, delete-on-close opens go through the existing parent directory check.

Affected Software

7 affected componentsFixes available
linux/kernel>=5.15.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-2, <=6.12.107-1, <=6.12.117-1, <=7.3.4-1
7.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.5-1
  5. Compensating control

    In ksmbd CreateOptions validation, require DELETE in the generic-mapped DesiredAccess for FILE_DELETE_ON_CLOSE opens; reject requests without DELETE with STATUS_INVALID_PARAMETER, and reject MAXIMUM_ALLOWED requests with DELETE when the maximal access does not include DELETE with STATUS_ACCESS_DENIED.

Event History

Nov 20, 2026
CVE Published
via MITRE·05:51 AM
Data Sourced
via MITRE·05:51 AM
Description
Data Sourced
via OSV·05:51 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

Who can exploit this issue?

An SMB client user who has only search permission on a directory can trigger the condition against a file in that directory. The user does not need DELETE access to the file if they can open it with FILE_DELETE_ON_CLOSE while requesting only FILE_READ_ATTRIBUTES or READ_CONTROL.

2

What is required for the file to actually be deleted?

The vulnerable caller can mark the file for deletion, but deletion occurs only when the last handle is closed. If the caller closes last, the unlink fails; if another user with permission to write the parent directory still has the file open and closes it last, the file is deleted.

3

What impact can occur before the file is removed?

After the file is marked for deletion, new opens fail with STATUS_DELETE_PENDING until the final handle closes. This allows a user without delete permission to deny access to the file even if deletion does not ultimately succeed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203