CVE-2023-3961 Samba: smbd allows client access to unix domain sockets on the file system as root
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- DebianRed Hat
Description
A path traversal vulnerability was identified in Samba when processing client pipe names connecting to Unix domain sockets within a private directory. Samba typically uses this mechanism to connect SMB clients to remote procedure call (RPC) services like SAMR LSA or SPOOLSS, which Samba initiates on demand. However, due to inadequate sanitization of incoming client pipe names, allowing a client to send a pipe name containing Unix directory traversal characters (../). This could result in SMB clients connecting as root to Unix domain sockets outside the private directory. If an attacker or client managed to send a pipe name resolving to an external service using an existing Unix domain socket, it could potentially lead to unauthorized access to the service and consequential adverse events, including compromise or service crashes.
Upgrade path
18 packages: 14 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/samba(Alpine v3.18) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 | Fixed |
| alpine/samba(Alpine v3.19) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 | Fixed |
| alpine/samba(Alpine v3.20) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 | Fixed |
| alpine/samba(Alpine v3.21) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 | Fixed |
| alpine/samba(Alpine v3.22) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 | Fixed |
| alpine/samba(Alpine v3.23) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 | Fixed |
| alpine/samba(Alpine v3.24) | >= 4.18.0, < 4.18.8-r0 | 4.18.8-r0 | Fixed |
| debian/samba(Debian 12) | < 2:4.17.12+dfsg-0+deb12u1; = 2:4.17.8+dfsg-2; = 2:4.17.8+dfsg-2.1; = 2:4.17.9+dfsg-0+deb12u1 +7 more | 2:4.17.12+dfsg-0+deb12u1 | Fixed |
| debian/samba(Debian 13) | < 2:4.19.1+dfsg-1 | 2:4.19.1+dfsg-1 | Fixed |
| debian/samba(Debian 14) | < 2:4.19.1+dfsg-1 | 2:4.19.1+dfsg-1 | Fixed |
| redhat enterprise linux | < 0:4.18.6-2.el8_9; < 0:4.18.6-101.el9_3; = 8.0 | 0:4.18.6-2.el8_9, 0:4.18.6-101.el9_3 | Fixed |
| redhat rhel eus | < 0:4.15.5-13.el8_6; < 0:4.15.5-111.el9_0; < 0:4.17.5-4.el8_8; < 0:4.17.5-104.el9_2 | 0:4.15.5-13.el8_6, 0:4.15.5-111.el9_0, 0:4.17.5-4.el8_8, 0:4.17.5-104.el9_2 | Fixed |
| redhat rhev hypervisor | < 0:4.15.5-13.el8_6 | 0:4.15.5-13.el8_6 | Fixed |
| samba | < 4.17.12; >= 4.18.0, < 4.18.8; >= 4.19.0, < 4.19.1 | 4.17.12, 4.18.8, 4.19.1 | Fixed |
| fedoraproject fedora | = 39 | No fix listed | Versions listed |
| redhat enterprise linux eus | = 9.0 | No fix listed | Versions listed |
| redhat rhel els | = 6; = 7 | No fix listed | Versions listed |
| redhat storage | = 3; = 3.0 | No fix listed | Versions listed |
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 |
| 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 |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| 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 |
| redhat storage | = 3.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux eus | = 9.0 | No fix listed |
| fedoraproject fedora | = 39 | No fix listed |
References
- Debian Security Tracker CVE-2023-3961 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#2241881 issue-tracking
- bugzilla.samba.org exploit issue-tracking
- www.samba.org vendor-advisory
- lists.fedoraproject.org
- security.netapp.com
- security.alpinelinux.org vendor-advisory
- ENISA EUVD EUVD-2023-44586 third-party-advisory