Input validation error in Samba - CVE-2012-1182
Published: April 11, 2012 / Updated: August 4, 2020
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
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.
Affected software
Server Automation
HP-UX Common Internet File System (CIFS)
samba (Alpine package)
SUSE Linux
How to mitigate CVE-2012-1182
samba (Alpine package) - addressed in versions 3.5.14-r0, 3.5.15-r0
HP-UX Common Internet File System (CIFS) - addressed in versions A.02.03.06, A.02.04.06, A.03.01.05
Links to Public Exploits and PoC-codes
External References
- http://lists.apple.com/archives/security-announce/2012/May/msg00001.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078258.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078726.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078836.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080567.html
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00007.html
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00008.html
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00009.html
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00014.html
- http://marc.info/?l=bugtraq&m=133951282306605&w=2
- http://marc.info/?l=bugtraq&m=134323086902585&w=2
- http://secunia.com/advisories/48751
- http://secunia.com/advisories/48754
- http://secunia.com/advisories/48816
- http://secunia.com/advisories/48818
- http://secunia.com/advisories/48844
- http://secunia.com/advisories/48873
- http://secunia.com/advisories/48879
- http://secunia.com/advisories/48999
- http://support.apple.com/kb/HT5281
- http://www.collax.com/produkte/AllinOne-server-for-small-businesses#id2565578
- http://www.debian.org/security/2012/dsa-2450
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:055
- http://www.samba.org/samba/history/samba-3.6.4.html
- http://www.securitytracker.com/id?1026913
- http://www.ubuntu.com/usn/USN-1423-1
- https://www.samba.org/samba/security/CVE-2012-1182