From ae9f22d89d63adbb24e04280302110e7e8956783 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Wed, 11 Dec 2019 19:00:39 -0600 Subject: [PATCH] sysstat: Patch for 2019-19725 Signed-off-by: Nathan Owens --- srcpkgs/sysstat/patches/CVE-2019-19725.patch | 24 ++++++++++++++++++++ srcpkgs/sysstat/template | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/sysstat/patches/CVE-2019-19725.patch diff --git a/srcpkgs/sysstat/patches/CVE-2019-19725.patch b/srcpkgs/sysstat/patches/CVE-2019-19725.patch new file mode 100644 index 00000000000..74d8977f2a6 --- /dev/null +++ b/srcpkgs/sysstat/patches/CVE-2019-19725.patch @@ -0,0 +1,24 @@ +From a5c8abd4a481ee6e27a3acf00e6d9b0f023e20ed Mon Sep 17 00:00:00 2001 +From: Sebastien GODARD +Date: Mon, 9 Dec 2019 17:54:07 +0100 +Subject: [PATCH] Fix #242: Double free in check_file_actlst() + +Avoid freeing buffer() twice. + +Signed-off-by: Sebastien GODARD +--- + sa_common.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sa_common.c b/sa_common.c +index cf52aefe..856a3715 100644 +--- sa_common.c ++++ sa_common.c +@@ -2153,6 +2153,7 @@ void check_file_actlst(int *ifd, char *dfile, struct activity *act[], uint64_t f + } + + free(buffer); ++ buffer = NULL; + + /* Check that at least one activity selected by the user is available in file */ + for (i = 0; i < NR_ACT; i++) { diff --git a/srcpkgs/sysstat/template b/srcpkgs/sysstat/template index f76b242b30b..b11ea6f4119 100644 --- a/srcpkgs/sysstat/template +++ b/srcpkgs/sysstat/template @@ -1,7 +1,7 @@ # Template file for 'sysstat' pkgname=sysstat version=12.2.0 -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-copy-only --disable-file-attr --with-systemdsystemunitdir= --enable-install-cron"