util-linux: Fix for CVE-2024-28085
PATCH 1/1 util-linux: Fix for CVE-2024-28085
From: Vijay Anusuri <[email protected]>
Upstream-Status: Backport from
https://github.com/util-linux/util-linux/commit/8a7b8456d1dc0e7ca557d1ac31f638986704757f
&
https://github.com/util-linux/util-linux/commit/27ee6446503af7ec0c2647704ca47ac4de3852ef
&
https://github.com/util-linux/util-linux/commit/aa13246a1bf1be9e4f6eb331f4d4d2dbc875e22f
& https://github.com/util-linux/util-linux/commit/404b0781f52f7c045ca811b2dceec526408ac253
Signed-off-by Vijay Anusuri <[email protected]>
--- meta/recipes-core/util-linux/util-linux.inc | 4 + .../util-linux/CVE-2024-28085-pre1.patch | 200 ++++++++++++++++ .../util-linux/CVE-2024-28085-pre2.patch | 171 ++++++++++++++ .../util-linux/CVE-2024-28085-pre3.patch | 219 ++++++++++++++++++ .../util-linux/CVE-2024-28085.patch | 30 +++ 5 files changed, 624 insertions(+) create mode 100644 meta/recipes-core/util-linux/util-linux/CVE-2024-28085-pre1.patch create mode 100644 meta/recipes-core/util-linux/util-linux/CVE-2024-28085-pre2.patch create mode 100644 meta/recipes-core/util-linux/util-linux/CVE-2024-28085-pre3.patch create mode 100644 meta/recipes-core/util-linux/util-linux/CVE-2024-28085.patch
meta/recipes-core/util-linux/util-linux.inc +4 -0
@@ -35,6 +35,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin file://run-ptest \ file://display_testname_for_subtest.patch \ file://avoid_parallel_tests.patch \ + file://CVE-2024-28085-pre1.patch \ + file://CVE-2024-28085-pre2.patch \ + file://CVE-2024-28085-pre3.patch \ + file://CVE-2024-28085.patch \ " SRC_URI[sha256sum] = "634e6916ad913366c3536b6468e7844769549b99a7b2bf80314de78ab5655b83"
meta/recipes-core/util-linux/util-linux/CVE-2024-28085-pre1.patch new file +200 -0
200 lines not on this page · raw message
meta/recipes-core/util-linux/util-linux/CVE-2024-28085-pre2.patch new file +171 -0
171 lines not on this page · raw message
meta/recipes-core/util-linux/util-linux/CVE-2024-28085-pre3.patch new file +219 -0
219 lines not on this page · raw message
meta/recipes-core/util-linux/util-linux/CVE-2024-28085.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 404b0781f52f7c045ca811b2dceec526408ac253 Mon Sep 17 00:00:00 2001 +From: Karel Zak <[email protected]> +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 <[email protected]> +Signed-off-by: Karel Zak <[email protected]> + +Upstream-Status: Backport [https://github.com/util-linux/util-linux/commit/404b0781f52f7c045ca811b2dceec526408ac253] +CVE: CVE-2024-28085 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + 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 f894a32f86..588d3a9636 100644 +--- 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); + }
Signature · 1 line
2.25.1