Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Risk

4/11/2012
05:07 PM
Connect Directly
Twitter
RSS
E-Mail
50%
50%

Linux Users Beware: Patch New Samba Flaw 'Immediately'

Samba bug could spur targeted attacks or a worm -- but not all affected systems will get patched

A dangerous vulnerability in a pervasive tool for running Linux systems in a Windows environment leaves the door open for an attacker to access these systems without requiring any authentication.

The open-source Samba group this week released an update to the Samba program to fix a bug that could allow an attacker to remotely acquire root access to the targeted server. The bug in Samba versions 3.6.3 and previous versions is a buffer overflow flaw in Samba's remote procedure call 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," according to a newly issued advisory from Samba on the new CVE-2012-1182 vulnerability, which includes links to patches for the software.

Nicholas Percoco, senior vice president and head of Trustwave SpiderLabs, says the flaw affects anyone who has embedded Linux-based appliances that use Samba for file sharing, such as NASes, print servers, and printers. While these devices tend to run in an intranet rather than over the big Internet, the main risk would be from a sophisticated targeted attack or a malicious insider, he says.

"This is a very critical patch you should be applying ... if an attacker gets root access, it's game over from a security perspective," Percoco says. "You should not be running Samba [systems] on the Internet. That being said, it doesn't mean people aren't."

A proof-of-concept is circulating, and Percoco says the vulnerability is prime for abuse as a network worm as well as for a targeted attack. "It can also be the perfect storm for a Unix-based worm. This is something like the Nimda For Linux/Unix," he says.

But most at risk here is the compromise of Linux-embedded systems that use Samba, and many of these device vendors are notorious for not regularly patching these systems. "Some have firmware that you can have updated. So contact the vendor to see if they have updated firmware for this," Percoco says. "If not, you have to weigh the risk. If you're risk-averse, you may have to unplug or replace these devices."

Many devices won't ever be fixed, Percoco and other security experts say.

[While operating systems and PC applications have evolved fast patch mechanisms, the proliferation of slow-to-patch embedded devices leaves companies vulnerable. See Firms Slow To Secure Flaws In Embedded Devices.]

"Samba is not commonly exposed to the Internet, fortunately. However, most NAS devices, home storage systems, Linux PCs, and Mac OS X PCs that share files over SMB are based on Samba," says HD Moore, chief security officer for Rapid 7 and creator of Metasploit. "For example, I have a couple of home storage arrays that the vendor considers plug and play. In both cases, the SMB server is Samba-based, and not likely to see a patch anytime soon."

Moore says corporate, internal systems would be at risk of attack by malicious internal employees and intruders with access to the corporate network. But users don't always know that their embedded devices use Samba since most of these devices don't exactly broadcast that element, according to Moore.

"The real risk is long-term exploitability of NAS devices, smart printers, and other systems that use the Samba code and don't maintain security patches for the SMB service or systems that you never, ever want to take offline," Moore says.

That would include things such as a NAS: "Taking your NAS offline to patch a core service is something that typically involves a maintenance window and a lot of pain, depending on how many systems are using it," he says.

Meanwhile, Trustwave SpiderLabs posted a blog today on the Samba security update.

Have a comment on this story? Please click "Add Your Comment" below. If you'd like to contact Dark Reading's editors directly, send us a message.

Kelly Jackson Higgins is the Executive Editor of Dark Reading. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Oldest First  |  Newest First  |  Threaded View
lipanitech
50%
50%
lipanitech,
User Rank: Apprentice
4/16/2012 | 12:40:31 PM
re: Linux Users Beware: Patch New Samba Flaw 'Immediately'
I am curious to see how this affects the Apple OSx
helix2301
50%
50%
helix2301,
User Rank: Apprentice
4/17/2012 | 8:09:20 PM
re: Linux Users Beware: Patch New Samba Flaw 'Immediately'
I agree everyone know that the Mac is just bsd under neath all that cool look and feel.
Edge-DRsplash-10-edge-articles
7 Old IT Things Every New InfoSec Pro Should Know
Joan Goodchild, Staff Editor,  4/20/2021
News
Cloud-Native Businesses Struggle With Security
Robert Lemos, Contributing Writer,  5/6/2021
Commentary
Defending Against Web Scraping Attacks
Rob Simon, Principal Security Consultant at TrustedSec,  5/7/2021
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
2021 Top Enterprise IT Trends
We've identified the key trends that are poised to impact the IT landscape in 2021. Find out why they're important and how they will affect you today!
Flash Poll
How Enterprises are Developing Secure Applications
How Enterprises are Developing Secure Applications
Recent breaches of third-party apps are driving many organizations to think harder about the security of their off-the-shelf software as they continue to move left in secure software development practices.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2021-32606
PUBLISHED: 2021-05-11
In the Linux kernel 5.11 through 5.12.2, isotp_setsockopt in net/can/isotp.c allows privilege escalation to root by leveraging a use-after-free. (This does not affect earlier versions that lack CAN ISOTP SF_BROADCAST support.)
CVE-2021-3504
PUBLISHED: 2021-05-11
A flaw was found in the hivex library in versions before 1.3.20. It is caused due to a lack of bounds check within the hivex_open function. An attacker could input a specially crafted Windows Registry (hive) file which would cause hivex to read memory beyond its normal bounds or cause the program to...
CVE-2021-20309
PUBLISHED: 2021-05-11
A flaw was found in ImageMagick in versions before 7.0.11 and before 6.9.12, where a division by zero in WaveImage() of MagickCore/visual-effects.c may trigger undefined behavior via a crafted image file submitted to an application using ImageMagick. The highest threat from this vulnerability is to ...
CVE-2021-20310
PUBLISHED: 2021-05-11
A flaw was found in ImageMagick in versions before 7.0.11, where a division by zero ConvertXYZToJzazbz() of MagickCore/colorspace.c may trigger undefined behavior via a crafted image file that is submitted by an attacker and processed by an application using ImageMagick. The highest threat from this...
CVE-2021-20311
PUBLISHED: 2021-05-11
A flaw was found in ImageMagick in versions before 7.0.11, where a division by zero in sRGBTransformImage() in the MagickCore/colorspace.c may trigger undefined behavior via a crafted image file that is submitted by an attacker processed by an application using ImageMagick. The highest threat from t...