diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 16:48:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 16:48:19 +0000 |
commit | bef1ac770bd81aa14ac369b3563afdce62d85eec (patch) | |
tree | 65706c2e5016c4dc1a445a0b380faa5d6329ad56 /debian/patches/upstream/wall-fix-escape-sequence-Injection-CVE-2024-28085.patch | |
parent | Releasing progress-linux version 2.38.1-5+b1progress7u1. (diff) | |
download | util-linux-bef1ac770bd81aa14ac369b3563afdce62d85eec.tar.xz util-linux-bef1ac770bd81aa14ac369b3563afdce62d85eec.zip |
Merging debian version 2.38.1-5+deb12u1.
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..a0a173b --- /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 85c006a..0212c03 100644 +--- a/term-utils/wall.c ++++ b/term-utils/wall.c +@@ -328,7 +328,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); + } |