diff options
| author | Armin Kuster <akuster@mvista.com> | 2019-05-31 22:14:52 -0700 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-06-03 16:06:09 -0400 |
| commit | bbc38dc9d6d02e73c08df289bb22a292c2264e9b (patch) | |
| tree | fb51a1d20f0513819e2acc201f0d70a1d9ae0de2 | |
| parent | 9b568b6ae1bf1bebcb9552703ee40f9b880e07ed (diff) | |
| download | meta-virtualization-bbc38dc9d6d02e73c08df289bb22a292c2264e9b.tar.gz | |
libvirt: Security fix CVE-2019-3840
Source: https://libvirt.org
MR: 97512
Type: Security Fix
Disposition: Backport from https://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=9ed175fbc2deecfdaeabca7bc77c7e7ae33a3377
ChangeID: 6c662c67dd3cf6e0eba493b7b619db35f2e07d93
Description:
Fixes CVE-2019-3840
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-extended/libvirt/libvirt/CVE-2019-3840.patch | 39 | ||||
| -rw-r--r-- | recipes-extended/libvirt/libvirt_4.7.0.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/recipes-extended/libvirt/libvirt/CVE-2019-3840.patch b/recipes-extended/libvirt/libvirt/CVE-2019-3840.patch new file mode 100644 index 00000000..8cca8216 --- /dev/null +++ b/recipes-extended/libvirt/libvirt/CVE-2019-3840.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From 9ed175fbc2deecfdaeabca7bc77c7e7ae33a3377 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: John Ferlan <jferlan@redhat.com> | ||
| 3 | Date: Fri, 7 Sep 2018 16:01:27 -0400 | ||
| 4 | Subject: [PATCH] qemu: Remove duplicated qemuAgentCheckError | ||
| 5 | |||
| 6 | Commit 5b3492fadb moved qemuAgentCheckError calls into | ||
| 7 | qemuAgentCommand for various reasons; however, subsequent | ||
| 8 | commit 0977b8aa0 adding a new command made call again | ||
| 9 | So let's just remove the duplicitous call from | ||
| 10 | qemuAgentGetInterfaces. | ||
| 11 | |||
| 12 | Signed-off-by: John Ferlan <jferlan@redhat.com> | ||
| 13 | ACKed-by: Michal Privoznik <mprivozn@redhat.com> | ||
| 14 | |||
| 15 | Upstream-Status: Backport | ||
| 16 | CVE: CVE-2019-3840 | ||
| 17 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
| 18 | |||
| 19 | --- | ||
| 20 | src/qemu/qemu_agent.c | 5 ++--- | ||
| 21 | 1 file changed, 2 insertions(+), 3 deletions(-) | ||
| 22 | |||
| 23 | Index: libvirt-4.7.0/src/qemu/qemu_agent.c | ||
| 24 | =================================================================== | ||
| 25 | --- libvirt-4.7.0.orig/src/qemu/qemu_agent.c | ||
| 26 | +++ libvirt-4.7.0/src/qemu/qemu_agent.c | ||
| 27 | @@ -1987,10 +1987,9 @@ qemuAgentGetInterfaces(qemuAgentPtr mon, | ||
| 28 | if (!(cmd = qemuAgentMakeCommand("guest-network-get-interfaces", NULL))) | ||
| 29 | goto cleanup; | ||
| 30 | |||
| 31 | - if (qemuAgentCommand(mon, cmd, &reply, false, VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK) < 0 || | ||
| 32 | - qemuAgentCheckError(cmd, reply) < 0) { | ||
| 33 | + if (qemuAgentCommand(mon, cmd, &reply, false, | ||
| 34 | + VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK) < 0) | ||
| 35 | goto cleanup; | ||
| 36 | - } | ||
| 37 | |||
| 38 | if (!(ret_array = virJSONValueObjectGet(reply, "return"))) { | ||
| 39 | virReportError(VIR_ERR_INTERNAL_ERROR, "%s", | ||
diff --git a/recipes-extended/libvirt/libvirt_4.7.0.bb b/recipes-extended/libvirt/libvirt_4.7.0.bb index 51367985..270dc725 100644 --- a/recipes-extended/libvirt/libvirt_4.7.0.bb +++ b/recipes-extended/libvirt/libvirt_4.7.0.bb | |||
| @@ -36,6 +36,7 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \ | |||
| 36 | file://0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch \ | 36 | file://0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch \ |
| 37 | file://configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch \ | 37 | file://configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch \ |
| 38 | file://lxc_monitor-Avoid-AB-BA-lock-race.patch \ | 38 | file://lxc_monitor-Avoid-AB-BA-lock-race.patch \ |
| 39 | file://CVE-2019-3840.patch \ | ||
| 39 | " | 40 | " |
| 40 | 41 | ||
| 41 | SRC_URI[libvirt.md5sum] = "38da6c33250dcbc0a6d68de5c758262b" | 42 | SRC_URI[libvirt.md5sum] = "38da6c33250dcbc0a6d68de5c758262b" |
