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

ksmbd: add permission checks for FSCTL_DUPLICATE_EXTENTS_TO_FILE

The FSCTL_DUPLICATE_EXTENTS_TO_FILE arm of smb2_ioctl() overwrites the
destination file's data via vfs_clone_file_range() with neither the
share-level KSMBD_TREE_CONN_FLAG_WRITABLE 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 FILE_WRITE_ATTRIBUTES (which still yields an FMODE_WRITE filp).
FILE_WRITE_ATTRIBUTES-only destination handle overwrote the file's data via
the clone. Add both checks, matching the FSCTL_SET_SPARSE permission fix;
require FILE_WRITE_DATA since this writes data.
Published: 2026-07-25
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The ksmbd component of the Linux kernel incorrectly allows the FSCTL_DUPLICATE_EXTENTS_TO_FILE ioctl to call vfs_clone_file_range without enforcing the share‑level writable flag or per‑handle access checks. This flaw lets a client connected to an SMB share overwrite the contents of a target file even when the share is read‑only or the file handle is opened only with FILE_WRITE_ATTRIBUTES, effectively granting unauthorized write capability. The vulnerability is an instance of the improper authorization weakness CWE‑250 and can lead to data corruption and integrity loss on the affected system.

Affected Systems

All Linux kernel releases that expose the ksmbd SMB2 server daemon and support the FSCTL_DUPLICATE_EXTENTS_TO_FILE operation are affected until the permission‑check patch is applied. The patch was introduced in a commit that added writable‑flag and per‑handle checks; any kernel incorporating that commit is no longer vulnerable.

Risk and Exploitability

The CVSS score of 9.8 signals a critical severity, but the EPSS score of <1% indicates low current exploitation probability, and the flaw is not listed in CISA's KEV catalog. Attackers can exploit the vulnerability by sending a specially crafted FSCTL_DUPLICATE_EXTENTS_TO_FILE request over an SMB network connection, with no need for elevated host privileges. Despite the low exploitation likelihood, the potential for silent data overwrite warrants prompt remediation.

Generated by OpenCVE AI on August 3, 2026 at 18:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the ksmbd permission‑check patch (any release following the commit that added the checks).
  • Restrict SMB service exposure to trusted networks and remove or disable shares that should remain read‑only, ensuring that write‑able shares are protected with correct FILE_WRITE_DATA permissions.
  • Configure SELinux or AppArmor to limit the use of the FSCTL_DUPLICATE_EXTENTS_TO_FILE ioctl to privileged processes or specific users, and monitor SMB logs for unexpected use of this ioctl.

Generated by OpenCVE AI on August 3, 2026 at 18:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4720-1 linux security update
Debian DLA Debian DLA DLA-4723-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Thu, 30 Jul 2026 12:15:00 +0000


Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: add permission checks for FSCTL_DUPLICATE_EXTENTS_TO_FILE The FSCTL_DUPLICATE_EXTENTS_TO_FILE arm of smb2_ioctl() overwrites the destination file's data via vfs_clone_file_range() with neither the share-level KSMBD_TREE_CONN_FLAG_WRITABLE 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 FILE_WRITE_ATTRIBUTES (which still yields an FMODE_WRITE filp). FILE_WRITE_ATTRIBUTES-only destination handle overwrote the file's data via the clone. Add both checks, matching the FSCTL_SET_SPARSE permission fix; require FILE_WRITE_DATA since this writes data.
Title ksmbd: add permission checks for FSCTL_DUPLICATE_EXTENTS_TO_FILE
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:41:37.295Z

Reserved: 2026-07-19T15:36:31.785Z

Link: CVE-2026-64399

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:23.397

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64399

cve-icon Redhat

Severity :

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64399 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:00:05Z

Weaknesses
  • CWE-250

    Execution with Unnecessary Privileges