11 comments

  • Tiberium 45 minutes ago
    Seems to be found as a part of Patch The Planet [0] which is basically OpenAI giving model access and Trail of Bits using them to find vulnerabilities in OSS projects.

    [0] https://openai.com/index/patch-the-planet/

  • tiffanyh 9 minutes ago
    Can anyone find the mailing list thread on this topic (or does it not exist because @security are private mailing list)?

    I did find another use-after-free bug from a couple months ago on the mailing list:

    https://marc.info/?t=177581065500002&r=1&w=2

  • uticus 42 minutes ago
    > Only two remote holes in the default install, in a heck of a long time!

    https://www.openbsd.org/

    https://en.wikipedia.org/wiki/OpenBSD#Security_record

    • anonym29 39 minutes ago
      LPE (to root) is serious, but it's not a remote hole.
  • Arubis 37 minutes ago
    OpenBSD's security stance being the stuff of legend, I'm curious how many vulns have been found over the last couple months while the big model companies are flaunting their ability to find exploits. It'd be super cool to see it remain tiny.
    • wahern 30 minutes ago
      According to https://openai.com/index/patch-the-planet/

      Linux: 24 LPEs, plus many additional vulnerabilities.

      OpenBSD: 1 LPE.

      FreeBSD: 7 LPEs, plus many additional vulnerabilities.

      Not sure what that says, though. Perhaps the models are more likely to find Linux issues because of the training.

      • _flux 1 minute ago
        I wonder how many of the Linux the LPEs are related to drivers, which I understand there are more of..
      • dcrazy 5 minutes ago
        Or Linux development is significantly more active.
        • ori_b 2 minutes ago
          This is an external audit. Why would Linux activity make a difference here? Are you theorizing that the churn causes bugs?
    • mmooss 1 minute ago
      I think of it more as their attention to quality in their code:

      Given the 'quality' of most code, especially under commercial pressure, it's no surprise that much more effective tools will find many more vulnerabilities. Did OpenBSDs quality approach work in this respect?

    • ectospheno 31 minutes ago
      The commit logs over the last few months have highlighted when an issue was found by a program. They usually name the submitter and the tool.
  • jsiepkes 36 minutes ago
    If this is a local privilege escalation to root, why can't I find anything on https://www.openbsd.org/security.html ?
    • justthehuman 15 minutes ago
      Best guess, from the commit message alone[0]: It was fixed as a bug, at the time they didn't have evidence it could lead to LPE

      The AI security tool then, retroactively discovered that it could have been used for LPE.

      Again, just my guess I could be wrong.

      [0] https://github.com/openbsd/src/commit/1957873d2063db11dab780...

    • stackghost 12 minutes ago
      OpenBSD has a reputation for being... selective about what they admit is a security-relevant bug.
  • poly2it 30 minutes ago
    Would Rust have made this issue impossible by construction? I know Linus has spoken about Rust's promises about memory safety not being equivalently applicable in the kernel domain, so I would be curious to hear any kernel developer's perspectives.
    • klodolph 10 minutes ago
      Rust is designed to make this type of issue impossible, but that assumes that you can correctly encode object lifetimes in the kernel in a way that allows the compiler to check them.

      So I would say that any easy answer like “this would not compile” would just be a guess, because you would want to know more of the particulars in order to answer this question.

      I know that this is kind of a non-answer, but if you want to write a kernel in Rust you have to figure out boundaries for where unsafe {} are. In a kernel, there are probably large chunks of unsafe {} and the Rust compiler prevents certain bugs outside unsafe {} assuming there aren’t bugs inside unsafe {} that would prevent the type checker from doing its job correctly.

    • rwaksmunski 12 minutes ago
      The Rust ownership model prevents use after free. This type of a bug would not compile.
    • skydhash 3 minutes ago
      I’m not an OS programmer and have been dabbling with OpenBSD’s code for fun. But the fact is that Rust kinda lacks flexibility. Most of the OS is dedicated to building a beautiful lie for programs to run happily, and that’s where C shine.

      I shudder to think about the amount of work that it would take to convince the rust compiler that everything is all right. Most hardware interactions is “parse, don’t validate” which means you’ll be pinky-swearing to the compiler.

      And for my cursory glances at the code, most structures are handled well, that it’s mostly logic bug (from bad data) instead of bad memory access (which can happen).

  • bitwize 23 minutes ago
    "'Nothing could have prevented this from happening,' say users of only language where this happens" comes to bite OpenBSD.
    • anoneng 5 minutes ago
      Tell us you know nothing about kernel programming and trust stacks while you are at it.
    • applfanboysbgon 10 minutes ago
      The OpenBSD project was started in 1995, with ancestry going back further than that. Should they have first invented Rust? Or at what point do you suppose the decades-old codebase should have been completely rewritten?
  • gjvc 49 minutes ago
    from the link:

    sys/kern/sysv_sem.c in OpenBSD through 7.9 has a use-after-free allowing local privilege escalation to root. This is a context switch use-after-free after tsleep in sys_semget().

  • iberator 46 minutes ago
    Blasphemy
    • znpy 31 minutes ago
      and yet...
  • preetham_rangu 37 minutes ago
    [dead]
  • IveSeenItAll 8 minutes ago
    Oh, hey, a local-user-to-root exploit on OpenBSD. Cool! Those are rare, but not unheard of, unless you're talking about Windows or Linux, where you don't hear much about this bug class, just since it's common-as-rainfall.

    Anyway... Does this mean OpenBSD is suddenly less interesting? Nope, it's still pretty much the best-understandable general-purpose OS, ready for your RiiR fork. So, still go for that! Burn a universe or two worth of tokens! For the planet!

    Does this mean OpenBSD is suddenly less secure? Nah... Its practical security level was never that much higher than that of its nominal competitors, despite Theo's best attempts, the best of which were replicated elsewhere and majority of it went ignored. The first class counts as "innovations", the rest as "experiments" which, no matter what anyone thinks, is not the same as "failed innovations."

    But I digress. Now, go and donate to OpenSSH (because I bet you typed ssh today, didn't you, you rascal?), publish your OxidizedBSD fork, or whatever. Just don't link to that "is OpenBSD secure?" site, because, well, gauche, dude(tte)!