mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
libsoup-2.4: Fix CVE-2025-32909
Upstream-Status: Backport from https://gitlab.gnome.org/GNOME/libsoup/-/comm it/ba4c3a6f988beff59e45801ab36067293d24ce92 (From OE-Core rev: 90359036300731b6c26b646afbf3d66127b72fa2) Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
adc945c074
commit
e4df627b22
@@ -0,0 +1,36 @@
|
|||||||
|
From ba4c3a6f988beff59e45801ab36067293d24ce92 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Patrick Griffis <pgriffis@igalia.com>
|
||||||
|
Date: Wed, 8 Jan 2025 16:30:17 -0600
|
||||||
|
Subject: [PATCH] content-sniffer: Handle sniffing resource shorter than 4
|
||||||
|
bytes
|
||||||
|
|
||||||
|
Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/ba4c3a6f988beff59e45801ab36067293d24ce92]
|
||||||
|
CVE: CVE-2025-32909
|
||||||
|
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
|
||||||
|
---
|
||||||
|
libsoup/soup-content-sniffer.c | 7 ++++++-
|
||||||
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
|
||||||
|
index 967ec61..a1f23c2 100644
|
||||||
|
--- a/libsoup/soup-content-sniffer.c
|
||||||
|
+++ b/libsoup/soup-content-sniffer.c
|
||||||
|
@@ -227,9 +227,14 @@ sniff_mp4 (SoupContentSniffer *sniffer, SoupBuffer *buffer)
|
||||||
|
{
|
||||||
|
const char *resource = (const char *)buffer->data;
|
||||||
|
guint resource_length = MIN (512, buffer->length);
|
||||||
|
- guint32 box_size = *((guint32*)resource);
|
||||||
|
+ guint32 box_size;
|
||||||
|
guint i;
|
||||||
|
|
||||||
|
+ if (resource_length < sizeof (guint32))
|
||||||
|
+ return FALSE;
|
||||||
|
+
|
||||||
|
+ box_size = *((guint32*)resource);
|
||||||
|
+
|
||||||
|
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||||
|
box_size = ((box_size >> 24) |
|
||||||
|
((box_size << 8) & 0x00FF0000) |
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
@@ -21,6 +21,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \
|
|||||||
file://CVE-2024-52532-3.patch \
|
file://CVE-2024-52532-3.patch \
|
||||||
file://CVE-2025-32906-1.patch \
|
file://CVE-2025-32906-1.patch \
|
||||||
file://CVE-2025-32906-2.patch \
|
file://CVE-2025-32906-2.patch \
|
||||||
|
file://CVE-2025-32909.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13"
|
SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user