CVE-2026-64395: ksmbd: require source read access for duplicate extents

Published Jul 25, 2026
·
Updated

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

ksmbd: require source read access for duplicate extents

FSCTLDUPLICATEEXTENTSTOFILE passes the source file directly to vfsclonefilerange() or vfscopyfilerange() without checking the SMB access mask granted to the source handle. A handle opened with attribute access can consequently be used to copy file contents into an attacker-readable destination.

Require FILEREADDATA on the source handle before either VFS operation, matching other ksmbd data-copy paths.

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. Compensating control

    Apply the fix described in the resolved Linux kernel update: require FILE_READ_DATA on the source handle before performing either VFS operation for ksmbd duplicate extents, ensuring source read access is checked prior to vfs_clone_file_range() / vfs_copy_file_range() paths.

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

Who is exposed to this issue?

Systems running ksmbd are exposed when SMB clients can obtain a source-file handle with attribute access but without read-data permission. The issue affects confidentiality by allowing source contents to be copied into a destination the attacker can read.

2

What does an attacker need to exploit it?

An attacker needs network access to the SMB service and must be able to invoke FSCTL_DUPLICATE_EXTENTS_TO_FILE using a source handle that lacks FILE_READ_DATA but has attribute access. No prior privileges or user interaction are indicated by the CVSS vector.

3

What should be done if patching cannot happen immediately?

Restrict access to the ksmbd SMB service to trusted clients and prevent untrusted users from obtaining SMB handles to sensitive files. Limiting access to files containing sensitive data reduces the risk of their contents being copied to attacker-readable destinations.

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