diff options
Diffstat (limited to 'meta/recipes-support/libsoup/libsoup/CVE-2025-4476.patch')
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup/CVE-2025-4476.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup/CVE-2025-4476.patch b/meta/recipes-support/libsoup/libsoup/CVE-2025-4476.patch new file mode 100644 index 0000000000..d0b1f12709 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup/CVE-2025-4476.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From 71d33e37139fee6216ad2bf4e926f987076a6cff Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Catanzaro <mcatanzaro@redhat.com> | ||
| 3 | Date: Thu, 8 May 2025 09:27:01 -0500 | ||
| 4 | Subject: [PATCH] auth-digest: fix crash in | ||
| 5 | soup_auth_digest_get_protection_space() | ||
| 6 | |||
| 7 | We need to validate the Domain parameter in the WWW-Authenticate header. | ||
| 8 | |||
| 9 | Unfortunately this crash only occurs when listening on default ports 80 | ||
| 10 | and 443, so there's no good way to test for this. The test would require | ||
| 11 | running as root. | ||
| 12 | |||
| 13 | Fixes #440 | ||
| 14 | |||
| 15 | CVE: CVE-2025-4476 | ||
| 16 | Upstream-Status: Backport | ||
| 17 | [https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/457/diffs?commit_id=e64c221f9c7d09b48b610c5626b3b8c400f0907c] | ||
| 18 | |||
| 19 | Signed-off-by: Changqing Li <changqing.li@windriver.c | ||
| 20 | --- | ||
| 21 | libsoup/auth/soup-auth-digest.c | 2 +- | ||
| 22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/libsoup/auth/soup-auth-digest.c b/libsoup/auth/soup-auth-digest.c | ||
| 25 | index d8bb291..292f204 100644 | ||
| 26 | --- a/libsoup/auth/soup-auth-digest.c | ||
| 27 | +++ b/libsoup/auth/soup-auth-digest.c | ||
| 28 | @@ -220,7 +220,7 @@ soup_auth_digest_get_protection_space (SoupAuth *auth, GUri *source_uri) | ||
| 29 | if (uri && | ||
| 30 | g_strcmp0 (g_uri_get_scheme (uri), g_uri_get_scheme (source_uri)) == 0 && | ||
| 31 | g_uri_get_port (uri) == g_uri_get_port (source_uri) && | ||
| 32 | - !strcmp (g_uri_get_host (uri), g_uri_get_host (source_uri))) | ||
| 33 | + !g_strcmp0 (g_uri_get_host (uri), g_uri_get_host (source_uri))) | ||
| 34 | dir = g_strdup (g_uri_get_path (uri)); | ||
| 35 | else | ||
| 36 | dir = NULL; | ||
| 37 | -- | ||
| 38 | 2.34.1 | ||
| 39 | |||
