CVE-2026-64399
ksmbd: add permission checks for FSCTL_DUPLICATE_EXTENTS_TO_FILE
Reported by linux · Published July 25, 2026
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.
EPSS 0.49% · 43.1th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 7.1.4, 6.18.39, 6.12.96, 6.6.145, 6.1.178 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | eb817368f50c1cbe1bd07044124aad7db6330e3a, eb817368f50c1cbe1bd07044124aad7db6330e3a, eb817368f50c1cbe1bd07044124aad7db6330e3a |
| Linux | Linux | 5.15, 0, 6.1.178 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
| Linux | Linux | *, *, * |
Timeline
- Jul 25, 2026 EPSS Score (30 in total, the first dated here)
- Jul 25, 2026 CVE Published
- Jul 26, 2026 Security Advisory (20 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (21 in total, the first dated here)
- Aug 17, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64399
vulnetix vdb fixes CVE-2026-64399
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64399/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart