From 79b29fbde8358be601db25ef3106aa989148af2d Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sat, 1 May 2021 09:35:55 +0200 Subject: [PATCH] cifs-utils: fix CVE-2021-20208 https://lists.samba.org/archive/samba-technical/2021-April/136467.html --- pkgs/os-specific/linux/cifs-utils/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/cifs-utils/default.nix b/pkgs/os-specific/linux/cifs-utils/default.nix index d48e541abfe7..00ffb081bf7c 100644 --- a/pkgs/os-specific/linux/cifs-utils/default.nix +++ b/pkgs/os-specific/linux/cifs-utils/default.nix @@ -20,12 +20,17 @@ stdenv.mkDerivation rec { url = "https://attachments.samba.org/attachment.cgi?id=16148"; sha256 = "1xw3d11wb1l8a89jhdp6hhy987nq0gafxfhx5jdhcc5nazahc7s4"; }) + (fetchpatch { + name = "CVE-2021-20208.patch"; + url = "https://attachments.samba.org/attachment.cgi?id=16477"; + sha256 = "1nic669fa65r845pxfb6lmfs78g7aqbaz86r0axm332inb60hj10"; + }) ]; makeFlags = [ "root_sbindir=$(out)/sbin" ]; meta = with stdenv.lib; { - homepage = "http://www.samba.org/linux-cifs/cifs-utils/"; + homepage = "https://wiki.samba.org/index.php/LinuxCIFS_utils"; description = "Tools for managing Linux CIFS client filesystems"; platforms = platforms.linux; license = licenses.lgpl3;