CVE-2023-4091 Samba: smb clients can truncate files with read-only permissions
MediumCVSS 6.5
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
Description
A vulnerability was discovered in Samba, where the flaw allows SMB clients to truncate files, even with read-only permissions when the Samba VFS module "acl_xattr" is configured with "acl_xattr:ignore system acls = yes". The SMB protocol allows opening files when the client requests read-only access but then implicitly truncates the opened file to 0 bytes if the client specifies a separate OVERWRITE create disposition request. The issue arises in configurations that bypass kernel file system permissions checks, relying solely on Samba's permissions.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/samba(Debian:12) | < 2:4.17.12+dfsg-0+deb12u1 | 2:4.17.12+dfsg-0+deb12u1 |
| debian/samba(Debian:12) | = 2:4.17.10+dfsg-0+deb12u1 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.10+dfsg-0+deb12u1~bpo11+1 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.11+dfsg-0+deb12u1 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.12+dfsg-0+deb12u1~bpo11+1 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.8+dfsg-2 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.8+dfsg-2.1 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.9+dfsg-0+deb12u1 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.9+dfsg-0+deb12u2 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.9+dfsg-0+deb12u3 | No fix listed |
| debian/samba(Debian:12) | = 2:4.17.9+dfsg-0+deb12u3~bpo11+1 | No fix listed |
| debian/samba(Debian:13) | < 2:4.19.1+dfsg-1 | 2:4.19.1+dfsg-1 |
| debian/samba(Debian:14) | < 2:4.19.1+dfsg-1 | 2:4.19.1+dfsg-1 |
| redhat enterprise linux | < 0:4.18.6-2.el8_9 | 0:4.18.6-2.el8_9 |
| redhat rhel eus | < 0:4.15.5-13.el8_6 | 0:4.15.5-13.el8_6 |
| redhat rhev hypervisor | < 0:4.15.5-13.el8_6 | 0:4.15.5-13.el8_6 |
| redhat rhel eus | < 0:4.17.5-4.el8_8 | 0:4.17.5-4.el8_8 |
| redhat enterprise linux | < 0:4.18.6-101.el9_3 | 0:4.18.6-101.el9_3 |
| redhat rhel eus | < 0:4.15.5-111.el9_0 | 0:4.15.5-111.el9_0 |
| redhat rhel eus | < 0:4.17.5-104.el9_2 | 0:4.17.5-104.el9_2 |
| redhat rhel els | = 6 | No fix listed |
| redhat rhel els | = 7 | No fix listed |
| redhat storage | = 3 | No fix listed |
| ubuntu/samba(Ubuntu:22.04) | < 2:4.15.13+dfsg-0ubuntu1.5 | 2:4.15.13+dfsg-0ubuntu1.5 |
| ubuntu/samba(Ubuntu:24.04) | < 2:4.18.6+dfsg-1ubuntu2.1 | 2:4.18.6+dfsg-1ubuntu2.1 |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/samba(Alpine:v3.18) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 |
| alpine/samba(Alpine:v3.19) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 |
| alpine/samba(Alpine:v3.20) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 |
| alpine/samba(Alpine:v3.21) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 |
| alpine/samba(Alpine:v3.22) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 |
| alpine/samba(Alpine:v3.23) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 |
| alpine/samba(Alpine:v3.24) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 |
| samba | < 4.17.12 | 4.17.12 |
| samba | >= 4.18.0, < 4.18.8 | 4.18.8 |
| samba | >= 4.19.0, < 4.19.1 | 4.19.1 |
| fedoraproject fedora | = 39 | No fix listed |
| redhat storage | = 3.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux eus | = 9.0 | No fix listed |
References
- Debian Security Tracker CVE-2023-4091 vendor-advisory
- RHSA-2023:6209 third-party-advisory vendor-advisory
- RHSA-2023:6744 third-party-advisory vendor-advisory
- RHSA-2023:7371 vendor-advisory
- RHSA-2023:7408 vendor-advisory
- RHSA-2023:7464 vendor-advisory
- RHSA-2023:7467 vendor-advisory
- access.redhat.com third-party-advisory vdb-entry
- RHBZ#2241882 issue-tracking
- bugzilla.samba.org issue-tracking
- www.samba.org vendor-advisory
- lists.debian.org
- lists.fedoraproject.org
- security.netapp.com
- Ubuntu CVE tracker vendor-advisory
- USN-6425-1 vendor-advisory
- USN-6425-3 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory