Five-year-old remote code execution hole patched in Macs, Linux
Summary: Samba has issued new versions and multiple patches for a remote code execution hole in its open source software that is included in most Linux distributions as well as Apple's Mac OS X Server.
The developers of Samba yesterday released new versions and security patches to address a critical vulnerability that can be exploited by remote attackers to execute code as the "root" user from an anonymous connection. All Samba versions between 3.0.x and 3.6.3 (inclusive) are affected. Given that 3.0.25 was released in 2007, the vulnerability has been present in Samba for some five years, as pointed out by ZDNet reader Jeremy Allison.
The company has issued patches addressing the security flaw for currently supported versions of Samba (3.4.x, 3.5.x, and 3.6.x), and Samba administrators are being urged to update. In fact, due to how serious the vulnerability is, patches have been released for all Samba versions from 3.0.37 onwards, even though most of them are currently out of support.
Three new security releases (Samba 3.4.16, Samba 3.5.14, Samba 3.6.4) for currently supported versions have been issued over at samba.org/samba/security. Patches against older Samba versions are available at samba.org/samba/patches.
Here's how Samba described the flaw in its security bulletin CVE-2012-1182):
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 marshalling and unmarshalling 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.
As this does not require an authenticated connection it is the most serious vulnerability possible in a program, and users and vendors are encouraged to patch their Samba installations immediately.
Samba is the open source software that enables file and print sharing between Windows, Mac OS X, and Linux computers. It comes pre-installed on most Linux distributions, as well as on Apple's Mac OS X Server.
Samba is also included on many UNIX-based devices like network printers, network storage, as well as other media and file-sharing devices, to facilitate transferring files between them and Windows systems. These installations are more difficult to patch, since Samba is embedded and probably can't be updated.
See also:
- Over 600,000 Macs infected with Flashback Trojan
- Apple developing tool to detect and remove Flashback Trojan
- Facebook: Android, iOS security hole only for jailbroken devices
- Security hole exposes Android, iOS to Facebook identity theft
- Over 600,000 Macs infected with Flashback Trojan
- Malware tricks Facebook users into exposing credit cards
- Malicious Chrome extensions hijack Facebook accounts
Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.
Talkback
Not decade old.
See here:
https://lwn.net/Articles/491600/
for more details from an authoritative source.
Jeremy.
Fixed.
Whatever happened to that "many eyes" hype?
You know why? B/c there's no incentive to review the code in the FOSS world. It's one thing many big mouth fellas half-heartedly reviewing the code. It's completely another if just a few hired guys reviewing it knowing they'd get promoted should they do a good job or fired should they not. The latter group is far more serious in their reviewing than the first group of loud FOSS talkers.
You have a point but...
Sure, it took them a while and wasn't caught by many other reviewers, but it *did* happen. I'd prefer this to closed code where no one except the creators can ever do security reviews.
Jeremy.
There's also another assumption...
Not a hype
Bugs remains hidden, almost non-existence, until it is found by scrutinization or in practice. As long as they do not remain found but not patched. Clearly, SMB team patched its bug more swiftly than Microsoft did in their systems.
Let me put is this way. The bug hibernated for 5 years, and lived only a few days and was then killed. It is not five years old. This is in sharp contrast with many IE bugs that have been living since IE6.
Thank you, if you could ever understand the differences between "hibernate" and "live".
Loverock Davidson says that's a typical response time from Linux
we should thank the community
Vulnerability Yes, but, in practice a low chance of exploit...
Typically, users log onto a Samba Share 'after' arbitrating a 'VPN' (SSL or IPsec) tunnel set up first.
So, while the vulnerability is serious, a local user behind a Firewall on the LAN subnet would have to perpetrate such an attack.
Thank Dog it's been fixed.
A flaw waiting to be exploited
We have seen this before with credit card theft etc. Imagine the havoc this would cause if it got into Amazon/iTunes/Google infrastructure.
Lock-down of USB ports is the rule of the day.
I have had to resort to physical locks on legacy equipment. Newer Windows 7 makes Group Policy management for USB easier.
Agreed
And I agree about USB being locked down on sensitive systems. Of course you and I both know that Network Admins typically take the route of "least effort required" which means these policies very rarely show in the real world. My personal experience is that applies to Windows, Mac and Linux.
And how does the much vaunted LSM fit into this?
@jatbains ... let me get this straight
You wouldn't by any chance be the all powerful, all seeing Admin' that allows USB usage, enterprise-wide, through group policy settings, would you?
.. mental note: must never hire jatbains for anything other than janitor in big corporate / multi-national business scenarios.
We were late.
I've also had to deal with a vulnerability from the people who sell zero day exploits for a living (mentioning no names here). Those people are just criminals.
Jeremy.
whoops
Yes, Thanks Community for fixing this promptly after a half dozen years
You know what improves Quality?
And where do you find such an approach? certainly not from microsoft.
QA teams
And, you would be wrong. Microsoft has an exemplar QA process. Read up on it. If not, you can see that in the maturity of their IDE.
Microsoft has an exemplar QA process