Slashdot Mirror


Linux's Security Through Obscurity

An anonymous reader writes "The age-old full disclosure debate has been raging again, this time in no other place than at the foundations of the open-source flagship GNU/Linux operating system: within the Linux kernel itself. It beggars belief, but even Linux creator, Linus Torvalds, has advocated against the sort of openness on which Linux has thrived, arguing that security fixes to the kernel should be obscured in changelogs, saying 'If it's not a very public security issue already, I don't want a simple "git log + grep" to help find it.' Unfortunately, it's not kernel exploit writers who need to grep the changelog in order to find kernel vulnerabilities. On the contrary, it's downstream distributors who rely on changelog information in order to decide when to patch the kernels of their distributions, in order to keep their users safe."

37 of 215 comments (clear)

  1. The idealistic young become the cynical old. by HungryHobo · · Score: 4, Interesting

    And so the cycle continues.

    The thing is that while security through obscurity is a fools game it can also hurt your users to publish exact details of the security vulnerabilities you've found in your own product before many of your users have had a chance to patch the problem.

    1. Re:The idealistic young become the cynical old. by neuromancer23 · · Score: 5, Funny

      "Get off my lawn!" - Linus Torvalds

    2. Re:The idealistic young become the cynical old. by fictionpuss · · Score: 4, Insightful

      The thing is that while security through obscurity is a fools game it can also hurt your users to publish exact details of the security vulnerabilities you've found in your own product before many of your users have had a chance to patch the problem.

      Surely though, the people who are looking to take advantage of security vulnerabilities, are generally the ones who already have a financial motivation to do so? The people who already have their own dark networks to share or buy and sell vulnerabilities?

      Won't they still do this even if it becomes harder to decipher changelogs? The only thing changing then, is that it'll take longer for regular users to see the danger.

    3. Re:The idealistic young become the cynical old. by dotancohen · · Score: 4, Insightful

      Read the replies. Linus is not advocating security through obscurity. He just doesn't want a big flashing sign "SECURITY" on security-related bugfixes. He doesn't want them to stand out in any way at all.

      --
      It is dangerous to be right when the government is wrong.
    4. Re:The idealistic young become the cynical old. by dch24 · · Score: 5, Informative
      Realistically, this article is light on the quotes of Linus because the article is trying to make a big deal out of Linus' words "I personally consider security bugs to be just 'normal bugs'. I don't cover them up, but I also don't have any reason what-so-ever to think it's a good idea to track them and announce them as something special."

      At that point, slashdot and schneier.com are just trolling. Read the whole email I quote above:

      We went through this discussion a couple of weeks ago, and I had absolutely zero interest in explaining it again.

      I personally don't like embargoes. I don't think they work. That means that I want to fix things asap. But that also means that there is never a time when you can "let people know", except when it's not an issue any more, at which point there is no _point_ in letting people know any more.

      So I personally consider security bugs to be just "normal bugs". I don't cover them up, but I also don't have any reason what-so-ever to think it's a good idea to track them and announce them as something special.

      So there is no "policy". Nor is it likely to change.

      It's a flamebait email thread. Linus has harsh words for BSD. Nobody ever said Linus doesn't do that -- but this is not security through obscurity.

      His take on security issues is simply: they're bugs. Deal with it.

    5. Re:The idealistic young become the cynical old. by Tupper · · Score: 5, Insightful

      Yeah, he thinks security bugs are just like regular bugs. But he's wrong. Most bugs don't bite most users--- the ones that don't can be ignored. Very few people can ignore security bugs--- they bite everyone. The chance I need a random bugfix is very small; if I don't need it, I don't want it. The chance I want a security bugfix is almost 100%.

    6. Re:The idealistic young become the cynical old. by gmack · · Score: 4, Insightful

      Congratulations your exactly the reason Linus doesn't want a big flashing "Security" sign.

      Linus' point was that most bugs can be potential security problems and if you ignore anything but security fixes you risk not patching in the case of a bug being discovered exploitable after the fix goes into the kernel.

    7. Re:The idealistic young become the cynical old. by TheGreek · · Score: 4, Funny

      Not all security-related bugs are easily identifiable as such. And even if they were, and then they were marked as such, do you really want the changelog easily greppable by them?

      "Dear God, won't somebody please think of the children?"

    8. Re:The idealistic young become the cynical old. by sukotto · · Score: 5, Insightful

      In the same thread he also says "So as far as I'm concerned, 'disclosing' is the fixing of the bug. It's the 'look at the source' approach."

      I don't see any security by obscurity going on here. He fixes the bug, and tells you in the changelog what the bug was.

      What he's NOT doing is announcing in advance how to exploit the bug.

      So why are so many people getting agitated about this?

      --
      Come play free flash games on Kongregate!
    9. Re:The idealistic young become the cynical old. by spankymm · · Score: 5, Insightful

      He's right - they're just bugs. Where he isn't right is about OpenBSD - security is a by-product of fixing bugs. They don't just fix the bugs, but when a new class of bug is identified the whole source tree is scanned for that type of bug - both kernel *and* user-land. But then Linux is just a kernel, isn't it?

      --
      http://cafepress.com/spankymm - for the Masturbating Monkey in you!
    10. Re:The idealistic young become the cynical old. by dotancohen · · Score: 5, Funny

      "Dear God, won't somebody please think of the children?"

      Actually, as a kernel issue, this affects all the system threads.

      --
      It is dangerous to be right when the government is wrong.
    11. Re:The idealistic young become the cynical old. by xtracto · · Score: 4, Insightful

      Yeah, he thinks security bugs are just like regular bugs. But [I think] he's wrong.

      There, fixed it for you. The fact is that just because from your personal point of view a bug that is potentially useful to gain unauthorized rights does not mean that everybody sees it that way.

      From what I have read about Linus, he is a very pragmatic guy. For him, a security bug is just another bug in the code (and in a simplistic way, it really is true).

      Some people will be more concerned with those bugs, others will be concerned with bugs that reduce the performance of the OS, others will be more interested in bugs that reduce the reliability (as in, crashing every so often, etc).

      The fact is that there are lots of people already classifying bugs, I think what Linus is saying is that he does not consider the job of the kernel guys to do such kiind of classification.

      For them, it is just another bug that must be seen.

      --
      Ubuntu is an African word meaning 'I can't configure Debian'
    12. Re:The idealistic young become the cynical old. by gmack · · Score: 4, Interesting

      In both. There were some that were Linux only but quite a few affected OpenBSD as well.

      It's not that they didn't do a good job and they clearly did a much better job than the SSH daemon they replaced it's just that the Linux distros adopting it increased it's userbase by a lot and as a side affect increased the the number of people who saw a need to look at the code.

    13. Re:The idealistic young become the cynical old. by Anonymous Coward · · Score: 5, Insightful

      No, there was only one openssh bug around that time, the rest were PAM/linux specific issues. And that one openssh bug had nothing to do with it being more widely adopted, it was just an ordinary "bug found in relatively new software" situation.

    14. Re:The idealistic young become the cynical old. by TheSHAD0W · · Score: 4, Insightful

      So, some random - but short, say within 3 days - amount of time later, post a message saying "security fix implemented - please update".

      That will alert folks that there's a security issue without spotlighting the problem.

  2. What the... by gparent · · Score: 5, Insightful

    Linux users typically praise open source software on the basis that vulnerabilities can be found easily and patched by anybody who possesses the knowledge to do so, making open source software more secure. Why should this change now?

    1. Re:What the... by HungryHobo · · Score: 5, Insightful

      As the userbase shifts towards more mainstream users and away from the technically abled the percentage of users to whom the "who possesses the knowledge" actually applies drops and the number who are likely to be slow updating their systems goes up.This changes the game a little. I'm a supporter of the open model but I can see where they're coming from.

    2. Re:What the... by hcmtnbiker · · Score: 4, Insightful

      Linux users typically praise open source software on the basis that vulnerabilities can be found easily and patched by anybody who possesses the knowledge to do so, making open source software more secure. Why should this change now?

      This has nothing to do with the openness of the source code or the disclosure of vulnerabilities. Linus just doesn't want big proof of concepts for exploits in the last version of the kernel(which there will of course be people still running) to end up in this version. He doesn't want to aid script kiddies. Anyone can still find and patch parts of the code base, there's no move away from that.

      --
      If i had one dollar for every brain you dont have, i would have $1.
  3. Linus does not mean obfuscation by Novus · · Score: 5, Informative
    Note that the quote from Linus continues:

    That said, I don't _plan_ messages or obfuscate them, so "overflow" might well be part of the message just because it simply describes the fix. So I'm not claiming that the messages can never help somebody pinpoint interesting commits to look at, I'm just also not at all interested in doing so reliably.

    He doesn't believe in obfuscating changelogs, just not filling them with security information making it easy to find vulnerable kernels.

  4. Isn't that part of their job? by MikeRT · · Score: 4, Insightful

    On the contrary, it's downstream distributors who rely on changelog information in order to decide when to patch the kernels of their distributions, in order to keep their users safe."

    As long as the information is in there, isn't it part of their job to read through the changelog, read between the lines, and update appropriately? I have no mercy for the commercial groups that do their own distributions, and quite frankly, if they're going to play with the big boys, anyone who is rolling their own distribution should be put the effort into it to read the changelog for the kernel. It's not like some security hole in a fairly obscure or minor piece of software that they're having to look out for.

    1. Re:Isn't that part of their job? by betterunixthanunix · · Score: 4, Insightful

      You say you have no mercy for commercial distributors, but the truth is that this sort of obscuration will only increase their business. Companies like Red Hat and Novell have the resources to pay people to spend all day reading through changelogs and deciding whether or not a patch is worth applying (in addition to people to are paid to submit patches). Universities may not have those resources, and their computer centers may only have enough time to quickly check a patch for common security fixes using grep. If it becomes impossible to do that, then all that we'll see is an increase in the number of people who buy support from commercial distributors, because they won't be able to support themselves.

      --
      Palm trees and 8
    2. Re:Isn't that part of their job? by kipin · · Score: 4, Insightful

      And what exactly is the problem with this method?
      If you don't have the time to perform security maintenance, but someone else does, why shouldn't they be allowed to make a profit for their time?

      --
      If I can not smoke in heaven, then I shall not go. -- Mark Twain
  5. Completely out of context by Anonymous Coward · · Score: 5, Informative

    The article quote is completely out of context, go read the full thread and see what he really said. His main point is that security bugs are like any other bug. He doesn't see the point in putting code that can trip bugs into the git reports, whether it is a security bug or otherwise.

    1. Re:Completely out of context by Anonymous Coward · · Score: 4, Insightful

      Agreed. The thing to note is that this cuts both ways.

      *Every* bug is a potential security bug. So should we look for ways to try to convert every bug into a security notice? Of course not! Why waste the time? What happens when it turns out that a bug doesn't have security implications? Do we shout "hurray!" and flag it as such?

      Linus is entirely correct - a bug is a bug and must be fixed.

  6. Summary: Flamebait? by struppi · · Score: 5, Insightful
    The summary and the linked email from Brad Spengler look very flamebait to me. Linus Thorwalds writes in the quoted mail:

    That said, I don't _plan_ messages or obfuscate them, so "overflow" might well be part of the message just because it simply describes the fix. So I'm not claiming that the messages can never help somebody pinpoint interesting commits to look at, I'm just also not at all interested in doing so reliably.

    And from the second email:

    > by 'cover up' i meant that even when you know better, you quite
    > consciously do *not* report the security impact of said bugs
    Yes. Because the only place I consider appropriate is the kernel changelogs, and since those get published with the sources, there is no way I can convince myself that it's a good idea to say "Hey script kiddies, try this" unless it's already very public indeed.

    Also, someone is not satisfied with an email from Linus Thorwalds and he drags the discussion over here to /. - This certainly will solve the problem... (Sorry for RTFA, I should know better)

  7. "Sorry for RTFA"? by argent · · Score: 4, Funny

    *snort*

    And I thought I'd seen every variant on the usual Slashdot in-jokes.

    You win a gold star.

  8. So by C_Kode · · Score: 4, Insightful

    So, what they're saying is when you find/fix a vulnerability you should broadcast on BBC otherwise you will be less safe?

    I don't think so. Love it or hate it, obscure security issues do protect some users. Obviously the issues need to tracked and I think changelogs are a good place to do it. There isn't a real reason to inform the world through all channels avaliable. Just fix it, log it, and move on. Anyone who needs to know will know where to look.

  9. Two sides to this story by yerdaddy · · Score: 5, Informative

    This is a an extremely one-sided presentation of this story. Linus makes some controversial but insightful points about the security obsessed culture in the community. This should not have been a "Linus has gone mad" story. This is a legitimate re-evaluation of how security patches are handled.

    Read the thread, make your own decision:
    http://thread.gmane.org/gmane.linux.kernel/701694/focus=706950

  10. I just love the smell of napalm in the morning... by Timothy+Brownawell · · Score: 4, Informative

    See the Kerneltrap posting which includes a good part of the email discussion.

    It looks like Linus' main concern is that publicizing a few bugs as "security" issues will act to hide other real security issues that weren't recognized at fix time; that any effort to publicize security issues will be so incomplete as to be misleading. And I see no mention of these concerns in the linked postings, almost as if the "full disclosure" people posting them are afraid to disclose the potential bugs (which would automatically be security bugs because of the topic) in their own methodologies.

  11. Some context. by delire · · Score: 4, Informative
    Looks like Brad is spinning things a bit. Further in the thread a 'Robert Peaslee' writes:

    Hi Brad, Your comments are kind of misguided. Linus can be quoted as saying: "my responsibility is to do a good job. And not pander to the people who want to turn security into a media circus." He was referring to individuals such as yourself when making the circus comment, as your message was slightly alarmist and dramatized. Security is important, of course - but Linus' opinions are completely correct in terms of development of the Linux kernel. I would agree with you if security bugs were actually being hidden, but they aren't. They just aren't given special treatment.

    From here

  12. Wisdom from Ted T'so, as usual. by Medievalist · · Score: 4, Interesting

    Read this post to get some perspective:

    http://article.gmane.org/gmane.linux.kernel/707044

    Linus is being blunt, as usual, and he's telling everybody what his personal policy is towards disclosure. If he finds a bug, he fixes it, and he doesn't rate security bugs as more or less important than other bugs because he's a kernel hacker, and therefore security bugs are not his sole focus in life. He doesn't use any special language to highlight or obscure security fixes in the changelog, he just describes the fix, which is what people are claiming is "security by obscurity".

    From that, people looking for something to bitch about have created this kerfuffle; it is a tale told by an idiot, full of storm and fury, and signifying... nothing.(from Macbeth, 5.5)

    "Shakespeare really kicks the cap off" -- James Hovenac

  13. Missing the point by IceCreamGuy · · Score: 5, Informative

    I think what pageexec (the "antagonist" in the referenced thread) was trying to say was that he feels a lot of the developers don't follow Documentation/SecurityBugs in their commits in a consistent way. He's saying that when people post commits for regular bugs, they include a decent amount of data about what they fixed, but if it's a security bug, people are posting a minimal amount in their commits. Apparently in Documentation/SecurityBugs, it says that full disclosure is the policy, but what he's seeing is less than full disclosure in practice. That is what the thread is actually about, Linus' opinions are ancillary to that point.

    He's just saying that it seems to him that what is written as policy for kernel devs is not what they're actually doing, so they should either change the policy or change their commits. If the changelogs don't conform to policy, at some point somewhere downstream devs are going to miss something because the policy doesn't match the practice, and that's what's a security risk.

  14. Torvalds falsely accused of security coverup .. by rs232 · · Score: 5, Informative

    "so guys (meaning not only Greg but Andrew, Linus, et al.), when will you publicly explain why you're covering up security impact of bugs", pagee...@freemail.hu

    "I don't cover them up", Torvalds

    "by 'cover up' i meant that even when you know better, you quite consciously do *not* report the security impact of said bugs", pagee...@freemail.hu

    "Yes. Because the only place I consider appropriate is the kernel changelogs, and since those get published with the sources, there is no way I can convince myself that it's a good idea to say "Hey script kiddies, try this" unless it's already very public indeed", Torvalds

    "one reason I refuse to bother with the whole security circus is that I think it glorifies - and thus encourages - the wrong behavior It makes "heroes" out of security people, as if the people who don't just fix normal bugs aren't as important", Torvalds

    "I refuse to have anything to even _do_ with organizations like vendor-sec that I think is a corrupt cluster-fuck of people who just want to cover their own ass", Torvalds

    http://tinyurl.com/5qyon3
    http://groups.google.co.uk/group/fa.linux.kernel/browse_thread/thread/5bdf2e1b8a90142c/abcf79768bb7ce7f?hl=en&lnk=st&q=#abcf79768bb7ce7f

    --
    davecb5620@gmail.com
  15. CmdrTaco indulges in flamebait .. by rs232 · · Score: 4, Insightful

    corrected headline .. :)

    --
    davecb5620@gmail.com
  16. Re:There is no absolute security by snspdaarf · · Score: 5, Insightful

    Problem is, it only takes one. If a exploit is developed, it can get passed around among the Bad Guys, even if they don't have the smarts to do it on their own. Look at all the script kiddies. I like to know about security issues, but I prefer that a patch is available before the world is told how to attack my systems.

    --
    Why, without your clothes, you're naked, Miss Dudley!
  17. Worst article this week by pembo13 · · Score: 4, Informative

    Most of the controversy is totally misplaced. This is essentially about having
    * SECUIRTY ISSUE: fix info
    vs.
    * fix info

    Is that really obscurity?

    --
    "Thanks for all the money you paid to us. We've used it to buy off ISO among other things" -Microsoft
  18. Re:There is no absolute security by _Sprocket_ · · Score: 4, Insightful

    The fewer people who know about a vulnerability, the fewer that can exploit it, and that means that users have a lower chance of being exploited.

    Two things to consider:

    1) All it takes is one person to exploit your vulnerability. And that one person doesn't even have to know you exist and target you specifically. Most cases involve targets of opportunity.

    2) These things don't remain secret. How fast the knowledge is spread only depends on the particulars of the situation. But the knowledge will spread. Sometimes very fast. You're unlikely to be dealing with just one potential attacker.

    That's actually an important point about security. You cannot make a useful system without any vulnerabilities. You can only maker it harder to exploit the vulnerabilities, meaning that fewer will be able to exploit them. For example, you cannot make an uncrackable and useful code, but you can make a code so hard to break that very few will even try.

    It depends on what kind of vulnerability we're dealing with. There are known trade-offs in the design of a system and then there's failures in the design or implementation.

    Security is never absolute by design. There are always trade-offs being made (inverse relationship between usability and security, investment of resources vs. value of what's being protected, etc.). Hopefully designers understand the issues and have made wise choices. But even the most well thought out system will ultimately have left some possibility of subverting it. Thus exists the concept that security is not an absolute.

    Bugs and design flaws are a different issue. These are not trade-offs but unintentional mistakes or miscalculations. These are unintentional flaws. It is entirely possible to design or implement a system without flaws. But of course, designing something without flaws or implementing without bugs is difficult.