logoalt Hacker News

Arbitrary code execution in QubesOS via copy-to-VM error reporting backchannel

133 pointsby vntoktoday at 8:51 AM53 commentsview on HN

Comments

msm_today at 11:07 AM

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.

Worth noting that (as I understand) this vulnerability occurs only when doing copy-to-VM from Dom0:

>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()`:

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.

show 1 reply
grommztoday at 1:18 PM

The founder Joanna Rutkowska left QubesOS in 2018. All the code involved in this bug was committed by her successor Marek Marczykowski-Górecki.

Joanna seems to be a genuine good guy, she once wrote a paper titled "Intel x86 considered harmful". That's why Huawei and the Chinese government aren't even trying any more to make western CPU architectures secure, it's a hopeless cause.

sdcfgytoday at 11:30 AM

Reminds me of Theo DeRaadt again: https://marc.info/?l=openbsd-misc&m=119318909016582

show 8 replies
zbytoday at 10:16 AM

I am still impressed by QubesOS track and I use it for my dedicated 'financials' laptop.

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?

show 2 replies
user_7832today at 2:51 PM

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/safe/has a much smaller exposed area? Is it just "everyone's using linux already; here's a safer linux"?

poloticstoday at 10:05 AM

I'm still very impressed by qubes, and glad I'm not such a target that I feel I need the level of opsec it affords (on all my laptops).

Maybe someday AI-assisted killchains will be so widespread that Qubes is the minimal level for the (few?) still-local users of compute.

I would not have copied anything from dom0 to any another qube, the impact is low.

Allwinkttoday at 12:08 PM

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_today at 12:19 PM

Most security bugs are due to improper string validation and use.

Topfitoday at 12:04 PM

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.

TacticalCodertoday at 11:09 AM

I do really like the following in the bulletin:

> 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.

It looks like Qubes is ran by people who take security seriously, which is refreshing.

show 1 reply
Allwinkttoday at 12:09 PM

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!

show 1 reply
iberatortoday at 1:15 PM

This os is supposed to be run on bare metal AFIK for same reason

anArbitraryOnetoday at 1:56 PM

My username checks out

charcircuittoday at 9:41 AM

Another example for why system() is so dangerous to use.

I also don'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.

show 2 replies
ka3kitoday at 12:15 PM

it's kinda doomed at this point

ka3kitoday at 12:15 PM

It's kinda futile to seek any kind of security in the modern scene of 2026. Kind of disappointing.

kimberlysatterftoday at 12:41 PM

[dead]

hneqy2wqlstoday at 1:34 PM

[dead]

12995816today at 11:41 AM

Peculiar stuff. I'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.