Public bug reported:
## Summary
WebKitNetworkProcess crashes with SIGSEGV every time an embedded WebKitGTK view
loads a particular web UI (OctoPrint, served over HTTPS through a reverse
proxy).
The crashing thread has ~58,000 stack frames, almost all the same libsoup return
address, entered from soup_multipart_input_stream_next_part(). It looks like
unbounded recursion while reading a multipart response body, most likely the
page's MJPEG webcam stream (multipart/x-mixed-replace) — not yet confirmed.
After the crash every pending load in the web process fails with:
ERROR: WebKit encountered an internal error. This is a WebKit bug.
Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(640) :
void WebKit::WebLoaderStrategy::internallyFailedLoadTimerFired()
## Versions
- Ubuntu 26.04.1 LTS, kernel 7.0.0-44-generic (upgraded from 24.04 three days
earlier)
- libsoup-3.0-0 3.6.6-1ubuntu0.3
- libwebkit2gtk-4.1-0 2.52.6-0ubuntu0.26.04.2
- libglib2.0-0t64 2.88.0-1ubuntu0.1
- glib-networking 2.80.1-1build2
- libgnutls30t64 3.8.12-2ubuntu1.1
- Host application: OrcaSlicer 2.5.3 AppImage (wxWidgets WebView using the
system WebKitGTK)
## Steps to reproduce
1. Open a WebKitGTK 4.1 view on an OctoPrint instance whose page includes the
MJPEG webcam stream.
2. WebKitNetworkProcess segfaults within about 15 seconds; the page never
finishes loading.
Reproduced 2 out of 2 attempts on the day of the report. The same page loaded
without a network-process crash the previous day with identical package
versions, so it appears to depend on the response content (suspected: whether
the multipart stream is being served).
## Crashing thread (no libsoup dbgsym; offsets are into
libsoup-3.0.so.0, build-id ed6ecf7a691f82fad18c45a48bd1003dc40488b7)
#0 libffi.so.8 + 0x5c67
#1 ffi_call (libffi.so.8 + 0x87ae)
#2 g_cclosure_marshal_generic_va (libgobject-2.0.so.0 + 0x1d366)
#3 libgobject-2.0.so.0 + 0x36cc9
#4 g_signal_emit_valist
#5 g_signal_emit
#6 libsoup-3.0.so.0 + 0x38980
#7 libsoup-3.0.so.0 + 0x389c3
... (same frame, libsoup-3.0.so.0 + 0x389c3, repeated ~58,130 times)
#58139 libsoup-3.0.so.0 + 0x389c3
#58140 g_input_stream_read (libgio-2.0.so.0)
#58141 g_input_stream_read
#58142 libsoup-3.0.so.0 (0x758e1c1bb890)
#58143 libsoup-3.0.so.0 (0x758e1c1b1ce7)
#58144 g_input_stream_read
#58145 libsoup-3.0.so.0 (0x758e1c1bb890)
#58146 g_input_stream_read
#58147 libsoup-3.0.so.0 (0x758e1c1bebb1)
#58148 libsoup-3.0.so.0 (0x758e1c1c5548)
#58149 soup_multipart_input_stream_next_part (libsoup-3.0.so.0)
#58150 libsoup-3.0.so.0 (0x758e1c1cd15b)
#58151 libgio-2.0.so.0 (GTask thread)
#58152 libglib-2.0.so.0 (thread pool)
#58154 start_thread
#58155 __clone3
The recursing function (around libsoup-3.0.so.0 + 0x387a0..0x389c8) calls itself
at +0x389be, and calls g_signal_emit at +0x3897b and g_propagate_error at
+0x3898d.
## Possibly related
- WebKit bug 303539 (crash via soup_multipart_input_stream_read_headers /
next_part)
- CVE-2026-1761 (multipart parsing in soup_filter_input_stream_read_until)
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: libsoup-3.0-0 3.6.6-1ubuntu0.3
ProcVersionSignature: Ubuntu 7.0.0-44.44-generic 7.0.14
Uname: Linux 7.0.0-44-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Sun Nov 29 12:39:25 2026
InstallationDate: Installed on 2024-12-07 (722 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64
(20240827.1)
SourcePackage: libsoup3
UpgradeStatus: Upgraded to resolute on 2026-11-26 (3 days ago)
** Affects: libsoup3 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178375
Title:
WebKitNetworkProcess SIGSEGV: unbounded recursion (stack overflow) in
libsoup under soup_multipart_input_stream_next_part
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libsoup3/+bug/2178375/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs