Multiple heap-based buffer overflow flaws were found in the way the code generated by Perl-based DCE/RPC IDL (PIDL) compiler of the Samba suite performed array memory allocation. Memory for an array having an is_size() attribute has been allocated based on the array length, which was provided by the Network Data Representation (NDR) marshalling code (converting parameters provided to the RPC call by the client to the NDR). On the other hand the loop retrieving array elements for a particular array used variable indicated by the size_is() attribute. A remote attacker could provide a specially-crafted remote procedure call (RPC) parameters, which once processed by the marshalling code of the Samba server would lead to Samba daemon (smbd) crash, or, potentially arbitrary code execution with the privileges of the user running the server.
This has been corrected in upstream 3.6.4, 3.5.14, and 3.4.16. External References: http://www.samba.org/samba/history/samba-3.6.4.html
This issue has been addressed in following products: Red Hat Enterprise Linux 5.6 EUS - Server Only Red Hat Enterprise Linux 5 Via RHSA-2012:0466 https://rhn.redhat.com/errata/RHSA-2012-0466.html
This issue has been addressed in following products: Red Hat Enterprise Linux 5.3 Long Life Red Hat Enterprise Linux 5.6 EUS - Server Only Red Hat Enterprise Linux 5 Red Hat Enterprise Linux 6.0 EUS - Server Only Red Hat Enterprise Linux 6.1 EUS - Server Only Red Hat Enterprise Linux 6 Via RHSA-2012:0465 https://rhn.redhat.com/errata/RHSA-2012-0465.html
Created samba tracking bugs for this issue Affects: fedora-all [bug 811392]
Rawhide has been updated, updates have been created for f17, f16 and f15.
Created samba4 tracking bugs for this issue Affects: fedora-all [bug 812257]
This issue has been addressed in following products: Red Hat Enterprise Linux 4 Extended Lifecycle Support Via RHSA-2012:0478 https://rhn.redhat.com/errata/RHSA-2012-0478.html
samba4-4.0.0-38.alpha16.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
This flaw exists in the samba PIDL code, and therefore affects the PIDL compiler shipped within the samba4 package (samba4-pidl). However we do not ship any daemon with the samba4 package, hence the impact of this flaw on samba4 is very limited. The samba4-pidl compiler is also used to compile code in the openchange and evolution-mapi packages. These contain client side code for exchanging data with MAPI servers. In order to successfully exploit vulnerabilities in these packages, arising out of the above flaw in samba4-pidl, one will need to MITM the connection between these clients and the MAPI servers. Hence the impact on these packages is limited as well.
This issue has been addressed in following products: Red Hat Enterprise Linux 6 Via RHSA-2013:0506 https://rhn.redhat.com/errata/RHSA-2013-0506.html
This issue has been addressed in following products: Red Hat Enterprise Linux 6 Via RHSA-2013:0515 https://rhn.redhat.com/errata/RHSA-2013-0515.html