Skip to contentSkip to conversation

Ask for suggestions for CVE-2019-12928

DISCUSSION Daniel P. Berrangé 3 participants 3 messages Jan 11, 2021 – Jan 20, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · 江芳杰

Hi:
Sorry to bother you~
I have read the discussions about CVE--2019-12928 ( https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg01153.html).
But, for the scenario of PC users, which is no requirement of network access to QMP, there are some mitigating proposes.
1. Modify the compilation options to disable QMP.
2. Modify command line parsing function to discard the QMP parameters with network configurations.
3. PC manager or other manage software make sure only the trusted user can use QMP.
4. Other ideas?

No code changes are required at all. The described scenario was simply a user mis-configuration.

In rare case there can be valid reasons to use QMP on a public IP address, but anyone doing so must ensure their usage is secure.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
In reply to a message not in the archive
Quoted 8 lines · * 江芳杰 ([email protected]) wrote:

Hi:
Sorry to bother you~
I have read the discussions about CVE--2019-12928 ( https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg01153.html).
But, for the scenario of PC users, which is no requirement of network access to QMP, there are some mitigating proposes.
1. Modify the compilation options to disable QMP.
2. Modify command line parsing function to discard the QMP parameters with network configurations.
3. PC manager or other manage software make sure only the trusted user can use QMP.
4. Other ideas?

QMP is a useful part of QEMU - so we don't want to do 1 - we need it to let things control QEMU; including configuring complex setups.

The important part is (3) - anything that runs a qemu must make sure it wires the QMP up securely; e.g. using unix sockets with appropriate permissions or something like that.

As long as they do that, then we're fine.

Dave

Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
#3 lore raw
Quoted 10 lines · Dr. David Alan Gilbert
Quoted 8 lines · * 江芳杰 ([email protected]) wrote:

Hi:
Sorry to bother you~
I have read the discussions about CVE--2019-12928 ( https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg01153.html).
But, for the scenario of PC users, which is no requirement of network access to QMP, there are some mitigating proposes.
1. Modify the compilation options to disable QMP.
2. Modify command line parsing function to discard the QMP parameters with network configurations.
3. PC manager or other manage software make sure only the trusted user can use QMP.
4. Other ideas?

Quoted 2 lines

QMP is a useful part of QEMU - so we don't want to do 1 - we need it to let things control QEMU; including configuring complex setups.

Compiling out QMP gains you exactly nothing unless you also compile out HMP. And then you're left without a way to monitor a running QEMU. Similarly useful (but not nearly as secure) as not running QEMU at all ;)

Quoted 5 lines

The important part is (3) - anything that runs a qemu must make sure it wires the QMP up securely; e.g. using unix sockets with appropriate permissions or something like that.

As long as they do that, then we're fine.

Yup.

Regarding 4.: making insecure misconfiguration harder might be worth exploring.