Skip to content
OpenAdvisories
Unscored Public exploit CVE-2012-1182 EUVD-2012-1211GHSA-9w2v-pc9r-gpj4

The RPC code generator in Samba 3.x before 3.4.16, 3.5.x before 3.5.14, and 3.6.x before 3.6.4 does not implement validation of an array le…

Published Apr 10, 2012 · Updated Aug 6, 2024 · Assigned by redhat

Description

The RPC code generator in Samba 3.x before 3.4.16, 3.5.x before 3.5.14, and 3.6.x before 3.6.4 does not implement validation of an array length in a manner consistent with validation of array memory allocation, which allows remote attackers to execute arbitrary code via a crafted RPC call.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 samba 2:3.6.4-1 —
Debian 13 samba 2:3.6.4-1 —
Debian 12 samba 2:3.6.4-1 —
Debian 6.0 samba 2:3.5.6~dfsg-3squeeze7 DSA-2450-1
ReleasePackageFixed inAdvisory
RHEL 6 evolution-mapi +1 0.28.3-12.el6 RHSA-2013:0515
RHEL 6 openchange +3 1.0-4.el6 RHSA-2013:0515
RHEL 6 samba +11 3.5.10-115.el6_2 RHSA-2012:0465
RHEL 6 samba4 +13 4.0.0-55.el6.rc4 RHSA-2013:0506
RHEL 5 samba +5 3.0.33-3.39.el5_8 RHSA-2012:0465
RHEL 5 samba3x +7 3.5.10-0.108.el5_8 RHSA-2012:0466
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Mission Critical 5 samba +3 3.0.33-3.7.el5_3.5 RHSA-2012:0465
RHEL 6.1 EUS samba +11 3.5.6-86.el6_1.5 RHSA-2012:0465
RHEL 6.0 EUS samba +10 3.5.4-68.el6_0.3 RHSA-2012:0465
RHEL 5.6 EUS samba +5 3.0.33-3.29.el5_6.5 RHSA-2012:0465
RHEL 5.6 EUS samba3x +7 3.5.4-0.70.el5_6.2 RHSA-2012:0466
RHEL 4 ELS samba +3 3.0.33-3.36.el4 RHSA-2012:0478
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed samba 4.5.0-1.1 openSUSE-SU-2024:10069-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 7

References