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

ksmbd: require source read access for duplicate extents

FSCTL_DUPLICATE_EXTENTS_TO_FILE passes the source file directly to
vfs_clone_file_range() or vfs_copy_file_range() 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 FILE_READ_DATA on the source handle before either VFS operation,
matching other ksmbd data-copy paths.
Published: 2026-07-25
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability involves the ksmbd service in the Linux kernel. When a client issues the FSCTL_DUPLICATE_EXTENTS_TO_FILE ioctl, the kernel passes the source file reference directly to vfs_clone_file_range or vfs_copy_file_range without verifying the SMB access mask on the source handle. As a result, a handle opened with only attribute access can be used to copy data from the source into a destination that the attacker can read. This permits the attacker to read file contents that the SMB protocol would otherwise restrict, leading to unauthorized data disclosure. The weakness is an improper access control flaw (CWE‑358).

Affected Systems

Affected systems are Linux hosts running the kernel with ksmbd enabled that have not been patched to include the check for FILE_READ_DATA on the source handle. The specific kernel versions are not detailed in the advisory, so any kernel prior to the commit that introduced the guard is potentially vulnerable. The issue is confined to the ksmbd module and does not affect other SMB implementations in the kernel.

Risk and Exploitability

The CVSS score is 7.5, the EPSS score is listed as less than 1%, indicating a very low current exploitation probability. The vulnerability is not in the CISA KEV catalog. Exploitation requires an SMB session in which the attacker can open a source file with attribute or other non‑read permissions, then issue the duplicate‑extents ioctl. The target must be reachable over a network where SMB is exposed, and the attacker must be able to bypass regular file access controls. If exploited, the attacker could acquire sensitive data from files otherwise hidden by file permissions.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the fix for ksmbd requiring source read access.
  • Restrict SMB share permissions and enforce filesystem ACLs so that only users with explicit read rights can access files; avoid giving attribute‑only access across operations.
  • If SMB file sharing is not required, disable the ksmbd service.

Generated by OpenCVE AI on August 3, 2026 at 18:53 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

Tue, 28 Jul 2026 00:15:00 +0000


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

Type Values Removed Values Added
Metrics cvssV3_1

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


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: require source read access for duplicate extents FSCTL_DUPLICATE_EXTENTS_TO_FILE passes the source file directly to vfs_clone_file_range() or vfs_copy_file_range() 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 FILE_READ_DATA on the source handle before either VFS operation, matching other ksmbd data-copy paths.
Title ksmbd: require source read access for duplicate extents
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:32.736Z

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

Link: CVE-2026-64395

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

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

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

Link: CVE-2026-64395

cve-icon Redhat

Severity :

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

Links: CVE-2026-64395 - Bugzilla

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-358

    Improperly Implemented Security Check for Standard