22 comments

  • msm_8 hours ago
    Wow, this is serious. Makes you think, that even though QubesOS attack surface is so tiny (well-designed to be secure) there are still vulnerabilities to be found.<p>Worth noting that (as I understand) this vulnerability occurs only when doing copy-to-VM from Dom0:<p>&gt;Note that the VM variant of `qvm-copy-to-vm` is not affected, as its version of the error reporting function does not use `system()`:<p>Since you should not use Dom0 for regular work, and definitely not for interacting with likely-to-be-infected VMs, the scope of this attack is smaller than it sounds. On the flip side, when it works, it elevates privileges straight to Dom0.
    • deathanatos19 minutes ago
      &gt; <i>well-designed to be secure</i><p>While I suppose this doesn&#x27;t say the design isn&#x27;t secure, system() is one of those calls that has no place in modern code. It is insecure by its design.<p>&gt; <i>Any user input that is employed as part of `command` should be</i> carefully <i>sanitized, to ensure that unexpected shell commands or command options are not executed. Such risks are especially grave when using system() from a privileged program.</i><p>(—man 3 system)
    • Topfi6 hours ago
      You are right, copying to dom0 is not best practices and warned against since anno dazumal, but given the user groups I remember not always being technically minded (journalists, dissidents, etc.) and ensuring qubeses isolation holds even when users do things they are discouraged from has always been part of the philosophy. Don’t trust users, don’t trust userland, don’t trust software and all that yazz.
      • nickzana4 hours ago
        I believe this is a vulnerability that occurs when copying data <i>from</i> dom0, which is a more common task. Generally the Qubes model recommends copying data from more trusted VMs to less trusted VMs, and dom0 still runs some system-wide processes in many default configurations.<p>For example when you take a screenshot with xfce4-screenshooter, the file is saved to dom0, and you have to use qvm-copy-to-vm to move it to a (less trusted) qube to do something with it. That&#x27;s the most frequent use case, at least for me.
  • sdcfgy7 hours ago
    Reminds me of Theo DeRaadt again: <a href="https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-misc&amp;m=119318909016582" rel="nofollow">https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-misc&amp;m=119318909016582</a>
    • Topfi7 hours ago
      I feel that, in fairness, one should at least read Adam’s response, though ideally all subsequent mails: <a href="https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-misc&amp;m=119320496730314&amp;w=2" rel="nofollow">https:&#x2F;&#x2F;marc.info&#x2F;?l=openbsd-misc&amp;m=119320496730314&amp;w=2</a><p>Theos is a very opinionated and not necessarily wrong position, but I feel also a bit too reductive given we are eternally having to deal with compromises of some form. Also, lest we forget, it has been two decades in the interim and oh so much has changed. In any case, this originated from their code, not virtualization, so it doesn’t really apply either way…
      • chmod7756 hours ago
        That&#x27;s an impressive amount of maturity and composure Adam demonstrates there after receiving a response like that.
      • sdcfgy5 hours ago
        I think it&#x27;s pretty much spot on myself and applies to more than virtualization based on the last point. It really suggests that further complexity and abstraction is not a good security posture. And I agree with this from extensive experience (embedded, defence).<p>Regarding the two decades since and the numerous exploitable x86-64 and hypervisor bugs suggests he wasn&#x27;t wrong and that the tone was appropriate for the severity of the problem.
        • dvdkon42 minutes ago
          Sadly complexity is unavoidable for most real-world usecases. Just see how so many people interested in de-Googled phones balk at the prospect of losing access to banking apps. Telling them to go use an OS that doesn&#x27;t support Bluetooth isn&#x27;t going to work, but hopefully you wouldn&#x27;t say that means they should give up all hope of security.<p>Abstraction has served us well in managing complexity before. I wouldn&#x27;t abandon it out of misplaced idealism.
          • sdcfgy34 minutes ago
            Hey I&#x27;m quite happy to run my banking over TN3270 :)
        • rpdillon4 minutes ago
          &gt; tone was appropriate<p>TDR said:<p>&gt; You are absolutely deluded, if not stupid, if you think that a worldwide collection of software engineers who can&#x27;t write operating systems or applications without security holes, can then turn around and suddenly write virtualization layers without security holes.<p>This comment wouldn&#x27;t survive HN scrutiny. It&#x27;s a strawman argument, and doesn&#x27;t address the core point at all: does virtualization improve or degrade security, when taken as a whole?<p>Adam&#x27;s response is great, and TDR is smart, but he&#x27;s been a lightning rod for 20 years for a reason: he was doing hot takes before they were even called that, and this is a great example.
      • Betelbuddy5 hours ago
        In all fairness also read this: <a href="https:&#x2F;&#x2F;taviso.decsystem.org&#x2F;virtsec.pdf" rel="nofollow">https:&#x2F;&#x2F;taviso.decsystem.org&#x2F;virtsec.pdf</a>
        • koverstreet3 hours ago
          Yeah, I&#x27;m with Theo on this one. Conventional OS security between Ring-0 and everything else is well understood; the problem has become too much code in Ring-0, a great fraction of which has its own interfaces across the security boundary, and the Unix security model just doesn&#x27;t scale.<p>No capabilities, or even a sane and useful way of adding capabilities with everything in ring 0, and the flat integer namespacing of users and groups just doesn&#x27;t work for what userspace needs to do today - hence namespaces, which have introduced their own problems, because (no surprise) trying to graft a tree structure onto a flat integer namespace after the fact is a mess.<p>Virtualization tried to sidestep all that, but to make it fast the cost has been more driver interfaces to host ring-0 - remember what the original was? - and screwing around a whole bunch with particularly arcane facets of the core ring-0 security boundary, e.g. page tables.<p>It is a mess.
    • pornel7 hours ago
      The bug here is not related to virtualization, but a footgun as old as C stdlib: system() that doesn&#x27;t take arguments separately, and instead relies on shell escaping by the application.
      • 17186274405 hours ago
        The only point of system(3) is to invoke the OS shell, if you do not want that use exec(3).
    • zvmaz7 hours ago
      All I see is rudeness, insults, and arrogance sparkled with inklings of technical arguments. Worthless.
      • iugtmkbdfil8346 hours ago
        But, and this is the important part, is he wrong?
        • matherial5 hours ago
          Being right is not the most important part. If you&#x27;re right but don&#x27;t convince anyone, you&#x27;ve made no difference.<p>Theo was right that virtualization is a comparatively shoddy security boundary. At the same time, it&#x27;s flexible and capable in ways that now define the shape of modern IT.<p>Could we have replicated that by other means? If yes, then it&#x27;s on Theo and other knee-jerk critics that they never proposed a better approach and settled for insulting people. If not, then maybe virtualization was a necessary evil. Or maybe everyone else is an irredeemable idiot, but again - if we reach that conclusion, is the world better off?
          • iugtmkbdfil83447 minutes ago
            I did not claim it was most important, but he clearly called out issues that haunt us still, because we did not fix the basic initial issues ( and we are actively making it worse now with AI slop -- we because, while I use llms, I am not arrogant enough to offer my contributions to emulation, virtualization and other foundational stuff ). The point is that he called it and all of us should do some soul searching as to why his words were ignored. Because if he was ignored because &#x27;he was mean about it&#x27;, the we are kinda screwed long, because anyone with a brain that can comprehend the issue, will likely have little patience for anyone, who can&#x27;t see it or won&#x27;t want see to see it for some contrived semi-social reason.
          • sdcfgy5 hours ago
            Maybe if we didn&#x27;t virtualize everything at machine level we&#x27;d have portable software that runs on the original virtualization method: processes.<p><i>Stares at Go as about the only step in that direction...</i>
          • systemf_omega4 hours ago
            LLM slop account. Admittedly this one was harder to spot.
            • matherial2 hours ago
              You&#x27;re chasing ghosts, son.
            • tucnak3 hours ago
              Oh shit, you&#x27;re right!
              • matherial2 hours ago
                They aren&#x27;t, they&#x27;re one of the people who latch on longstanding and neutral syntax (em-dashes, &quot;it&#x27;s not $foo&quot;) as a proof of LLM text. I don&#x27;t blame them because HN has a lot of people trying to pass gen AI stuff as their own, and you need quick heuristics... but I&#x27;d encourage people at least do it right. Pay for Pangram or something.
                • pixl972 hours ago
                  Or as the new saying goes<p>&quot;HN: Professionally identifying 230% of posts from 2017 as LLM generated&quot;.<p>That said Panagram is trash for the opposite reason. Not that some people talked like LLMs before LLMs, but now a lot of people talk like LLMs because of LLMs.
        • zvmaz6 hours ago
          I don&#x27;t really know as the argument is mainly about how stupid people are... The technical argument is one paragraph ended with an insult, not much to make an educated and civilized opinion.
          • iugtmkbdfil83441 minutes ago
            &lt;&lt; You are absolutely deluded, if not stupid, if you think that a worldwide collection of software engineers who can&#x27;t write operating systems or applications without security holes, can then turn around and suddenly write virtualization layers without security holes.<p>Allow me to start by saying that you are wrong about &#x27;mainly about&#x27;. The argument starts with an insult, but insult is minimal and it moves directly into the technical details. But, note that how much you are wrong about the paragraph, because what you want to focus is the insult. You are so wrong about it you effectively invert the proportions of presence of technical data to insult..
        • Betelbuddy5 hours ago
          This community lives on not understanding that...form over function always...
          • iugtmkbdfil83453 minutes ago
            But is the world a better place with that particular understanding being the norm. Would we, as a whole, be better served if function was what actually mattered? Wouldn&#x27;t that be nice?
          • zvmaz5 hours ago
            Can I insult you and then complain that you focus too much on form?
        • eli6 hours ago
          What if that isn’t the most important part
    • XMPPwocky7 hours ago
      Looks like this has nothing to do with the hypervisor, it&#x27;s not a traditional VM escape
    • throwa3562627 hours ago
      Theo is a very insightful guy, but also very opinionated. I think the truth is somewhere in between.<p>Especially as more and more virtualization functions move into hardware, not using them as a second security barrier seems foolish.
    • fallat7 hours ago
      Brutal<p>I hope when people read this though they understand this is a communication style; they&#x27;re clearly trying to strongly discourage people from thinking they are suddenly protected. Effective? Maybe at one time, where &quot;macho dev energy&quot; was a thing. Today, not so much. You can tell they mean well because the intro sentence is actually pretty cheeky!
    • edelbitter7 hours ago
      This is less of a virt&#x2F;x86 bug and more of a &quot;don&#x27;t call system() on arbitrary user input&quot; bug.<p>.. incidentally, OpenBSD also provides one of the clearest examples of how the excuse &quot;calling system() is fine <i>in my case</i>, its totally not arbitrary user input&quot; is deluded just the same, see CVE-2020-8794.
    • 129958167 hours ago
      Peak Theo! This refreshing truth telling has been eradicated in 2026.
      • Topfi6 hours ago
        It has? News to me. Go on any major thread on this page, you’ll witness similarly strong pushback visa-vi buying into corporate backed hype, akin to the overconfidence in virt security he pointed at back then.
        • nython6 hours ago
          Vi doesn&#x27;t require a visa but the trip is one way only. (Vis-a-vis)
          • Topfi4 hours ago
            You know, given my French grades, I really should stop using such phrases…
  • grommz6 hours ago
    The founder Joanna Rutkowska left QubesOS in 2018. All the code involved in this bug was committed by her successor Marek Marczykowski-Górecki.<p>Joanna seems to be a genuine good guy, she once wrote a paper titled &quot;Intel x86 considered harmful&quot;. That&#x27;s why Huawei and the Chinese government aren&#x27;t even trying any more to make western CPU architectures secure, it&#x27;s a hopeless cause.
    • jervant2 hours ago
      &gt; good guy,<p>&gt; she
  • zby9 hours ago
    I am still impressed by QubesOS track and I use it for my dedicated &#x27;financials&#x27; laptop.<p>IMHO the thing that is holding back QubesOS is the lack of hardware acceleration for graphics - maybe now when dual monitor setups are getting popular this could be a workaround for the security considerations?
    • jwrallie8 hours ago
      I dropped QubesOS once exactly for that reason in the past but now I’m running it again on a separate computer.<p>Even with all its drawbacks, there is something really nice about being able to run different applications over Tor, VPN or plain internet simultaneously, the ability to isolate non-safe binaries and being able to backup your VMs easily.<p>I wish a similar distro would be made based on KVM so that the standard kernel could be used. It would be great for compatibility.
      • tom_alexander5 hours ago
        &gt; being able to run different applications over Tor, VPN or plain internet simultaneously, the ability to isolate non-safe binaries and being able to backup your VMs easily.<p>These are all possible using light containers. For example, on FreeBSD I will spin up a jail which runs wireguard, and then I&#x27;ll bridge that to another a jail. That 2nd jail is running entirely off wireguard without any other way to access the network. Since it is a jail, it is isolated. And backing up is as simple as a zfs snapshot and zfs send. I assume the same is possible on Linux.
      • fsflover8 hours ago
        &gt; I wish a similar distro would be made based on KVM<p>There is an Issue for that: <a href="https:&#x2F;&#x2F;github.com&#x2F;QubesOS&#x2F;qubes-issues&#x2F;issues&#x2F;7051" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;QubesOS&#x2F;qubes-issues&#x2F;issues&#x2F;7051</a>
    • artyomsv7 hours ago
      Problem is not that nobody wants to do it, it is that GPU stack is exactly the kind of enormous driver surface Qubes exists to keep away from dom0. Second monitor does not really change that, somebody still has to trust the driver.
      • progval1 hour ago
        The driver could run in a VM and only display applications from that VM or a subset of VMs.
  • polotics9 hours ago
    I&#x27;m still very impressed by qubes, and glad I&#x27;m not such a target that I feel I need the level of opsec it affords (on all my laptops).<p>Maybe someday AI-assisted killchains will be so widespread that Qubes is the minimal level for the (few?) still-local users of compute.<p>I would not have copied anything from dom0 to any another qube, the impact is low.
  • user_78324 hours ago
    Mini tangent: Could someone explain to me why Qubes is used for security, when (from what I understand) Jails on BSD is significantly more robust&#x2F;safe&#x2F;has a much smaller exposed area? Is it just &quot;everyone&#x27;s using linux already; here&#x27;s a <i>safer</i> linux&quot;?
    • zvmaz3 hours ago
      Qubes can be viewed as a Xen distribution, rather than a Linux distribution [1]. You may find the Qubes FAQ a good starting point (I&#x27;m reading it now because of your question, so thanks).<p>[1] <a href="https:&#x2F;&#x2F;doc.qubes-os.org&#x2F;en&#x2F;latest&#x2F;introduction&#x2F;faq.html#is-qubes-just-another-linux-distribution" rel="nofollow">https:&#x2F;&#x2F;doc.qubes-os.org&#x2F;en&#x2F;latest&#x2F;introduction&#x2F;faq.html#is-...</a>
  • Allwinkt7 hours ago
    The worst part is that in 2020 they explicitly documented that the remote filename is attacker controlled,but still allowed it to reach system() That is C security 101: never pass untrusted input through a shell. This should have been caught in review!
  • _pdp_7 hours ago
    Most security bugs are due to improper string validation and use.
  • Naru413 hours ago
    If it&#x27;s `untrusted_filename`, it should at least accept the length of the string as an argument.
  • bawolff3 hours ago
    its kind of fascinating that all this paranoia falls to a shell escaping issue with system().
  • Topfi7 hours ago
    That is sphincter tightening to read. Have to point out how amazingly well their bulletins handle communication. Clearly describes the issues, how users are to act, etc. in, what I feel, is an easy to grasp language, even if one’s not in the weeds that much. In fairness though, I do still have some past memories concerning Qubes architecture from way back, so maybe my assessment is wrong and this is still not that straight forward to grasp for most.
  • TacticalCoder8 hours ago
    I do <i>really</i> like the following in the bulletin:<p>&gt; Important: At this point, you still don’t know whether the key you just imported is the genuine QMSK or a forgery. In order for this entire procedure to provide meaningful security benefits, you must authenticate the QMSK out-of-band. Do not skip this step! The standard method is to obtain the QMSK fingerprint from multiple independent sources in several different ways and check to see whether they match the key you just imported. For more information, see How to import and authenticate the Qubes Master Signing Key.<p>It looks like Qubes is ran by people who take security seriously, which is refreshing.
    • inigyou3 hours ago
      I own a Qubes T-shirt which I bought in person at FOSDEM. The design on the T-shirt consists of many copies of the QMSK in hexadecimal. All of their merch is like this.
    • leonidasrup7 hours ago
      How well is QMSK protected from a serious attacker?
  • crest1 hour ago
    Really an attacker controlled system() call?!?
  • Allwinkt7 hours ago
    The worst part is that in 2020 they explicitly documented that the remote filename is attacker controlled,but still allowed it to reach system() This is C security 101: never pass untrusted input through a shell. This should have been caught in the review!
    • palata7 hours ago
      Isn&#x27;t it the case for all bugs? If they appear in the production software, it means that they passed the review. And obviously bugs shouldn&#x27;t pass the review, but that&#x27;s easier said than done.
    • vlovich1233 hours ago
      This should be made structurally impossible through type safety rather relying on code review.
  • iberator6 hours ago
    This os is supposed to be run on bare metal AFIK for same reason
  • charcircuit9 hours ago
    Another example for why system() is so dangerous to use.<p>I also don&#x27;t understand why it needs to show the dialog in dom0. If you have the option to handle attacker controlled input on the unprivileged side, you should do that instead of putting a lot of logic on the privileged side.
    • delamon9 hours ago
      The code is sloppy. They check existance of kdialog binary using full path; next step they rely on PATH search by shell. If would&#x27;ve been much safer to just do execve directly.
    • HackerThemAll9 hours ago
      &gt; why it needs to show the dialog in dom0<p>I think it&#x27;s the &quot;secure screen&quot; that cannot be manipulated by the malware in a VM. I&#x27;d expect a password entry dialog to also be handled like that.
      • danielheath6 hours ago
        If you&#x27;re going to put the graphics and NIC into separate VMs, surely the secure screen can be another of those semi-privileged VMs rather than part of dom0
      • charcircuit8 hours ago
        It&#x27;s for an the &quot;File copy&#x2F;move error&quot; error dialog.
  • anArbitraryOne5 hours ago
    My username checks out
  • ka3ki7 hours ago
    it&#x27;s kinda doomed at this point
  • kimberlysatterf6 hours ago
    [dead]
  • hneqy2wqls5 hours ago
    [dead]
  • ka3ki7 hours ago
    It&#x27;s kinda futile to seek any kind of security in the modern scene of 2026. Kind of disappointing.
  • 129958167 hours ago
    Peculiar stuff. I&#x27;m always skeptical of these security Linux distributions, but this bug is so bad that it seems like an infiltration of Qubes at best or Qubes being a honeypot at worst.