diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-08 05:02:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-08 05:02:29 +0000 |
commit | 10ce8b7ddaee462b3d8aae3028df2937610712ee (patch) | |
tree | 838c2bf4cd11a54546ad2432bd3d42fffa4a6d55 /debian/patches/CVE-2024-28085.patch | |
parent | Adding debian version 2.33.1-0.1. (diff) | |
download | util-linux-10ce8b7ddaee462b3d8aae3028df2937610712ee.tar.xz util-linux-10ce8b7ddaee462b3d8aae3028df2937610712ee.zip |
Adding debian version 2.33.1-0.1+deb10u1.debian/2.33.1-0.1+deb10u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/CVE-2024-28085.patch')
-rw-r--r-- | debian/patches/CVE-2024-28085.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/CVE-2024-28085.patch b/debian/patches/CVE-2024-28085.patch new file mode 100644 index 0000000..6e9704d --- /dev/null +++ b/debian/patches/CVE-2024-28085.patch @@ -0,0 +1,28 @@ +From: Karel Zak <kzak@redhat.com> +Date: Thu, 21 Mar 2024 11:16:20 +0100 +Subject: wall: fix escape sequence Injection + +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> +Origin: https://github.com/util-linux/util-linux/commit/404b0781f52f7c045ca811b2dceec526408ac253 +Bug-Debian: https://security-tracker.debian.org/tracker/CVE-2024-28085 +Bug-Debian: https://bugs.debian.org/1067849 +--- + 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 f375eca..90d5b71 100644 +--- a/term-utils/wall.c ++++ b/term-utils/wall.c +@@ -327,7 +327,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); + } |