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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
Metasploit 1 module
-
Samba SetInformationPolicy AuditEventsInfo Heap Overflow
exploit/linux/samba/setinfopolicy_heap
Exploit-DB 1
- Samba 3.4.16/3.5.14/3.6.4 - SetInformationPolicy AuditEventsInfo Heap Overflow (Metasploit) EDB-21850 · remote · Oct 10, 2012 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 7
- RHSA-2013:0515 Red Hat Security Advisory: openchange security, bug fix and enhancement update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2013:0506 Red Hat Security Advisory: samba4 security, bug fix and enhancement update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2012:0478 Red Hat Security Advisory: samba security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2012:0465 Red Hat Security Advisory: samba security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2012:0466 Red Hat Security Advisory: samba3x security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- DSA-2450-1 samba - privilege escalation Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10069-1 ctdb-4.5.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- MDVSA-2012:055 vendor-advisory
- http://www.samba.org/samba/history/samba-3.6.4.html
- SUSE-SU-2012:0501 vendor-advisory
- https://www.samba.org/samba/security/CVE-2012-1182
- 48751 third-party-advisory
- SUSE-SU-2012:0515 vendor-advisory
- DSA-2450 vendor-advisory
- HPSBUX02789 vendor-advisory
- SUSE-SU-2012:0502 vendor-advisory
- 48844 third-party-advisory
- USN-1423-1 vendor-advisory
- FEDORA-2012-5793 vendor-advisory
- FEDORA-2012-5805 vendor-advisory
- 48816 third-party-advisory
- FEDORA-2012-5843 vendor-advisory
- HPSBMU02790 vendor-advisory
- SUSE-SU-2012:0504 vendor-advisory
- 48879 third-party-advisory
- 48754 third-party-advisory
- FEDORA-2012-6382 vendor-advisory
- 1026913 vdb-entry
- 48818 third-party-advisory
- http://www.collax.com/produkte/AllinOne-server-for-small-businesses#id2565578
- 48999 third-party-advisory
- http://support.apple.com/kb/HT5281
- APPLE-SA-2012-05-09-1 vendor-advisory
- 48873 third-party-advisory