diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 00:09:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 00:09:37 +0000 |
commit | 0f6ac83991fc9581d7880d536effe6e8ab837e9d (patch) | |
tree | 5d46f381e461fecb0d8003b825799112a7c6997b /debian/patches/upstream/wall-fix-escape-sequence-Injection-CVE-2024-28085.patch | |
parent | Adding debian version 2.36.1-8+deb11u1. (diff) | |
download | util-linux-0f6ac83991fc9581d7880d536effe6e8ab837e9d.tar.xz util-linux-0f6ac83991fc9581d7880d536effe6e8ab837e9d.zip |
Adding debian version 2.36.1-8+deb11u2.debian/2.36.1-8+deb11u2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/patches/upstream/wall-fix-escape-sequence-Injection-CVE-2024-28085.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/upstream/wall-fix-escape-sequence-Injection-CVE-2024-28085.patch b/debian/patches/upstream/wall-fix-escape-sequence-Injection-CVE-2024-28085.patch new file mode 100644 index 0000000..c1160fe --- /dev/null +++ b/debian/patches/upstream/wall-fix-escape-sequence-Injection-CVE-2024-28085.patch @@ -0,0 +1,25 @@ +From: Karel Zak <kzak@redhat.com> +Date: Thu, 21 Mar 2024 11:16:20 +0100 +Subject: wall: fix escape sequence Injection [CVE-2024-28085] + +Let's use for all cases the same output function. + +Reported-by: Skyler Ferrante <sjf5462@rit.edu> +Signed-off-by: Karel Zak <kzak@redhat.com> +--- + term-utils/wall.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/term-utils/wall.c b/term-utils/wall.c +index 16dfb1f..a497d91 100644 +--- a/term-utils/wall.c ++++ b/term-utils/wall.c +@@ -329,7 +329,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); + } |