Repository navigation
Description
The AppImage's libsrt is older than 1.5.7, and every older release has public upstream security advisories. The SRT output and Media Source srt:// inputs both use it. On master the libsrt version goes down rather than up: the glibc 2.28 base (#927, #1047) takes FFmpeg 8.1.2 r2 from obs-rust/obs-studio-libs, and that artifact builds libsrt 1.5.2. The released 0.1.0-beta.20261014 shipped Ubuntu's 1.5.4.
The released beta also has a second libsrt problem. It bundles two copies, and OBS aborts on quit after any SRT use. Master no longer has two copies, so that crash is gone in the next build, but nothing checks that it stays that way.
1. Outdated libsrt: public advisories
These are public upstream advisories, published by Haivision on the SRT repository:
| Advisory | CVE | Severity | Affects | Fixed in |
|---|---|---|---|---|
| GHSA-6xg9-784j-24rm: KMREQ/KMRSP stack-based buffer overflow | CVE-2026-55869 | critical | <= 1.5.5 | 1.5.6 |
| GHSA-4mc6-qmpp-g7gw: encryption state machine downgrade | CVE-2026-55868 | critical | <= 1.5.5 | 1.5.6 |
| GHSA-m96h-3rc9-xx6h: heap buffer overflow | none assigned | critical | <= 1.5.6 | 1.5.7 |
| Build | libsrt in the AppImage |
|---|---|
| 0.1.0-beta.20261014 (Ubuntu 26.04 base) | 1.5.4, twice: libsrt.so.1.5 (OpenSSL) and libsrt-gnutls.so.1.5 |
| master (2dae736, glibc 2.28 base) | 1.5.2, once: libsrt.so.1.5 (mbedTLS), from the obs-studio-libs ffmpeg 8.1.2 r2 artifact (recipes/linux/ffmpeg.sh, srt()) |
Both builds are affected by all three advisories. The version is read from the bundled library (its SRT_VERSION string) and from what OBS maps at runtime.
2. Two libsrt copies in the released beta: SIGABRT on quit
0.1.0-beta.20261014's OBS process maps both libsrt.so.1.5 (which obs-ffmpeg.so needs) and libsrt-gnutls.so.1.5 (which Ubuntu's libavformat needs). With LD_DEBUG=bindings, all 22 srt_* imports of obs-ffmpeg.so bind to the GnuTLS copy, and 64 symbols of the OpenSSL copy (C++ globals, vtables) are interposed by it. Both copies still run their destructors for the same globals, such as srt::PacketFilter::filters.
After any SRT use, OBS aborts on quit. Examples are a stream over SRT (caller or listener), a Media Source with an srt:// URL, or two SRT sessions in one run. This happens after "Number of memory leaks: 0", with glibc's "corrupted size vs. prev_size while consolidating" in __cxa_finalize of libsrt-gnutls. It is deterministic.
Swapping in one copy (a symlink) stops the crash, and so does 1.5.7, which moved those globals into a function-local singleton. A user sees a crash report on every quit after streaming over SRT.
Master bundles one copy, which both obs-ffmpeg.so and libavformat use. The abort does not happen there (see the table below), but nothing in the build or the AppImage tests would notice a second copy coming back.
Reproduced
All runs were headless, with a private Xvfb, D-Bus and HOME, and the network namespace limited to loopback. The checks were the release-check SRT set: caller, listener, AES-128/192/256 with wrong and missing passphrases, reconnect, a Media Source srt:// in both modes, Custom FFmpeg output to srt://, a 70 s run with all URL options, and interop between two builds.
| 0.1.0-beta.20261014 | master AppImage (2dae736, built locally as CI does) | |
|---|---|---|
| libsrt mapped into OBS | 2 (1.5.4 OpenSSL + 1.5.4 GnuTLS) | 1 (1.5.2 mbedTLS) |
| SRT checks 51-54, 56, 58, 59 | media, stats and stop all pass, then SIGABRT on quit | pass, clean quit |
One OBS using both the SRT output and a Media Source srt:// input at once |
not run (the checks above already abort) | obs-ffmpeg.so (22 symbols) and libavformat.so.62 (15 symbols) both bind to $APPDIR/usr/lib/libsrt.so.1.5, one load in LD_DEBUG=files, clean SIGTERM quit |
Proposed fix
- obs-rust/obs-studio-libs,
recipes/linux/ffmpeg.sh:srt()takes the v1.5.7 tag archive, pinned by sha256 (017cd1e437ef2073a4dd10ddf7b55e86bc3d6ebac0393d13bd22f6a57055d32b, the same tree as tag commit 899348d8). The build options stay the same: mbedTLS from the same prefix, shared only. The rebuild is published as ffmpeg 8.1.2 r3. FFmpeg, mbedTLS and the codecs keep their versions. - obs-studio:
build-aux/appimage/manylinux/deps.lock.jsonpins ffmpeg 8.1.2 r3. check-appdir.shfails the build unless the AppDir holds exactly onelibsrt*.so*, it is at least 1.5.7, and no bundled ELF file needs another libsrt soname.test-appimage.shalso requires exactly one libsrt, the AppImage's, in OBS's/proc/<pid>/maps(first-start and saved-profile).
Today, step 3 fails on master with "the bundled usr/lib/libsrt.so.1.5 is libsrt 1.5.2; at least 1.5.7 is required".
Windows and macOS use obs-deps' libsrt 1.5.2 and are not covered here.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
rdoupe commentedon Oct 16, 2026
Claiming: this issue.
The fix has two parts, plus a check so the AppImage cannot ship more than one libsrt again:
check-appdir.shrequires exactly one bundledlibsrt*.so*, version 1.5.7 or later, and no bundled ELF file may need a second libsrt soname.test-appimage.shrequires exactly one libsrt, the AppImage's, in OBS's/proc/<pid>/maps. On master the AppImage build stops at assembly because the bundled libsrt is 1.5.2.recipes/linux/ffmpeg.shbuilds libsrt from the v1.5.7 tag, pinned by sha256, with the same options as before (mbedTLS, shared). It is published as ffmpeg 8.1.2 r3. This part needs a maintainer to publish the artifact; the recipe change is ready.deps.lock.jsonpins ffmpeg 8.1.2 r3.srt://, Custom FFmpeg output, the long options run, and interop. Also check with/procmaps andLD_DEBUGthat only one libsrt is loaded.ffmpeg 8.1.2 r3: libsrt 1.5.7 (#4)
test: check-appdir requires exactly one libsrt, at least 1.5.7 (RED, …
appimage: Take ffmpeg 8.1.2 r3 from obs-studio-libs, with libsrt 1.5.7 (
test: check-appdir requires exactly one libsrt, at least 1.5.7 (RED, …
appimage: Take ffmpeg 8.1.2 r3 from obs-studio-libs, with libsrt 1.5.7 (
appimage: Take ffmpeg 8.1.2 r3 from obs-studio-libs, with libsrt 1.5.7 (
rdoupe commentedon Oct 18, 2026
Reopening: #1083 merged before its
r3FFmpeg asset was published on obs-studio-libs, so master's AppImage build fails at the fetch. #1396 reverts it. I'll re-land it with the published sha256 oncer3is up.zackees commentedon Oct 18, 2026
For the maintainer-requested next OBS-Studio-Rust beta, I am preparing the missing FFmpeg 8.1.2 r3 artifact from the already merged obs-studio-libs recipe a5c51cf6b in an isolated checkout. This is the publication step requested in the existing claim, not a takeover of the SRT fix or its source work. I will verify the glibc floor and one libsrt 1.5.7, publish the new r3 filename without replacing existing bytes, then pin the published checksum. The revert in #1396 is not part of this work; the existing single-libsrt tests stay enabled.
zackees commentedon Oct 18, 2026
The missing r3 archive is now published from the already merged obs-studio-libs recipe a5c51cf6b, and its catalog entry is live at assets commit 2a5a451. Existing archives were preserved.
Published SHA256:
806ecb55614a3bbac78ba141731d0c78603d3c44376db27069408cb9b73dc369(GitHub's digest matches the local archive).Consumer update: #1399. The existing fetch tool downloaded, checksum-verified and extracted the public archive successfully. ELF glibc floor 2.28 passes; downloaded libsrt reports 1.5.7 / SONAME libsrt.so.1.5, also requested by libavformat. Producer tests 9 passed; AppImage CI tests 43 passed. Single-libsrt checks remain enabled. The OBS release's full runtime package gate is still required before publication.
This completes the artifact-publication dependency; it does not claim the broader SRT runtime work in #1082. The missing-publication reason for revert #1396 is resolved by #1399.
rdoupe commentedon Oct 18, 2026
Fixed on master by #1083 (one libsrt, at least 1.5.7, checked in the AppDir) and #1399 (the published r3 archive's sha256). It ships in the next OBS-Studio-Rust beta.
rdoupe commentedon Oct 18, 2026
@rationalsa you reported in obsproject/obs-studio#12361 that with libsrt 1.5.4 (OBS 31.1), one SRT Media Source closing, or failing to connect, reset every other SRT connection. This is addressed in obs-rust, in OBS-Studio-Rust 0.1.0-beta.20261018: https://github.com/obs-rust/obs-studio/releases/tag/obs-studio-rust-v0.1.0-beta.20261018
srt://) that failed to connect calledsrt_cleanup()once too often, and libsrt then closed every SRT socket in the process, including your Media Sources (obs-ffmpeg: Release the SRT output's libsrt reference once #1102).obs-rust is an AI-assisted fork of OBS, based on current OBS master, with extra bug fixes like this one. If you get a chance to try it with your two SRT Media Sources, a reply here on whether one closing or failing still resets the other would really help.