git.iko.soy/typeable/nixpkgs
on master help sign in
ipsec-tools: apply debians patch to fix CVE-2015-4047
commitc46889ea4227418fb31a0562626ffcab20d90890 authorPascal Wittmann <mail@pascal-wittmann.de> dateMon 8 Jun 2015, 13:55 (11 years ago) parentcc96e47
2 files changed+18−1
pkgs/os-specific/linux/ipsec-tools/CVE-2015-4047.patch+16 pkgs/os-specific/linux/ipsec-tools/default.nix+2−1
pkgs/os-specific/linux/ipsec-tools/CVE-2015-4047.patchnew file+16
@@ -0,0 +1,16 @@
1+Index: pkg-ipsec-tools/src/racoon/gssapi.c
2+===================================================================
3+--- pkg-ipsec-tools.orig/src/racoon/gssapi.c
4++++ pkg-ipsec-tools/src/racoon/gssapi.c
5+@@ -192,6 +192,11 @@ gssapi_init(struct ph1handle *iph1)
6+ gss_name_t princ, canon_princ;
7+ OM_uint32 maj_stat, min_stat;
8+
9++ if (iph1->rmconf == NULL) {
10++ plog(LLV_ERROR, LOCATION, NULL, "no remote config\n");
11++ return -1;
12++ }
13++
14+ gps = racoon_calloc(1, sizeof (struct gssapi_ph1_state));
15+ if (gps == NULL) {
16+ plog(LLV_ERROR, LOCATION, NULL, "racoon_calloc failed\n");
pkgs/os-specific/linux/ipsec-tools/default.nix+2−1
@@ -16,7 +16,8 @@ stdenv.mkDerivation rec {
1616
1717 buildInputs = [ readline openssl flex kerberos pam ];
1818
19− patches = [ ./dont-create-localstatedir-during-install.patch ];
19+ patches = [ ./dont-create-localstatedir-during-install.patch
20+ ./CVE-2015-4047.patch ];
2021
2122 # fix build with newer gcc versions
2223 preConfigure = ''substituteInPlace configure --replace "-Werror" "" '';