CVE-2026-64399: ksmbd: add permission checks for FSCTL_DUPLICATE_EXTENTS_TO_FILE

Published Jul 25, 2026
·
Updated

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

ksmbd: add permission checks for FSCTLDUPLICATEEXTENTSTOFILE

The FSCTLDUPLICATEEXTENTSTOFILE arm of smb2ioctl() overwrites the destination file's data via vfsclonefilerange() with neither the share-level KSMBDTREECONNFLAGWRITABLE check nor a per-handle fp->daccess check that the other write-bearing arms carry. A client can overwrite destination data on a read-only share, or from a handle opened with only FILEWRITEATTRIBUTES (which still yields an FMODEWRITE filp). FILEWRITEATTRIBUTES-only destination handle overwrote the file's data via the clone. Add both checks, matching the FSCTLSETSPARSE permission fix; require FILEWRITEDATA since this writes data.

Affected Software

6 affected components
Linux Linux kernel
Linux Linux kernel>=5.15<6.1.178
Linux Linux kernel>=6.2<6.6.145
Linux Linux kernel>=6.7<6.12.96
Linux Linux kernel>=6.13<6.18.39
Linux Linux kernel>=6.19<7.1.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Ensure ksmbd performs the necessary permission checks for the smb2_ioctl FSCTL_DUPLICATE_EXTENTS_TO_FILE arm so it cannot overwrite destination data when the destination is on a read-only share or when the handle is opened with only FILE_WRITE_ATTRIBUTES; require FILE_WRITE_DATA since the operation writes data.

    ksmbd (SMB server) permission checks for FSCTL_DUPLICATE_EXTENTS_TO_FILE = require FILE_WRITE_DATA (not only FILE_WRITE_ATTRIBUTES) for handles performing FSCTL_DUPLICATE_EXTENTS_TO_FILE

Event History

Jul 25, 2026
CVE Published
via MITRE·08:50 AM
Data Sourced
via MITRE·08:50 AM
DescriptionSeverity
Data Sourced
via NVD·10:17 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-64399?

CVE-2026-64399 has a critical severity rating of 9.8 according to the CVSS 3.1 scoring system.

2

How do I fix CVE-2026-64399?

To fix CVE-2026-64399, update to the latest version of the Linux kernel that includes the appropriate patches for this vulnerability.

3

What impact does CVE-2026-64399 have?

CVE-2026-64399 allows attackers to overwrite a destination file's data, potentially leading to data loss or corruption.

4

Which software is affected by CVE-2026-64399?

CVE-2026-64399 affects the Linux kernel, specifically in the ksmbd component related to SMB file sharing.

5

Is CVE-2026-64399 actively exploited?

As of the latest updates, there are no public reports indicating active exploitation of CVE-2026-64399.

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