CVE-2023-4091
Samba: smb clients can truncate files with read-only permissions
Reported by redhat · Published November 3, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| samba | Amazon Linux | 4.10.16-24.amzn2.0.4 |
| samba-winbind | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.12-1.amzn2023.0.1 |
| samba-dcerpc | Amazon Linux | 2:4.17.12-1.amzn2023.0.1 |
| libsmbclient | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.12-1.amzn2023.0.1 |
| libnetapi | Amazon Linux | 2:4.17.12-1.amzn2023.0.1 |
| samba-dc-libs | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.12-1.amzn2023.0.1 |
| libwbclient | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.12-1.amzn2023.0.1 |
| samba-common-tools | Amazon Linux | 2:4.17.12-1.amzn2023.0.1 |
| python3-samba-test | Amazon Linux | 2:4.17.12-1.amzn2023.0.1 |
| samba-client-libs | Amazon Linux | 4.10.16-24.amzn2.0.4 |
| samba-pidl | Amazon Linux | 2:4.17.12-1.amzn2023.0.1 |
| ctdb | Amazon Linux | 4.10.16-24.amzn2.0.4 |
11 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.18.6-2.el8_9 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.18.6-2.el8_9 |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support | 0:4.15.5-13.el8_6 |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | 0:4.17.5-4.el8_8 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:4.18.6-101.el9_3 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:4.18.6-101.el9_3 |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | 0:4.15.5-111.el9_0 |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | 0:4.17.5-104.el9_2 |
| Red Hat | Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | 0:4.15.5-13.el8_6 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Storage 3 | |
| amazon:2 | samba | 0 |
| amazon:2023 | samba-winbind | 0 |
| Red Hat | Red Hat Storage 3 | |
| amazon:2023 | samba-dcerpc | 0 |
| amazon:2023 | libsmbclient | 0 |
| amazon:2023 | libnetapi | 0 |
| amazon:2 | samba-dc-libs | 0 |
…and 64 more
Timeline
- Oct 10, 2023 CVE Published
- Nov 3, 2023 EPSS Score (30 in total, the first dated here)
- Mar 11, 2026 Distribution Patch (10 in total, the first dated here)
- Mar 11, 2026 Security Advisory (12 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-4091
vulnetix vdb fixes CVE-2023-4091
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-4091/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2023:6209 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:6744 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7371 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7408 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7464 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7467 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2241882 issue-trackingx_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2024/04/msg00015.html advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZUMVALLFFDFC53JZMUWA6HPD7HUGAP5I/ url
- https://security.netapp.com/advisory/ntap-20231124-0002/ url