Samba 3.x < 3.6.4 / 3.5.14 / 3.4.16 RPC Multiple Buffer Overflows

critical Nessus Plugin ID 58662

Synopsis

The remote Samba server is affected by multiple buffer overflow vulnerabilities.

Description

According to its banner, the version of Samba 3.x running on the remote host is earlier than 3.6.4 / 3.5.14 / 3.4.16. It is, therefore, affected by multiple heap-based buffer overflow vulnerabilities.

An error in the DCE/RPC IDL (PIDL) compiler causes the RPC handling code it generates to contain multiple heap-based buffer overflow vulnerabilities. This generated code can allow a remote, unauthenticated attacker to use malicious RPC calls to crash the application and possibly execute arbitrary code as the root user.

Note that Nessus has not actually tried to exploit this issue or otherwise determine if one of the associated patches has been applied.

Solution

Either install the appropriate patch referenced in the project's advisory or upgrade to 3.6.4 / 3.5.14 / 3.4.16 or later.

See Also

https://www.samba.org/samba/security/CVE-2012-1182.html

https://www.samba.org/samba/history/samba-3.6.4.html

https://www.samba.org/samba/history/samba-3.5.14.html

https://www.samba.org/samba/history/samba-3.4.16.html

https://www.samba.org/samba/history/security.html

https://www.zerodayinitiative.com/advisories/ZDI-12-061/

https://www.zerodayinitiative.com/advisories/ZDI-12-062/

https://www.zerodayinitiative.com/advisories/ZDI-12-063/

https://www.zerodayinitiative.com/advisories/ZDI-12-064/

https://www.zerodayinitiative.com/advisories/ZDI-12-068/

https://www.zerodayinitiative.com/advisories/ZDI-12-069/

https://www.zerodayinitiative.com/advisories/ZDI-12-070/

https://www.zerodayinitiative.com/advisories/ZDI-12-071/

https://www.zerodayinitiative.com/advisories/ZDI-12-072/

Plugin Details

Severity: Critical

ID: 58662

File Name: samba_rpc_multiple_buffer_overflows.nasl

Version: 1.14

Type: remote

Family: Misc.

Published: 4/11/2012

Updated: 11/15/2018

Configuration: Enable paranoid mode

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.3

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: cpe:/a:samba:samba

Required KB Items: SMB/NativeLanManager, SMB/samba, Settings/ParanoidReport

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/10/2012

Vulnerability Publication Date: 4/10/2012

Exploitable With

CANVAS (CANVAS)

Core Impact

Metasploit (Samba SetInformationPolicy AuditEventsInfo Heap Overflow)

Reference Information

CVE: CVE-2012-1182

BID: 52973