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.
OpenCVE Enrichment
Debian DLA