ksmbd: require source read access for duplicate extents
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ eb817368f50c1cbe1bd07044124aad7db6330e3a · < cedff600f1642aa982178503552f0d007bc829c8| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s ksmbd component does not check whether a source SMB handle has read-data access before duplicating file contents. An attacker with a source handle opened for attribute access can copy those contents to a destination they can read.
Operators running the Linux kernel with ksmbd should check their deployments; affected versions are not specified.