diff options
author | Vijay Anusuri <vanusuri@mvista.com> | 2025-05-13 16:21:25 +0530 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-05-16 08:58:06 -0700 |
commit | cc7f7f1c296ce831ffa07fcf62e8cd0062f9098a (patch) | |
tree | 147d76db9fabc8ff7bf0b248248ee49794f7b8e8 | |
parent | dc621121b1f76079f406cb84aab157980b56eea6 (diff) | |
download | poky-cc7f7f1c296ce831ffa07fcf62e8cd0062f9098a.tar.gz |
libsoup: Fix CVE-2025-32909
Upstream-Status: Backport from https://gitlab.gnome.org/GNOME/libsoup/-/comm
it/ba4c3a6f988beff59e45801ab36067293d24ce92
(From OE-Core rev: 491373828c1c66030fb41687f9a42b9e4deb010b)
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-32909.patch | 36 | ||||
-rw-r--r-- | meta/recipes-support/libsoup/libsoup_3.0.7.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup/CVE-2025-32909.patch b/meta/recipes-support/libsoup/libsoup/CVE-2025-32909.patch new file mode 100644 index 0000000000..8982da58f1 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup/CVE-2025-32909.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From ba4c3a6f988beff59e45801ab36067293d24ce92 Mon Sep 17 00:00:00 2001 | ||
2 | From: Patrick Griffis <pgriffis@igalia.com> | ||
3 | Date: Wed, 8 Jan 2025 16:30:17 -0600 | ||
4 | Subject: [PATCH] content-sniffer: Handle sniffing resource shorter than 4 | ||
5 | bytes | ||
6 | |||
7 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/ba4c3a6f988beff59e45801ab36067293d24ce92] | ||
8 | CVE: CVE-2025-32909 | ||
9 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
10 | --- | ||
11 | libsoup/content-sniffer/soup-content-sniffer.c | 7 ++++++- | ||
12 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/libsoup/content-sniffer/soup-content-sniffer.c b/libsoup/content-sniffer/soup-content-sniffer.c | ||
15 | index 5a181ff1..aeee2e25 100644 | ||
16 | --- a/libsoup/content-sniffer/soup-content-sniffer.c | ||
17 | +++ b/libsoup/content-sniffer/soup-content-sniffer.c | ||
18 | @@ -243,9 +243,14 @@ sniff_mp4 (SoupContentSniffer *sniffer, GBytes *buffer) | ||
19 | gsize resource_length; | ||
20 | const char *resource = g_bytes_get_data (buffer, &resource_length); | ||
21 | resource_length = MIN (512, resource_length); | ||
22 | - guint32 box_size = *((guint32*)resource); | ||
23 | + guint32 box_size; | ||
24 | guint i; | ||
25 | |||
26 | + if (resource_length < sizeof (guint32)) | ||
27 | + return FALSE; | ||
28 | + | ||
29 | + box_size = *((guint32*)resource); | ||
30 | + | ||
31 | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ | ||
32 | box_size = ((box_size >> 24) | | ||
33 | ((box_size << 8) & 0x00FF0000) | | ||
34 | -- | ||
35 | GitLab | ||
36 | |||
diff --git a/meta/recipes-support/libsoup/libsoup_3.0.7.bb b/meta/recipes-support/libsoup/libsoup_3.0.7.bb index a5b6c2f039..4fa8fce1c4 100644 --- a/meta/recipes-support/libsoup/libsoup_3.0.7.bb +++ b/meta/recipes-support/libsoup/libsoup_3.0.7.bb | |||
@@ -21,6 +21,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
21 | file://CVE-2024-52531-3.patch \ | 21 | file://CVE-2024-52531-3.patch \ |
22 | file://CVE-2025-32906-1.patch \ | 22 | file://CVE-2025-32906-1.patch \ |
23 | file://CVE-2025-32906-2.patch \ | 23 | file://CVE-2025-32906-2.patch \ |
24 | file://CVE-2025-32909.patch \ | ||
24 | " | 25 | " |
25 | SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8" | 26 | SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8" |
26 | 27 | ||