From 444208798aefb1787b8ef0851f5c3d49113bd014 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 27 Aug 2022 22:55:36 +0100 Subject: [PATCH] qemu: add patch for CVE-2020-14394 --- pkgs/applications/virtualization/qemu/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index e83005517c4f2..32dc872a5c4b1 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -142,6 +142,11 @@ stdenv.mkDerivation rec { url = "https://gitlab.com/qemu-project/qemu/-/commit/4367a20cc442c56b05611b4224de9a61908f9eac.patch"; sha256 = "sha256-hpNu4Zjw1dIbT6Vt57cayHE1Elaltp0a/bsKlDY0Qr8="; }) + (fetchpatch { + name = "CVE-2020-14394.patch"; + url = "https://gitlab.com/qemu-project/qemu/-/commit/effaf5a240e03020f4ae953e10b764622c3e87cc.patch"; + sha256 = "sha256-NobsIxRC+xlyj8d/oD4mqgXAGX37pfww/PQQuKhrTzc="; + }) ] ++ lib.optional nixosTestRunner ./force-uid0-on-9p.patch;