From 9173ac495b70d91abace8e732906b844522cdb3b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 28 Mar 2024 19:13:18 +0000 Subject: gentoo auto-resync : 28:03:2024 - 19:13:18 --- .../files/util-linux-2.39.3-CVE-2024-28085.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sys-apps/util-linux/files/util-linux-2.39.3-CVE-2024-28085.patch (limited to 'sys-apps/util-linux/files') diff --git a/sys-apps/util-linux/files/util-linux-2.39.3-CVE-2024-28085.patch b/sys-apps/util-linux/files/util-linux-2.39.3-CVE-2024-28085.patch new file mode 100644 index 000000000000..99092c05aa7e --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.39.3-CVE-2024-28085.patch @@ -0,0 +1,25 @@ +https://bugs.gentoo.org/927980 +https://people.rit.edu/sjf5462/6831711781/wall_2_27_2024.txt +https://github.com/util-linux/util-linux/commit/404b0781f52f7c045ca811b2dceec526408ac253 + +From 404b0781f52f7c045ca811b2dceec526408ac253 Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Thu, 21 Mar 2024 11:16:20 +0100 +Subject: [PATCH] wall: fix escape sequence Injection [CVE-2024-28085] + +Let's use for all cases the same output function. + +Reported-by: Skyler Ferrante +Signed-off-by: Karel Zak +--- a/term-utils/wall.c ++++ b/term-utils/wall.c +@@ -368,7 +368,7 @@ static char *makemsg(char *fname, char **mvec, int mvecsz, + int i; + + for (i = 0; i < mvecsz; i++) { +- fputs(mvec[i], fs); ++ fputs_careful(mvec[i], fs, '^', true, TERM_WIDTH); + if (i < mvecsz - 1) + fputc(' ', fs); + } + -- cgit v1.2.3