Samba
Samba: access control bypass via vfs_ceph_rgw case-insensitive open
An access control bypass flaw was identified in Samba's vfs_ceph_rgw module in it's openat() function. An authenticated user can bypass access controls to read or overwrite restricted files on shares configured with the experimental vfs_ceph_rgw module. When a client requests an existing file using mismatched character casing, the module fails to perform a case-insensitive lookup correctly, causing the server to treat the operation as creating a new file. As a result, the server skips standard permission checks on the existing file, allowing the attacker to access or overwrite sensitive data owned by other users.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.25.0, < 4.25.1
Fixed in 4.25.1
Mitigation
Upgrade Samba to 4.25.1 or later.
Workaround
Only shares configured with the vfs_ceph_rgw module are affected. To mitigate this vulnerability, disable the experimental `vfs_ceph_rgw` module on any configured Samba shares. Edit `/etc/samba/smb.conf` to remove `ceph_rgw` from the `vfs objects` setting under the relevant share sections, then reload the Samba service: ``` systemctl reload smb ``` Warning: Reloading or restarting the `smb` service may briefly interrupt active client sessions. Additionally, removing this module disables Ceph RGW integration for the affected shares. Setting ```case sensitive = yes``` on affected shares avoids the vulnerability, because the differently-cased name is then treated as a distinct object rather than resolving to the existing file. Note: This changes share behavior for clients that rely on case-insensitive name handling.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.