CVE-2023-4091
samba: SMB clients can truncate files with read-only permissions
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-276
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 37 fixes
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | ctdb +34 | 4.18.6-2.0.1.el8_9 |
| 9 | libnetapi +32 | 4.18.6-101.el9_3 |
Red Hat 4 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| python3-samba | eol | — | |
| 7 | ctdb +28 | eol | — |
| 8 | ctdb +24 | 0:4.15.5-13.el8_6 | RHSA-2023:7408 |
| 8 | ctdb +33 | 0:4.17.5-4.el8_8 | RHSA-2023:7464 |
| 8 | ctdb +33 | 0:4.18.6-2.el8_9 | RHSA-2023:7467 |
| 9 | ctdb +23 | 0:4.15.5-111.el9_0 | RHSA-2023:6209 |
2 more rows
SUSE Linux Enterprise 3 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | ctdb +22 | 4.15.13+git.625.ac658f2f12-3.88.1 | SUSE-SU-2023:4040-1 |
| 15.4 | ctdb +24 | 4.15.13+git.691.3d3cea0641-150400.3.31.1 | SUSE-SU-2023:4059-1 |
| 15.5 | ctdb +19 | 4.17.9+git.421.abde31ca5c2-150500.3.11.1 | SUSE-SU-2023:4046-1 |
SUSE Linux Enterprise Micro 4 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.2 | samba-client-libs | 4.15.13+git.691.3d3cea0641-150300.3.63.1 | SUSE-SU-2023:4096-1 |
| 5.3 | samba-client-libs +1 | 4.15.13+git.691.3d3cea0641-150400.3.31.1 | SUSE-SU-2023:4059-1 |
| 5.4 | samba-client-libs +1 | 4.15.13+git.691.3d3cea0641-150400.3.31.1 | SUSE-SU-2023:4059-1 |
| 5.5 | samba-client-libs | 4.17.9+git.421.abde31ca5c2-150500.3.11.1 | SUSE-SU-2023:4046-1 |
alma 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | ctdb +33 | 4.18.6-2.el8_9.alma.1 |
| 9 | ctdb +33 | 4.18.6-101.el9_3.alma.1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | samba | 4.18.8-r0 |
| 3.23 | samba | 4.18.8-r0 |
| 3.24 | samba | 4.18.8-r0 |
| edge | samba | 4.18.8-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | libnetapi +54 | 2:4.17.12-1.amzn2023.0.1 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | samba | 2:4.9.5+dfsg-5+deb10u5 |
| 11 | samba | 2:4.13.13+dfsg-1~deb11u6 |
| 12 | samba | 2:4.17.12+dfsg-0+deb12u1 |
| 13 | samba | 2:4.19.1+dfsg-1 |
| 14 | samba | 2:4.19.1+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| samba | 2:4.19.1+dfsg-1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | ctdb +30 | 4.19.1+git.312.c912b3d2ef6-1.1 | openSUSE-SU-2024:13332-1 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-samba | 2:4.17.12+dfsg-0+deb12u1 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 20.04 | samba | 2:4.15.13+dfsg-0ubuntu0.20.04.6 |
| 20.04-ESM | samba | 2:4.15.13+dfsg-0ubuntu0.20.04.6 |
| 22.04 | samba | 2:4.15.13+dfsg-0ubuntu1.5 |
| 24.04 | samba | 2:4.18.6+dfsg-1ubuntu2.1 |
| 26.04 | samba | 2:4.18.6+dfsg-1ubuntu2.1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:6209
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:6744
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7371
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7408
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7464
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7467
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-4091
- bugzilla.redhat.com https://bugzilla.redhat.com/2241881
- bugzilla.redhat.com https://bugzilla.redhat.com/2241882
- bugzilla.redhat.com https://bugzilla.redhat.com/2241884
Show all 23 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2241882
- bugzilla.samba.org https://bugzilla.samba.org/show_bug.cgi?id=15439
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-6744.html
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-4091.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-7467.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/04/msg00015.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZUMVALLFFDFC53JZMUWA6HPD7HUGAP5I/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-4091
- security.netapp.com https://security.netapp.com/advisory/ntap-20231124-0002/
- ubuntu.com https://ubuntu.com/security/notices/USN-6425-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6425-3
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-4091
- www.samba.org https://www.samba.org/samba/security/CVE-2023-4091.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.