Skip to contentSkip to conversation

qemu: Add fix for CVE-2022-1050

PATCH New Richard Purdie 1 participant 2 messages Apr 12, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 qemu: Add fix for CVE-2022-1050

Add a fix queued upstream for the issue in this CVE:

"""
Guest driver might execute HW commands when shared buffers are not yet allocated.
This might happen on purpose (malicious guest) or because some other guest/host address mapping.
We need to protect againts such case.
"""

---
 meta/recipes-devtools/qemu/qemu.inc          |  1 +
 meta/recipes-devtools/qemu/qemu/pvrdma.patch | 45 ++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 meta/recipes-devtools/qemu/qemu/pvrdma.patch
meta/recipes-devtools/qemu/qemu.inc +1 -0
index 9f2fa4322e9..4e94c4b2bf4 100644
@@ -32,6 +32,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
            file://0001-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch \
            file://0001-vhost-vsock-detach-the-virqueue-element-in-case-of-e.patch \
            file://0002-virtio-net-fix-map-leaking-on-error-during-receive.patch \
+           file://pvrdma.patch \
            "
 UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
 
meta/recipes-devtools/qemu/qemu/pvrdma.patch new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.32.0
#1 lore raw

PATCH 2/2 tiff: Add marker for CVE-2022-1056 being fixed

As far as I can tell, the patches being applied also fix CVE-2022-1056 so mark as such.

---
 ...02-tiffcrop-fix-issue-380-and-382-heap-buffer-overflow-.patch | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-multimedia/libtiff/tiff/0002-tiffcrop-fix-issue-380-and-382-heap-buffer-overflow-.patch +1 -0
index d31e9650d1b..812ffb232d9 100644
@@ -1,4 +1,5 @@
 CVE: CVE-2022-0891
+CVE: CVE-2022-1056
 Upstream-Status: Backport
 Signed-off-by: Ross Burton <[email protected]>
 
Signature · 1 line
2.32.0