Linux
ksmbd: require source read access for duplicate extents
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= eb817368f50c1cbe1bd07044124aad7db6330e3a, < 2d2ab6983620c2d60ce7db72133984ca3873b929
- >= eb817368f50c1cbe1bd07044124aad7db6330e3a, < 67bdad9cf01b25030e3bf00bbce6c309319d6663
- >= eb817368f50c1cbe1bd07044124aad7db6330e3a, < b0d4d5cb846a1ddb7aaab9adfb5986e4540e6e5f
- >= eb817368f50c1cbe1bd07044124aad7db6330e3a, < db231af842868268839f9f9619c68cb27830d8be
- >= eb817368f50c1cbe1bd07044124aad7db6330e3a, < a10942af27832c2761d020863a46e79bebe0567d
- >= eb817368f50c1cbe1bd07044124aad7db6330e3a, < cedff600f1642aa982178503552f0d007bc829c8
Fixed in 2d2ab6983620c2d60ce7db72133984ca3873b929, 67bdad9cf01b25030e3bf00bbce6c309319d6663, b0d4d5cb846a1ddb7aaab9adfb5986e4540e6e5f, db231af842868268839f9f9619c68cb27830d8be, a10942af27832c2761d020863a46e79bebe0567d, cedff600f1642aa982178503552f0d007bc829c8
- 5.15
Fixed in 0, 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to 2d2ab6983620c2d60ce7db72133984ca3873b929 or 67bdad9cf01b25030e3bf00bbce6c309319d6663 or b0d4d5cb846a1ddb7aaab9adfb5986e4540e6e5f or db231af842868268839f9f9619c68cb27830d8be or a10942af27832c2761d020863a46e79bebe0567d or cedff600f1642aa982178503552f0d007bc829c8 or later.
Upgrade Linux to 0 or 6.1.178 or 6.6.145 or 6.12.96 or 6.18.39 or 7.1.4 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.