diff options
Diffstat (limited to 'meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1761.patch')
| -rw-r--r-- | meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1761.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1761.patch b/meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1761.patch new file mode 100644 index 0000000000..573e3e1dd0 --- /dev/null +++ b/meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1761.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 07757b7feacfc660c6c463ff2b773c13bc42d2c9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Changqing Li <changqing.li@windriver.com> | ||
| 3 | Date: Thu, 19 Mar 2026 17:21:32 +0800 | ||
| 4 | Subject: [PATCH 3/4] multipart: check length of bytes read | ||
| 5 | soup_filter_input_stream_read_until() | ||
| 6 | |||
| 7 | We do make sure the read length is smaller than the buffer length when | ||
| 8 | the boundary is not found, but we should do the same when the boundary | ||
| 9 | is found. | ||
| 10 | |||
| 11 | Spotted in #YWH-PGM9867-149 | ||
| 12 | Closes #493 | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/cfa9d90d1a5c274233554a264c56551c13d6a6f0] | ||
| 15 | CVE: CVE-2026-1761 | ||
| 16 | |||
| 17 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 18 | --- | ||
| 19 | libsoup/soup-filter-input-stream.c | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/libsoup/soup-filter-input-stream.c b/libsoup/soup-filter-input-stream.c | ||
| 23 | index 2c30bf9..c34510b 100644 | ||
| 24 | --- a/libsoup/soup-filter-input-stream.c | ||
| 25 | +++ b/libsoup/soup-filter-input-stream.c | ||
| 26 | @@ -272,6 +272,6 @@ soup_filter_input_stream_read_until (SoupFilterInputStream *fstream, | ||
| 27 | if (eof && !*got_boundary) | ||
| 28 | read_length = MIN (fstream->priv->buf->len, length); | ||
| 29 | else | ||
| 30 | - read_length = p - buf; | ||
| 31 | + read_length = MIN ((gsize)(p - buf), length); | ||
| 32 | return read_from_buf (fstream, buffer, read_length); | ||
| 33 | } | ||
| 34 | -- | ||
| 35 | 2.34.1 | ||
| 36 | |||
