diff options
Diffstat (limited to 'meta/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-1.patch')
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-1.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-1.patch b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-1.patch new file mode 100644 index 0000000000..9de0310c8d --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-1.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From 8331e681c85c3b1893d8d5193783f631bfc07acb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Changqing Li <changqing.li@windriver.com> | ||
| 3 | Date: Fri, 16 May 2025 13:42:08 +0800 | ||
| 4 | Subject: [PATCH] tests: Add test for passing invalid UTF-8 to | ||
| 5 | soup_header_parse_semi_param_list() | ||
| 6 | |||
| 7 | CVE: CVE-2024-52531 | ||
| 8 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/407/diffs?commit_id=825fda3425546847b42ad5270544e9388ff349fe] | ||
| 9 | |||
| 10 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 11 | --- | ||
| 12 | tests/header-parsing-test.c | 11 +++++++++++ | ||
| 13 | 1 file changed, 11 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/tests/header-parsing-test.c b/tests/header-parsing-test.c | ||
| 16 | index b811115..cfcc003 100644 | ||
| 17 | --- a/tests/header-parsing-test.c | ||
| 18 | +++ b/tests/header-parsing-test.c | ||
| 19 | @@ -836,6 +836,17 @@ static struct ParamListTest { | ||
| 20 | { "filename", "t\xC3\xA9st.txt" }, | ||
| 21 | }, | ||
| 22 | }, | ||
| 23 | + | ||
| 24 | +/* This tests invalid UTF-8 data which *should* never be passed here but it was designed to be robust against it. */ | ||
| 25 | + { TRUE, | ||
| 26 | + "invalid*=\x69\x27\x27\x93\x93\x93\x93\xff\x61\x61\x61\x61\x61\x61\x61\x62\x63\x64\x65\x0a; filename*=iso-8859-1''\x69\x27\x27\x93\x93\x93\x93\xff\x61\x61\x61\x61\x61\x61\x61\x62\x63\x64\x65\x0a; foo", | ||
| 27 | + { | ||
| 28 | + { "filename", "i''\302\223\302\223\302\223\302\223\303\277aaaaaaabcde" }, | ||
| 29 | + { "invalid", "\302\223\302\223\302\223\302\223\303\277aaaaaaabcde" }, | ||
| 30 | + { "foo", NULL }, | ||
| 31 | + }, | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | }; | ||
| 35 | static const int num_paramlisttests = G_N_ELEMENTS (paramlisttests); | ||
| 36 | |||
| 37 | -- | ||
| 38 | 2.34.1 | ||
| 39 | |||
