diff options
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch new file mode 100644 index 0000000000..139e8936a0 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From eaed42ca8d40cd9ab63764e3d63641180505f40a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ar Jun <pkillarjun@protonmail.com> | ||
| 3 | Date: Mon, 18 Nov 2024 14:59:51 -0600 | ||
| 4 | Subject: [PATCH] Fix heap buffer overflow in | ||
| 5 | soup-content-sniffer.c:sniff_feed_or_html() | ||
| 6 | |||
| 7 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/eaed42ca8d40cd9ab63764e3d63641180505f40a] | ||
| 8 | CVE: CVE-2025-32053 | ||
| 9 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
| 10 | --- | ||
| 11 | libsoup/content-sniffer/soup-content-sniffer.c | 4 ++-- | ||
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/libsoup/content-sniffer/soup-content-sniffer.c b/libsoup/content-sniffer/soup-content-sniffer.c | ||
| 15 | index b62e4888..5a181ff1 100644 | ||
| 16 | --- a/libsoup/soup-content-sniffer.c | ||
| 17 | +++ b/libsoup/soup-content-sniffer.c | ||
| 18 | @@ -641,7 +641,7 @@ skip_insignificant_space (const char *resource, int *pos, int resource_length) | ||
| 19 | (resource[*pos] == '\x0D')) { | ||
| 20 | *pos = *pos + 1; | ||
| 21 | |||
| 22 | - if (*pos > resource_length) | ||
| 23 | + if (*pos >= resource_length) | ||
| 24 | return TRUE; | ||
| 25 | } | ||
| 26 | |||
| 27 | @@ -704,7 +704,7 @@ sniff_feed_or_html (SoupContentSniffer *sniffer, GBytes *buffer) | ||
| 28 | do { | ||
| 29 | pos++; | ||
| 30 | |||
| 31 | - if (pos > resource_length) | ||
| 32 | + if ((pos + 1) > resource_length) | ||
| 33 | goto text_html; | ||
| 34 | } while (resource[pos] != '>'); | ||
| 35 | |||
| 36 | -- | ||
| 37 | GitLab | ||
| 38 | |||
diff --git a/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb b/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb index f9358773e4..61ebebeacd 100644 --- a/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb +++ b/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb | |||
| @@ -36,6 +36,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
| 36 | file://CVE-2025-2784-2.patch \ | 36 | file://CVE-2025-2784-2.patch \ |
| 37 | file://CVE-2025-32050.patch \ | 37 | file://CVE-2025-32050.patch \ |
| 38 | file://CVE-2025-32052.patch \ | 38 | file://CVE-2025-32052.patch \ |
| 39 | file://CVE-2025-32053.patch \ | ||
| 39 | " | 40 | " |
| 40 | SRC_URI[sha256sum] = "f0a427656e5fe19e1df71c107e88dfa1b2e673c25c547b7823b6018b40d01159" | 41 | SRC_URI[sha256sum] = "f0a427656e5fe19e1df71c107e88dfa1b2e673c25c547b7823b6018b40d01159" |
| 41 | 42 | ||
