Improper input validation in samba
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.
Summary
A heap-buffer overflow was found in the way samba clients processed extra long filename in a directory listing. A malicious samba server could use this flaw to cause arbitrary code execution on a samba client. Samba versions before 4.6.16, 4.7.9 and 4.8.4 are vulnerable.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Samba | samba | 4.6.16; 4.7.9; 4.8.4 | — | No fix listed | CNA |
- samba VendorSamba Affected 4.6.16; 4.7.9; 4.8.4 Fixed in — No fix listed CNA
CPE configurations NVD · 10
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* | 18.04 | Vulnerable | Canonical |
| cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:* | before 4.6.16; 4.7.0 to before 4.7.9; 4.8.0 to before 4.8.4 | Vulnerable | Samba |
| cpe:2.3:a:redhat:virtualization:4.0:*:*:*:*:*:*:* | 4.0 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:* | 4.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* Versions 18.04 Vulnerable ·Canonical
- cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:* Versions before 4.6.16; 4.7.0 to before 4.7.9; 4.8.0 to before 4.8.4 Vulnerable ·Samba
- cpe:2.3:a:redhat:virtualization:4.0:*:*:*:*:*:*:* Versions 4.0 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:* Versions 4.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
Remediation
Red Hat 4 advisories
- RHSA-2018:3470 Released 2018-11-05 · Red Hat rating ModerateRed Hat Virtualization security and bug fix update
- RHEL 7-based RHEV-H for RHEV 4 (build requirements) imgbased-1.0.29-1.el7ev, python-imgbased-1.0.29-1.el7ev, redhat-release-virtualization-host-4.2-7.3.el7 +1
- Red Hat Virtualization 4 Hypervisor for RHEL 7 redhat-virtualization-host-4.2-20181026.0.el7_6, redhat-virtualization-host-image-update-4.2-20181026.0.el7_6
- RHSA-2018:3056 Released 2018-10-30 · Red Hat rating Moderatesamba security, bug fix, and enhancement update
- Red Hat Enterprise Linux Client (v. 7) libsmbclient-4.8.3-4.el7, libwbclient-4.8.3-4.el7, samba-4.8.3-4.el7 +10
- Red Hat Enterprise Linux Client Optional (v. 7) libsmbclient-devel-4.8.3-4.el7, libwbclient-devel-4.8.3-4.el7, samba-4.8.3-4.el7 +10
- Red Hat Enterprise Linux ComputeNode (v. 7) libsmbclient-4.8.3-4.el7, libwbclient-4.8.3-4.el7, samba-4.8.3-4.el7 +9
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) libsmbclient-devel-4.8.3-4.el7, libwbclient-devel-4.8.3-4.el7, samba-4.8.3-4.el7 +11
- Red Hat Enterprise Linux Server (v. 7) libsmbclient-4.8.3-4.el7, libsmbclient-4.8.3-4.el7.ppc, libwbclient-4.8.3-4.el7 +16
- Red Hat Enterprise Linux Server Optional (v. 7) libsmbclient-devel-4.8.3-4.el7, libsmbclient-devel-4.8.3-4.el7.ppc, libwbclient-devel-4.8.3-4.el7 +13
- Red Hat Enterprise Linux Server Resilient Storage (v. 7) ctdb-4.8.3-4.el7, ctdb-tests-4.8.3-4.el7
- Red Hat Enterprise Linux Workstation (v. 7) libsmbclient-4.8.3-4.el7, libwbclient-4.8.3-4.el7, samba-4.8.3-4.el7 +11
- Red Hat Enterprise Linux Workstation Optional (v. 7) libsmbclient-devel-4.8.3-4.el7, libwbclient-devel-4.8.3-4.el7, samba-dc-4.8.3-4.el7 +8
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) libsmbclient-4.8.3-4.el7, libwbclient-4.8.3-4.el7, samba-4.8.3-4.el7 +11
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) libsmbclient-devel-4.8.3-4.el7, libwbclient-devel-4.8.3-4.el7, samba-dc-4.8.3-4.el7 +8
- RHSA-2018:2613 Released 2018-09-04 · Red Hat rating Moderatesamba security, bug fix and enhancement update
- Red Hat Gluster 3.4 Samba on RHEL-7 ctdb-4.7.5-110.el7rhgs, libsmbclient-4.7.5-110.el7rhgs, libsmbclient-devel-4.7.5-110.el7rhgs +31
Show 1 more Red Hat advisories
- RHSA-2018:2612 Released 2018-09-04 · Red Hat rating Moderatesamba security, bug fix and enhancement update
- Red Hat Gluster 3.4 Samba on RHEL-6 ctdb-4.7.5-110.el6rhs, libsmbclient-4.7.5-110.el6rhs, libsmbclient-devel-4.7.5-110.el6rhs +31
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
The Samba Team samba — USN-3738-1
4 records Highest priority Priority MEDIUM 2 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2018-01055 Improper input validation in sambaPriority MEDIUM 41
- TI-2018-07730 NULL pointer dereference in sambaPriority LOW 34
- TI-2018-07731 Observable discrepancy in sambaPriority LOW 33
- Advisory ·
The Samba Team samba — DSA-4271
2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2018-07731 Observable discrepancy in sambaPriority LOW 33
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| RHEL 7-based RHEV-H for RHEV 4 (build requirements) | Fixed | RHSA-2018:3470 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux Server Resilient Storage (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2018:3056 |
| Red Hat Gluster 3.4 Samba on RHEL-6 | Fixed | RHSA-2018:2612 |
| Red Hat Gluster 3.4 Samba on RHEL-7 | Fixed | RHSA-2018:2613 |
| Red Hat Virtualization 4 Hypervisor for RHEL 7 | Fixed | RHSA-2018:3470 |
Not affected: 3 products
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2018-10858
- 2026-10-03 Alias added: GHSA-76v4-f6wg-3fqw
References
Advisory 10
More Samba vulnerabilities
- TI-2020-01431 Netlogon Elevation of Privilege Vulnerability KEVCVSS 3.1CRITICAL 10.0
- TI-2017-05139 Code injection in samba KEVCVSS 3.1CRITICAL 9.8
- TI-2015-00210 The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x… CVSS 2.0HIGH 10.0
- TI-2003-00081 Buffer overflow in the SMB/CIFS packet fragment re-assembly code for SMB daemon (smbd) in… CVSS 2.0HIGH 10.0
- TI-2003-00185 Buffer overflow in the call_trans2open function in trans2.c for Samba 2.2.x before… CVSS 2.0HIGH 10.0
- TI-2007-02362 Multiple heap-based buffer overflows in the NDR parsing in smbd in Samba 3.0.0 through… CVSS 2.0HIGH 10.0
Sources
- CVE-2018-10858 · CVE Program
- CVE-2018-10858 · NVD
- FIRST EPSS
- GHSA-76v4-f6wg-3fqw · GitHub Advisory Database · CC BY 4.0
- CVE-2018-10858 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences