Slashdot Mirror


Security Flaws In Linux SMBFS

An anonymous reader points out this SecurityFocus alert, which starts "The Linux kernel is reported susceptible to multiple remote vulnerabilities in the SMBFS network file system. These vulnerabilities may lead to the execution of attacker-supplied machine code, information disclosure of kernel memory, or kernel crashes, denying service to legitimate users. Versions of the kernel in both the 2.4, and the 2.6 series are reported susceptible to various issues."

74 of 347 comments (clear)

  1. It's a FEATURE by kesuki · · Score: 5, Funny

    you haven't emulated SMB unless you allow remote execution of code ;)

    1. Re:It's a FEATURE by Anonymous Coward · · Score: 2, Funny

      But it will be a while before the Samba team gets Linux to BSOD. Dammable Developers

  2. history of linux exploits by wrinkledshirt · · Score: 3, Interesting

    Does anybody know of some website or source that's been tracking these kinds of linux exploits, including the date and nature of both the exploits and the fixes?

    --

    --------
    Bleah! Heh heh heh... BLEAH BLEAH!!! Ha ha ha ha...

    1. Re:history of linux exploits by Short+Circuit · · Score: 5, Informative

      Secunia...they also have a free service where they'll email you about vulnerabilities and fixes. And I've never received spam from them. (But that may be due to my GMail account.)

    2. Re:history of linux exploits by MarsLander · · Score: 4, Informative

      The Linux Weekly News security page would be a good place to start. If you then went back and looked through the security pages of the weekly editions, you'd probably have a pretty complete database.

      http://lwn.net/security

    3. Re:history of linux exploits by Anonymous Coward · · Score: 5, Informative

      Linux advisories
      http://www.linuxsecurity.com/advisorie s/index.html

      Open Source Vunerability Database (not just for Open source software, but the database itself is open source)
      http://www.osvdb.org/

      That is probably the best and it offers vendor contact information, detailed analysis and RSS plugins.

      Secunia Security and Virus information
      http://secunia.com/

      Security Focus:
      http://www.securityfocus.com/

      So on and so forth.

  3. But... by Sensible+Clod · · Score: 2, Interesting

    does it allow ROOT?

    --

    The difference between spam and poop is that you don't have to dig through septic tanks looking for real food. -- Me
    1. Re:But... by flossie · · Score: 4, Informative
      Come on, I really want to know whether this allows someone to take over my machine. Besides, as an M$ hater, I want to be able to tell people 'hey, the linux kernel exploit *doesn't* allow root'. Unless, of course, it does. Does it?

      Probably not. Quote:

      While any of these vulnerabilities can be easily used as remote denial of service exploits against Linux systems, it is unclear if it is possible for a skilled local or remote attacker to use any of the possible bufferoverflows for arbitrary code execution in kernel space.

      SecurityFocus have this down as a "Design Error". Is that in the design of the implementation, or the design of the protocol? Can we start blaming Microsoft for bugs in Linux now?

    2. Re:But... by damicatz · · Score: 2, Informative

      Very few vulnerabilities in Unix Operating Systems allow a hacker to gain control of the machine provided the machine is being run by a competent person. This is due to the fact that Unix/Linux/BSD/etc tend to be modular whereas every thing in Windows is integrated. To answer your question, the vulnerability discussed here allows someone to crash the system but does not allow them to take over the computer.

    3. Re:But... by spiny · · Score: 2, Insightful

      a compromised machine is:

      a compromised machine.

      remomove from the LAN/WAN, disect then reinstall. Its the only safe way.

      --

      Fry: heh, Yakov Smirnoff said it
      Leela: No he didn't.
    4. Re:But... by Nothinman · · Score: 2, Interesting

      It's a bug in a kernel driver, so if it becomes exploitable it could allow more than root. But from the looks of the report, you would have to mount a share on the attacking machine for there to even be a chance of exploitation.

    5. Re:But... by EvilAlien · · Score: 3, Insightful
      You don't need root, you just need local access so you can exploit all those vulnerabilities that get ignored because they aren't remotely exploitable.

      I don't know how many times I've heard clueless admins tell me that they aren't patching for something because its only exploitable locally...

      --
      perl -e 'print $i=pack(c5, (41*2), sqrt(7056), (unpack(c,H)-2), oct(115), 10)'
    6. Re:But... by Q2Serpent · · Score: 3, Funny

      more than root

      ...God?

    7. Re:But... by Netsnipe · · Score: 3, Funny
      remove from the LAN/WAN, dissect then reinstall. Its the only safe way.
      No. I say we take off and nuke the entire site from orbit. It's the only way to be sure.
      --
      -- "I can't tell the future, I just work there." -- The Doctor
    8. Re:But... by Xeleema · · Score: 2, Funny

      Funny, I googled for "remote linux root exploits" and I didn't get a single hit. That clearly points to the obvious; Google's Censoring Linux Vulnerabilites!! OMFG!! Now only if it.slashdot didnt have such a shitty color sheme, maybe I'd feel better about my IT-related job and stop posting mindless drivel like this.
      AC is for cowards!

      --
      "When I am king, you will be first against the wall..."
  4. this is NOT samba (smbd) by CRC'99 · · Score: 5, Informative

    It should be clarified, that this is NOT to do with the smbd process aka Samba Project - but the kernel module smbfs.o

    --
    Sendmail is like emacs: A nice operating system, but missing an editor and a MTA.
    1. Re:this is NOT samba (smbd) by Anonymous Coward · · Score: 2, Informative
    2. Re:this is NOT samba (smbd) by Curtman · · Score: 2, Informative

      It should be clarified, that this is NOT to do with the smbd process aka Samba Project

      But this is.

  5. Everyone makes mistakes by comwiz56 · · Score: 2, Insightful

    Not to sound like a flaimbait, and yes, I use and love linux, but this is some proof that micro$oft isn't the only place in the world that puts out code with security holes in it.

    1. Re:Everyone makes mistakes by sl4shd0rk · · Score: 2, Funny

      Well, not to sound like a broken record, but you can bet your sweet ass that the smbfs module code will be fixed quicker than you can say rmmod, or if you prefer, quicker than you can say "make dep clean bzImage modules modules_install".

      The difference is the opportunity to take action through the utilization of an openly available codebase.

      --
      Join the Slashcott! Feb 10 thru Feb 17!
    2. Re:Everyone makes mistakes by 13Echo · · Score: 4, Insightful

      The difference is that this is a POTENTIAL exploit. Not something that's been known for a long time but ignored to the point of mass-exploitation.

    3. Re:Everyone makes mistakes by citog · · Score: 2, Insightful

      it's the only place that has millions of dollars at it's disposal and highly paid programmers.

      Oh, come on now! Is this going to be used as justification for bugs/issues in Linux all the while berating Microsoft for theirs?

    4. Re:Everyone makes mistakes by Truth_Quark · · Score: 2, Interesting
      "this is some proof that micro$oft isn't the only place in the world that puts out code with security holes"

      This kind of comment disturbs me. I never know how far down the conspiracy theory line I should allow my paranoia to run. The statement is prima facie true, so what requirement is there for such proof except to Microsoft FUDrakers?

      Is microsoft paying people to post their marketing crap like this, or is it merely that trolling is its own reward?

    5. Re:Everyone makes mistakes by DogDude · · Score: 3, Informative

      it's the only place that has millions of dollars at it's disposal and highly paid programmers.

      But Linux is supposed to better because it has armies and armies of passionate volunteers.

      --
      I don't respond to AC's.
  6. yeah ... by nanodude · · Score: 3, Funny

    well ... windows file sharing is just that ... a security flaw

  7. Hmmm..... by Azh+Nazg · · Score: 2, Funny

    Makes me glad that I have an SMB block enforced on my rou32der324f[NO CARRIER]

    --
    Azh nazg durbataluk, azh nazg gimbatul, Azh nazg thrakataluk agh burzum ishi krimpatul! This sig blocked by Slashdot.
  8. MS Technology by Punboy · · Score: 4, Informative

    I'd like to point out that is a MS originated technology that only got put in Linux for compatibility with MS systems. Most Linux-only users use NFS, which does not have these security holes. Most 'secure' network environments don't even use SMB on windows machines due to security holes in the Windows implementation. My 2 cents, don't use it, its buggy and slow and suchs. On the other hand, many people need to use it in their home networks to share files between windows machines and Linux machines. My suggestion for those users is to set up a firewall which blocks SMB from the outside. And don't make samba shares on your firewall box.

    --
    If you like what I've said here, and want to read more, go to http://www.krillrblog.com
    1. Re:MS Technology by Anonymous Coward · · Score: 2, Insightful

      So which is worse: implementing a technology that turns out to have security holes or adding a technology you already know has security holes to your system in order to be compatible with a system you claim is inferior?

    2. Re:MS Technology by nacks1 · · Score: 5, Insightful

      "Most Linux-only users use NFS, which does not have these security holes."

      Yeah... it NFS just has plenty of holes of its own. I would be the first to say that I think that SMBFS is crap, but NFS isn't the network filesystem that we should be holding up as a good system to emulate.

    3. Re:MS Technology by mre5565 · · Score: 2, Informative

      > Yeah... it NFS just has plenty of holes of its own.

      NFS uses ONC RPC. ONC RPC supports any security
      flavor the ONC RPC library implementor choses.
      RFC 2203 is an security flavor that supports
      GSS-API, which works over Kerberos and
      Public Key Infrastructure. Solaris, AIX, NetApp,
      EMC, Hummingbird have NFS/Kerberos via RFC 2203.
      The bits are sort of there in Linux 2.6, and
      should be there for when Red Hat and Suse release
      enterprise editions of Linux 2.6.

    4. Re:MS Technology by CAIMLAS · · Score: 3, Interesting

      First off, as someone else said, this doesn't have anything to do with Samba, but smbfs.o, from the kernel. You don't need smbfs.o to use samba, I believe, and I can't recall ever including it in a kernel (or cifsfs), even ones that were to be used as a samba fileserver.

      Second, NFS is just as "full of holes" as SMB/CIFS. I'd even wager that its inherrent security model is worse. From my experience, it's also significantly less stable, and does not scale well at all, let alone dynamically on a large network.

      On a network where everyone is a peer, SMB/CIFS seems like the better option to me.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    5. Re:MS Technology by jrcamp · · Score: 2, Informative

      UID/GID spoofing because there's no real authentication. This is being addressed in NFSv4 but it's not ready for production.

      If you want want authentication and authorization for file sharing under Linux, AFS is probably your only real choice besides Samba.

    6. Re:MS Technology by geg81 · · Score: 4, Informative

      Most Linux-only users use NFS, which does not have these security holes.

      Are you kidding? From a security point of view, past versions of NFS have been an absolute disaster, far worse than SMB. You can run NFS only if you have complete trust in your network infrastructure and every single machine on it. Sun's engineers must have been on drugs when designing it.

      NFSv4 may fix some of those problems, but it hasn't been widely deployed yet, and it is far more complex than it has a right to be given its limited functionality. All network file systems for Linux currently have major problems of one kind or another (they are one of incompatible, immature, insecure, etc.).

    7. Re:MS Technology by Lost+Race · · Score: 2, Interesting

      I use Samba+SMBFS to share read-only trees with multiple filesystems mounted in them. NFS can't really handle this, at least not reliably. For this purpose SMB works well enough. Is there something better?

    8. Re:MS Technology by sloth+jr · · Score: 2, Insightful

      No particular beef with your post - as you mention, NFS security isn't good. Put another way, it's as good as your network and host security, but relies on proper configuration of server and client. That said, NFS for being the pile of shit it is has survived through virtue of being widely supported and mostly compatible, robust in the face of server outages (as opposed to SMB's "oh, I guess you'll be losing the latest copy of your work now"), easily clusterable, scalable to several dozen busy clients, easy to manage, very well understood, and free.

      No one in the know would hold the NFS security model up as one to emulate (you're of course absolutely correct about its security only being up to physical control of every machine on your network), but facts are, NFS continues to help people get the work they care about done. One can only hope that better solutions might finally be implemented to drive a worn-out protocol out of business, but it isn't there yet (I'd like it to be AFS, but on Linux, scalability doesn't seem to be on par with NFS).

      NFS was a pragmatic solution designed by smart people in a time where talk, finger, telnet, RIP and rsh were all used freely. Now that networks are chock-a-block with assholes, NFS looks about as good as those other protocols - but people look a lot worse.

      sloth jr

  9. And before this goes off the front page... by Short+Circuit · · Score: 4, Interesting

    Major distributions will have patches available. Possibly even the main kernel tree.

    1. Re:And before this goes off the front page... by Alan+Hicks · · Score: 5, Informative
      <spamvertisement>
      This is old news. The 2.4.28 kernel was released with fixes for this though a 2.6.10 kernel hasn't yet been put out. I'm not sure who all has patched, but for Slackware users, you can get a 2.4.28 kernel package from SlackSec.
      </spamvertisement>
      --
      Slackware, what else when it must be secure, stable, and easy?
    2. Re:And before this goes off the front page... by DraconPern · · Score: 2, Interesting

      Red Hat 9 is a 'major distribution' and I haven't had a kernel patch in ages. My box is probably venerable to all sorts of bugs. But now Red Hat wants me to pay for security updates? Grrr. Someone tell me there is a better solution. I want a 'pay once but free update for 5 year' solution that other OS vendors offer.

    3. Re:And before this goes off the front page... by Kronovohr · · Score: 2, Informative

      Actually, RedHat 9 updates are still available through the Fedora Legacy project (http://www.fedoralegacy.org/). Payment not required (though I'm pretty sure they'd like a donation or two)

  10. I'm glad this hit slashdot by Anthony+Liguori · · Score: 5, Informative

    I'll say this once, this is absolutely correct. We've known about this for a long time. SMBFS is deprecated. This is why CifsFS was written. CifsFS is a standard part of 2.6 and is available as patches for 2.4 from samba.org. CifsFS is faster, works with newer versions of Windows better, and is much more secure. More importantly, SMBFS is not being maintained. Critical bug fixes get made but that's only because it's in the kernel. Please don't use it unless you have to. Steve French is the author of CifsFS and has done a fantastic job with it.

    1. Re:I'm glad this hit slashdot by Anonymous Coward · · Score: 4, Funny

      CifsFS

      This message was brought to you by the department of redundancy department.

    2. Re:I'm glad this hit slashdot by waferhead · · Score: 3, Insightful

      This (parent)notice should be added to the headline as a public service.

    3. Re:I'm glad this hit slashdot by Dr.Dubious+DDQ · · Score: 3, Informative

      The only downside that I have seen to using CIFS is that - at least on Slackware - mount.cifs doesn't seem to be included by default.

      It's trivial to obtain, but kind of difficult to mount CIFS filesystems without it...

      Note also that the old SMBFS is subject to the annoying 2GB file size limit, while CIFS is not, if you still need an excuse to switch. As far as I can tell, you can use CIFS for any server where you would previously have been using SMBFS, so you ought to be able to just switch without any hassles.

    4. Re:I'm glad this hit slashdot by C3ntaur · · Score: 3, Informative

      I don't know about other distros, but when I tried to use CIFS to mount in Fedora Core 2 instead of SMBFS, I got a bunch of kernel errors. AFAIK, it's still an open bug: bugzilla.redhat.com.

      --
      Loading...
    5. Re:I'm glad this hit slashdot by CAIMLAS · · Score: 2, Interesting

      Well, if you give it a little thought, it makes sense on a purely logical level.

      SMB is the protocol used pre-win2k. CIFS is everything after that. It makes little sense to modify (or expect) a device driver to support something that is outside the scope of it's designed purpose. Thus, along came cifsfs, which does indeed support the higher features (and very well might not work in a 'backward compatible' fashion, for all I know). Thus, you wouldn't need both if you didn't have any newer|older windows systems.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    6. Re:I'm glad this hit slashdot by Anthony+Liguori · · Score: 2, Informative

      Yeah, unfortunately, not many folks work on CifsFS. You're best bet is to send it to linux-cifs-client@lists.samba.org.

    7. Re:I'm glad this hit slashdot by Anthony+Liguori · · Score: 2, Insightful

      Because linux does not fully support an implimentation any longer - an implimentation spec that was long ago abandoned by the people that made it, No, the Samba community provided smbfs to solve a problem and now, we've done a rewrite and we have cifsfs. It's still a product of the Samba community. The argument is more analogous to someone saying that FireFox 0.1 has does not support SSL and therefore is insecure. Well, hell, that's why there's FireFox 1.0. Upgrade and get over it.

    8. Re:I'm glad this hit slashdot by Anthony+Liguori · · Score: 2, Insightful

      it has to be said CIFS is not mature yet (that's great seeing active developement there though)

      Yes, CIFS has some bugs in it. However, so does SMBFS. In a lot of ways, SMBFS was never mature to begin with.

      <i>how to you connect to legacy SMBFS servers which do not support CIFS</i>

      The story basically is, SMBFS is there for that, however, if there is sufficient demand for legacy compatibility, I'm sure cifsfs will try to support it. It's not that difficult to do, just a matter of prioritization.

      Open Source software only gets mature if people use it and submit bug reports when they encounter problems. If you want something to work better than smbfs and to not have gaping security holes the answer is to use cifsfs and file bug reports at https://bugzilla.samba.org.

    9. Re:I'm glad this hit slashdot by Anthony+Liguori · · Score: 2, Insightful

      Kind of. This is Microsoft marketing at it's finest. SMB is a protocol for sharing files. When the internet took off, Microsoft rebranded SMB as CIFS (or Common Internet File System). It's totally a marketing different. Both smbfs and cifsfs use SMB for file sharing (it's the only way to do file sharing). The main differences in smbfs and cifsfs are 1) performance 2) unicode support 3) authentication. cifsfs has much better performanced, negotiates unicode over the wire, and more important, uses a much stronger form of authentication (ntlmv2) than smbfs (lanman+ntlmv1). In fact, the authentication that smbfs is pretty much plain-text equivalent. Not to mention that smbfs does not support any sort of signing/sealing mechanism leaving your sessions wide open for hijacking. At the end of the day, keep in mind though, that NFSv3 and below have an even worse design in terms of security. This is why you don't expose things like NFS and Windows file sharing over the internet. They just aren't normally very secure.

  11. The link doesnt actually tell you anything by Laeraun · · Score: 5, Informative

    This page gives a much better overview of what it is.

    More information also here

  12. Don't worry! by Tezkah · · Score: 5, Funny

    SP2 users are unaffected.

  13. No shiat. by bersl2 · · Score: 2, Insightful

    Not all of us here point and laugh every time Microsoft has an exploit.

    I think that one of the major misunderstandings that many people have is that software will be absolutely perfect. It won't be. We deal with systems with many layers of complexity, and sometimes these things fall through the cracks.

    If you want a perfectly secure system, you'll have to audit the code personally.

  14. Timeline... by AcornWeb · · Score: 3, Interesting

    Now, I'm definitely not a Microsoft fan (see my sig), but does it strike anyone else as a little scary that it took 2 months to get this fixed properly? I mean isn't that one of the main benefits of open source is that it gets fixed faster?

    --
    Your Windows PC is my other computer.
    1. Re:Timeline... by mnmn · · Score: 2, Informative

      It is very wrong to assume some Linux hobbyist will quickly put aside other things in life, to patch a bug like this, which will make companies like Redhat, novell richer.

      Opensource does not guarantee quick fixes of bugs. Case in point.. many ATM cards remain in the experimental stage and crash on atmsigd 6 years on. Similar bugs with the arcnet driver will probably never be fixed.

      Opensource software is 'generally' better in quality and security, but there are absolutely no guarantees. ..except theres no SCO code in there.

      --
      "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
    2. Re:Timeline... by pclminion · · Score: 2
      My ATM card only crashes when it falls out of my wallet... er, what does this have to do with Linux?

      ATM == asynchronous transfer mode, try plugging things into Google before making silly comments...

  15. Does this apply to FreeBSD? by HenryKoren · · Score: 3, Interesting

    Just wondering if the SMBFS kernel option in EreeBSD has the same vulnerability

    $FreeBSD: src/sys/fs/smbfs/smbfs.h,v 1.8 2003/02/08 05:48:04 tjr

  16. Now... by bogaboga · · Score: 3, Insightful
    ...Linux zealots are going to run in defense of the [Linux] kernel. Come on guys, anything created by man will always have defects.

    Cb..

    1. Re:Now... by Tough+Love · · Score: 2, Informative

      Linux zealots are going to run in defense of the [Linux] kernel.

      Never let facts get in the way of a good rant:

      To exploit any of these vulnerabilities an attacker needs control
      over the answers of the connected smb server. This could be achieved
      by man in the middle attacks or by taking over the smb server with
      f.e. the recently disclosed vulnerability in Samba 3.x

      While any of these vulnerabilities can be easily used as remote
      denial of service exploits against Linux systems, it is unclear if
      it is possible for a skilled local or remote attacker to use any of
      the possible bufferoverflows for arbitrary code execution in kernel
      space.

      --
      When all you have is a hammer, every problem starts to look like a thumb.
  17. 53 day turnaround, is that good? by JAFSlashdotter · · Score: 2, Interesting

    Based on the info http://www.securityfocus.com/archive/1/381420here, it took 53 days from initial contact to public release of the patch (and public notice of the vulnerability). How does this stack up against other OSes?

    --
    We apologize for the preceding message. All those responsible have been sacked.
    1. Re:53 day turnaround, is that good? by Nothinman · · Score: 2, Interesting

      I wouldn't say it's a good turnaround, but considering that SMB is one of the hairiest protocols around and SMBFS has been deprectated in the hopes of the CIFS driver taking it's place, it's not hard to imagine that it would take a while to find someone knowledgable enough and willing to track down each of those problems.

  18. NOT Originally MS Technology by kmb · · Score: 5, Informative

    Microsoft did NOT in fact invent/originate SMB. IBM did.

    1. Re:NOT Originally MS Technology by kmb · · Score: 2, Interesting

      Oh, yes, Microsoft could take a rock-solid protocol/standard/technology and break it, easily. It's probably equally possible that SMB has become more secure or less secure in Microsoft's hands. However, I was correcting the widespread factual error of "Microsoft invented SMB." Microsoft doesn't even call their implementation SMB anymore. It's CIFS now.

      I don't know much about this specific bug, but c'mon people, there have been linux security bugs concerning technologies and protocols Microsoft hasn't managed to put their grubby little fingers into. There are enough valid complaints against them to keep us from having to start making them the de facto scapegoat.

      Of course, if Microsoft were to be believed, they really do own all the protocols.

  19. Comment removed by account_deleted · · Score: 2, Informative

    Comment removed based on user account deletion

  20. Re:Wow, A Flaw by cbiltcliffe · · Score: 3, Informative

    It wasn't developed by Microsoft. It was originally an IBM protocol, which was....are you ready?....extended by Microsoft to get what we know today as SMB.

    --
    "City hall" in German is "Rathaus" Kinda explains a few things......
  21. Really a two-part turnaround by Cerlyn · · Score: 3, Informative

    Looking at their schedule, it is unclear what actually happened. Note that on 25 September 2004 they made their initial contact, but on 22 October 2004 they say they sent a second round of vulnerabilities in, followed by a set of patches on 27 October. The developers would then have to take all these patches, compare it to anything they may have come up with in the meantime, and make sure they didn't break anything else.

    The public disclosure occured 17 November 2004, about 20 days later, after about a week's worth of testing time as 2.4.28-rc3. Personally, I would not have liked them to have announced on the first set of vulnerabilities if there was some knowledge between October and November that more issues were being found. Otherwise everyone and their kin would be combing the code looking for any issues missed in smbfs.

  22. that'd be fine if new kernels didn't break you... by Anonymous Coward · · Score: 2, Informative

    Your drivers I mean.

    Normally, I wouldn't bother to mention about this. But slashdot somehow thought someone mentioning that SP2 was worthless because it had compatibility problems was worth a major mod-up.

    So I figure pointing out how Linux also bundles incompatibilities with security fixes should be very well received, right?

  23. smbfs -> cifs is easy by xant · · Score: 4, Informative
    I had one Linux server mounting smbfs shares from fstab on my network, running Ubuntu. The default kernel is 2.6.x and mount.cifs is included, so I found it extremely easy to convert.

    1. I was using the credentials option (-o credentials=/some/sekrit/file) and I discovered that cifs does not like spaces in this file, so I took out the spaces.
    2. I was also using the badly-named fmask and dmask options (they are not masks). Cifs has renamed these to dir_mode and file_mode, and deprecated the old usage. I renamed dmask to dir_mode and fmask to file_mode.
    3. file_mode and dir_mode expect to see a leading 0 to be interpeted as octal. I made this change.
    4. Finally I changed smbfs to cifs.

    After these minor changes that took me all of 3 minutes to make, I no longer have smbfs anywhere on this network.
    --
    It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.
  24. ERROR! by DAldredge · · Score: 2, Funny

    ERROR DETECTED

    REASON - NFS used with in 10 words of the word secure.

    RESULT - AHHHH!!!!

  25. Re:Confused... by Jimithing+DMB · · Score: 3, Informative
    Pardon my ignorance.... What is the smbfs doing in kernel space? Shouldn't that be the domain of Samba?

    Filesystems by necessity have to be implemented to some extent in the kernel because they have to hook the VFS layer. However, you make a very good point that it does seem to be a big risk to implement the entirety of smbfs in kernel space.

    Recent Linux kernels (I think 2.4 onward) have a mechanism for doing what are called user space filesystems. Basically, the kernel only knows enough to talk to a daemon which implements the filesystem and exposes it to the kernel. In this manner there is a very well defined interface between the kernel and user code which hopefully is bug free.

    In some ways this is sort of a partial microkernel design. With that comes the inherent loss of speed having to do the context switches between kernel and user mode. In the normal filesystem case you have a context switch from user to kernel mode, the file is accessed, and then back to user mode. In the case of a filesystem implemented in user mode you have to switch from user mode to kernel mode, then to user mode in the FS daemon then back to kernel mode then back to user mode in the process trying to access the file. And that is the best case. Throw in a scheduler without the knowledge of which process is waiting for what and messaging between two user space processes through the kernel can be extremely costly!

    In this case, yes, I think I probably would have recoded smbfs to use the user mode filesystem handler. But the code was already written years ago to live entirely in kernel space before there was really any sort of well defined standard for a user space file system. Given that this is as far as I can remember the only major bug in it one might say that it hasn't really been that bad having it in kernel space.

    So the tradeoff becomes do you want to have it in user space (where it would still vulnerable to DoS in this case) and sacrifice some speed or do you want it to run in the kernel at full speed?

  26. Re:Irony isn't something you dewrinkle clothes wit by ClosedSource · · Score: 3, Insightful

    You seem to be reaching here. If implementing the protocol safely is beyond the ability of Linux developers, then they shouldn't do it.

    More likely the truth is that smart developers for Linux and smart developers for MS make mistakes and will continue to do so. My only complaint is that there shouldn't be a double-standard.

  27. It's 2004, and there's no excuse by billstewart · · Score: 2, Interesting
    I took Computer Science 101 back in 1974, and the first couple of lessons we learned were
    • Never trust your input data - always check it!
    • Always check for array-bounds and function return codes.
    • Document everything with comments and design documents.
    • If you forget a semicolon or close-parentheses, the compiler will try to fix it, but it'll probably do it wrong.
    • Always number your punch-cards so that you can resort them if you drop them.
    One and a half of those things are no longer true, and most of the security holes seem to come from people ignoring the first two of these principles. I really really like the C Language, but people shouldn't use it for anything sensitive unless they're willing to be really careful, but there's too much badly written code out there.
    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  28. Why not use webdavs or sftp? by Ambassador+Kosh · · Score: 2, Informative

    Most modern systems can mount webdav to share just fine, you can server it from all kinds of systems and can work with it from just about any kind of system. With ssl you can make it secure enough. So you end up with something nice and fast and where you are free to change implementations at any time on client or server without breaking stuff.

    Another option is sftp. I am not sure how easy that is to do under windows and osx but I expect someone has a vfs layer for it under those. Under kde and gnome sftp is transparent to work with and it should be very secure, that is the way I usually share files is with sftp.

    The advantage of both of these is that they are entirely user space. Worrying about speed with these file sharing seems seems pretty silly in most cases. You have such vastly more cpu power available then the system needs for file sharing that trading security for speed which is what many of these systems is doing is ridiculous. We should be designing stuff for security first and speed second since who cares how fast a machine can be compromised is. As long as it is fast enough that is fine.

    Another thing really needed is more use of safer libraries. Code is not an asset it is a LIABILITY the more of it you have the worse off you are. You need to offload as much stuff to common libraries, using higher level languages which have more safety features built in etc. In the end you will end up with safer and more reliable programs and strangely enough most of them will tend to be faster for many reasons.

    --
    Computer modeling for biotech drug manufacturing is HARD! :)
  29. I think I'm immune by ajs318 · · Score: 2, Interesting

    I have no SMB shares -- I even compiled my kernel without SMBFS support. Honestly, I really don't see the point with SMBFS. All the machines on my LAN have NFS support compiled in, and the ones with printers attached are running CUPS. That seems to work fine.

    If I actually wanted to run a Windows box for some reason, I'd probably just run open-source NFS and CUPS clients on that. A non-secret, non-proprietary protocol is always going to be inherently more secure than a secret, proprietary one; because there is a proper distinction between what really needs to be kept secret for security reasons, and what can't be kept secret because the source code is available to all.

    --
    Je fume. Tu fumes. Nous fûmes!
  30. Re:OSS is quick to please by chrish · · Score: 3, Informative

    Jeeze, if you're going to the trouble of posting a link to xscreensaver, you might want to use the right one so you get an up-to-date version (4.18 is current).

    --
    - chrish