From e790ba33ff63fadf04e132ab6fe131dd21a176e7 Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Tue, 17 Nov 2020 20:29:17 +0100 Subject: [PATCH] ceph: Fix CVE-2020-25660 (cherry picked from commit d835ad4f1a7cdcf794d58ccd658a538b848671d0) --- pkgs/tools/filesystems/ceph/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/filesystems/ceph/default.nix b/pkgs/tools/filesystems/ceph/default.nix index 7ada070aba68..57f9fd949dda 100644 --- a/pkgs/tools/filesystems/ceph/default.nix +++ b/pkgs/tools/filesystems/ceph/default.nix @@ -1,4 +1,5 @@ { stdenv, runCommand, fetchurl +, fetchpatch , ensureNewerSourcesHook , cmake, pkgconfig , which, git @@ -134,6 +135,11 @@ in rec { patches = [ ./0000-fix-SPDK-build-env.patch ./ceph-glibc-2-32-sigdescr_np.patch + (fetchpatch { + name = "CVE-2020-25660"; + url = "https://github.com/ceph/ceph/compare/2c93eff00150f0cc5f106a559557a58d3d7b6f1f...6c14c2fb5650426285428dfe6ca1597e5ea1d07d.patch"; + sha256 = "032hl15q34gq7y6bnljmklpsbd3bpkzmg7r3w0x0ly786iz7zwhm"; + }) ]; nativeBuildInputs = [