Skip to content

bug: AppImage: libsrt is outdated (public advisories), and the next build drops it from 1.5.4 to 1.5.2 #1082

Closed

Description

@rdoupe

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

  1. 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.
  2. obs-studio: build-aux/appimage/manylinux/deps.lock.json pins ffmpeg 8.1.2 r3.
  3. check-appdir.sh fails the build unless the AppDir holds exactly one libsrt*.so*, it is at least 1.5.7, and no bundled ELF file needs another libsrt soname. test-appimage.sh also 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.

Activity

  1. rdoupe commented on Oct 16, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue.

    The fix has two parts, plus a check so the AppImage cannot ship more than one libsrt again:

    1. RED: check-appdir.sh requires exactly one bundled libsrt*.so*, version 1.5.7 or later, and no bundled ELF file may need a second libsrt soname. test-appimage.sh requires 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.
    2. obs-studio-libs: recipes/linux/ffmpeg.sh builds 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.
    3. GREEN: deps.lock.json pins ffmpeg 8.1.2 r3.
    4. Build the AppImage the way CI does, and run the release-check SRT set against it and against master's build: caller, listener, encryption, reconnect, Media Source srt://, Custom FFmpeg output, the long options run, and interop. Also check with /proc maps and LD_DEBUG that only one libsrt is loaded.
  2. added
    claimed
    on Oct 16, 2026
  3. added a commit that references this issue on Oct 16, 2026
  4. rdoupe commented on Oct 18, 2026

    @rdoupe
    CollaboratorAuthor

    Reopening: #1083 merged before its r3 FFmpeg 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 once r3 is up.

  5. reopened this on Oct 18, 2026
  6. zackees commented on Oct 18, 2026

    @zackees
    Member

    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.

  7. zackees commented on Oct 18, 2026

    @zackees
    Member

    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.

  8. rdoupe commented on Oct 18, 2026

    @rdoupe
    CollaboratorAuthor

    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.

  9. rdoupe commented on Oct 18, 2026

    @rdoupe
    CollaboratorAuthor

    @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

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions