copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Training
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2008.1078 -- [UNIX/Linux] -- Samba 3.0.29 to 3.2.4 can potentially leak arbitrary memory contents to malicious clients

Date: 28 November 2008
References: ESB-2009.0034  ESB-2009.1183  

Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                       ESB-2008.1078 -- [UNIX/Linux]
        Samba 3.0.29 to 3.2.4 can potentially leak arbitrary memory
                       contents to malicious clients
                             28 November 2008

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              samba 3.2.4 and prior
Publisher:            Samba
Operating System:     UNIX variants (UNIX, Linux, OSX)
Impact:               Access Confidential Data
Access:               Remote/Unauthenticated
CVE Names:            CVE-2008-4314

Original Bulletin:    http://www.samba.org/samba/security/CVE-2008-4314.html

- --------------------------BEGIN INCLUDED TEXT--------------------

===========================================================
== Subject:     Potential leak of arbitrary memory contents
==
== CVE ID#:     CVE-2008-4314
==
== Versions:    Samba 3.0.29 - 3.2.4 (inclusive)
==
== Summary:     Samba 3.0.29 to 3.2.4 can potentially leak
==              arbitrary memory contents to malicious
==              clients
==
===========================================================

===========
Description
===========

Samba 3.0.29 and beyond contain a change to deal with gcc 4
optimizations. Part of the change modified range checking for client-generated
offsets of secondary trans, trans2 and nttrans requests. These requests are
used to transfer arbitrary amounts of memory from clients to servers and back
using small SMB requests and contain two offsets: One offset (A) pointing into
the PDU sent by the client and one (B) to direct the transferred contents into
the buffer built on the server side. While the range checking for offset (B) is
correct, a cut&paste error lets offset (A) pass completely unchecked against
overflow.

The buffers passed into trans, trans2 and nttrans undergo higher-level
processing like DCE/RPC requests or listing directories. The missing bounds
check means that a malicious client can make the server do this higher-level
processing on arbitrary memory contents of the smbd process handling the
request. It is unknown if that can be abused to pass arbitrary memory contents
back to the client, but an important barrier is missing from the affected Samba
versions.


==================
Patch Availability
==================

A patch addressing this defect has been posted to

  http://www.samba.org/samba/security/

Additionally, Samba 3.2.5 and 3.0.33 have been issued as security
releases to correct the defect.  Samba administrators are
advised to upgrade to 3.2.5 (or 3.0.33) or apply the patch as soon
as possible.


==========
Workaround
==========

None.


=======
Credits
=======

This flaw was found during a code review internal to the Samba Team.


==========================================================
== Our Code, Our Bugs, Our Responsibility.
== The Samba Team
==========================================================

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBSS8mLih9+71yA2DNAQJbxAP+IpTVZ1VjYIPy6zHWY9mGt1TJoj+FfUSi
yvXYvTeE4poxDQi6Od49fHFUDVyqaUEwzwXTbw0ShiTLRXoR1W8UIG/TQN6IbznI
wevcQg35jttZ7ry8tJnNxWgP7961bxjXaD0KoPM5iGr18M+xPDlAnb1b3OYsmoHw
23bEyuS/Cm8=
=zMrj
-----END PGP SIGNATURE-----