Samba Hit By 'Highly Critical' Vulnerability
sawky puck writes "Researchers at Secunia have flagged a 'highly critical' vulnerability in Samba, the widely deployed open-source software for networked file sharing and printing. Successful exploitation allows execution of arbitrary code by tricking a user into connecting to a malicious server (e.g. by clicking an 'smb://' link) or by sending specially crafted packets to an 'nmbd' server configured as a local or domain master browser. This issue affects both Samba client and server installations."
Here's the assigned Common Vulnerabilities and Exposures - "Boundary failure when parsing SMB responses can result in a buffer overrun"
Hulk SMASH Celiac Disease
I guess I better take all of my samba servers off the internet!
<snark/>
Salut,
Jacques
Check the samba lists. It's already been fixed and the Debian team should be sending a patched version of samba to their repos for downstream distros either last night or some time today. It's already been rolled in to 3.0.30, IIRC.
If I mod you up, it doesn't necessarily mean I agree with what you've said, sorry.
"Boundary failure when parsing SMB responses can result in a buffer overrun"
Does this apply to a particular CPU/MMU compiler combination or is it generic across all systems? Is it technically possible to design a system that is immune to buffer overruns or, by default, fails safe, as in not allowing any old code to walk all over the address space.
davecb5620@gmail.com
Every network I've been on and even some of my current company's ISPs have a policy of blocking all traffic to ports 137 and 139.
Those types of filters prevent anyone following a smb:// link outside their network.
I think this is from way back in the day when remote MS Windows SMB/NMB exploits were a dime a dozen and/or network admins wanted to make sure files weren't being shared to the world.
"There is the NX bit, but you'd have to know about how far the buffer can overrun"
.. This work makes the kernel immune to buffer overruns, dangling pointers, and other memory error vulnerabilities"
"we adapted the memory safety techniques from the SAFECode project
davecb5620@gmail.com
"Arbitrary" code will see lots of 'permission denied' errors as it tries to do evil.
There's a CIFS server for linux -- it's called Samba.
The bit being deprecated is the SMB network file system, not Samba (which isn't part of the kernel in the first place). The CIFS network file system now supported in the kernel is fully compatible with Samba file servers, and Samba file servers require neither SMB NFS nor CIFS NFS to be enabled in the kernel.
Same thing pretty much. CIFS is an updated version of SMB, samba supports them both. This might clear it up for you.
Give me Classic Slashdot or give me death!
There was no exploit known in the wild before this was discovered and patched, so if you install the Debian patch asap you should be fine.
Jeremy.
http://smithii.com/samba.