Technical article 127729

Is my current version of Samba susceptible to CVE-2012-1182

OpenServer 6.0.0OpenServer 5.0.7UnixWare 7.1.4

Written · Last revised

Problem

Samba.org has announced a serious security alert - CVE-2012-1182 that allows remote code execution as the "root" user from an anonymous connection.

https://www.samba.org/samba/security/CVE-2012-1182

Cause

The problem was introduced in Samba 3.0.25 when IDL auto-generated code was used to handle the MS-RPC parsing functions.

As detailed in the above URL:

The code generator for Samba's remote procedure call (RPC) code contained an error which caused it to generate code containing a security flaw. This generated code is used in the parts of Samba that control marshaling and un-marshaling of RPC calls over the network.

The flaw caused checks on the variable containing the
length of an allocated array to be done independently from
the checks on the variable used to allocate the memory for
that array.  As both these variables are controlled by the
connecting client it makes it possible for a specially
crafted RPC call to cause the server to execute arbitrary
code.

Solution

Samba version earlier that 3.0.25 are not susceptible to this CVE vulnerability.

OpenServer 5.0.7 MP5 - Samba 3.0.20  - not affected
UnixWare 7.1.4 MP4   - Samba 3.0.24  - not affected
OpenServer 6.0.0 MP4 - Samba 3.0.30  - susceptible
Samba.org has provided a patch for version 3.0.37 that is
also applicable to Samba 3.0.30.   Until that fix has been
tested and becomes available, OpenServer 6 users are
advised to:

1. Insure that a firewall prevents access to any susceptible Samba server from the internet.

2. As advised in the Samba CVE security alert, utilize the "hosts allow" parameter available inside smb.conf to restrict clients allowed to connect to the server to a trusted list.

From the Xinuos technical article database, record 127729. Reproduced with permission. The original is at www.sco.com/ta/127729, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.