diff options
| author | Vijay Anusuri <vanusuri@mvista.com> | 2025-06-13 11:14:53 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-06-20 08:06:29 -0700 |
| commit | cecdcf3428ce035a07edf5c26573bac085b3cdc1 (patch) | |
| tree | fb6c72416ed45af86a8cf32db2f9bbc5a6ebb7ff | |
| parent | dd4d1b28e31b53096b54cfec46c6cd4dcce8c353 (diff) | |
| download | poky-cecdcf3428ce035a07edf5c26573bac085b3cdc1.tar.gz | |
libsoup: Fix CVE-2025-32053
Upstream-Status: Backport
[https://gitlab.gnome.org/GNOME/libsoup/-/commit/eaed42ca8d40cd9ab63764e3d63641180505f40a]
(From OE-Core rev: de40e2f32af4ec930c80858f8d77a5a1b0967069)
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup/CVE-2025-32053.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup_3.0.7.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup/CVE-2025-32053.patch b/meta/recipes-support/libsoup/libsoup/CVE-2025-32053.patch new file mode 100644 index 0000000000..7860526620 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup/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/content-sniffer/soup-content-sniffer.c | ||
| 17 | +++ b/libsoup/content-sniffer/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_3.0.7.bb b/meta/recipes-support/libsoup/libsoup_3.0.7.bb index 26fe52937b..a90f683cb8 100644 --- a/meta/recipes-support/libsoup/libsoup_3.0.7.bb +++ b/meta/recipes-support/libsoup/libsoup_3.0.7.bb | |||
| @@ -34,6 +34,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
| 34 | file://CVE-2025-2784-2.patch \ | 34 | file://CVE-2025-2784-2.patch \ |
| 35 | file://CVE-2025-32050.patch \ | 35 | file://CVE-2025-32050.patch \ |
| 36 | file://CVE-2025-32052.patch \ | 36 | file://CVE-2025-32052.patch \ |
| 37 | file://CVE-2025-32053.patch \ | ||
| 37 | " | 38 | " |
| 38 | SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8" | 39 | SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8" |
| 39 | 40 | ||
