Skip to content

ffmpeg 8.1.3 r5: Mbed TLS 3.6.7 - #6

Merged
zackees merged 1 commit into
obs-rust:mainfrom
rdoupe:build/linux-mbedtls-3.6.7
Oct 20, 2026
Merged

zackees merged 1 commit into
obs-rust:mainfrom
rdoupe:build/linux-mbedtls-3.6.7

Conversation

@rdoupe

@rdoupe rdoupe commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Refs obs-rust/obs-studio#1121

What and why

Updates Mbed TLS in the Linux ffmpeg artifact from 3.6.4 to 3.6.7 (recipes/linux/ffmpeg.sh, mbedtls()), packed as ffmpeg 8.1.3 r5. It builds on #5 (r4, merged); the r4 recipe on main is the tree this was validated on.

The OBS-Studio-Rust AppImage takes Mbed TLS from this artifact. The RTMPS output (librtmp in obs-outputs: certificate parsing and verification, the TLS handshake), libsrt (SRT encryption) and librist (RIST encryption) link it. 3.6.5 to 3.6.7 fix public advisories on the RTMPS client path, among them CVE-2026-49300 (X.509 CA-bit forgery through an invalid basicConstraints extension), CVE-2026-25834 (TLS 1.2 client accepted a disallowed ServerKeyExchange signature algorithm), CVE-2026-25832 (TLS 1.3 client accepted a HelloRetryRequest for an unadvertised group), CVE-2026-50581 (extended master secret errors ignored) and CVE-2026-25835 (RNG state shared across fork()).

  • Source. The official mbedtls-3.6.7.tar.bz2 release file, taken by the sha256 in the release's sha256sum file. Its tree is identical, file for file, to the mbedtls-3.6.7 tag (068ff080) with its framework submodule.
  • Options. Unchanged. libsrt and librist are rebuilt against it.
  • ABI. The sonames stay libmbedtls.so.21, libmbedx509.so.7 and libmbedcrypto.so.16. No exported symbol is removed or changes size (3.6.7 only adds 19), and the public structs keep their sizes. Every other library in the artifact differs from r4 only in its embedded build directory.

Tested

  • Build. Built in the pinned manylinux_2_28 image with this recipe; the glibc 2.28 floor check passes.
  • Product A/B. The AppImage was built the way CI builds it, once with r4 (A) and once with r5 (B). Every OBS binary and plugin is byte-identical between A and B; the only functional change is the three Mbed TLS libraries. Each build ran the full app with UI, headless, in a private network namespace with only loopback, against a local TLS server with per-run test certificates. 17 checks, same result on A and B:
    • RTMPS accepted with an RSA leaf, an ECDSA P-256 leaf, a leaf plus intermediate, and servers limited to TLS 1.2 or 1.3 (media verified, SNI correct);
    • RTMPS refused for a wrong hostname, an untrusted CA, a self-signed, an expired and a missing-intermediate certificate, with the same log line, alert and "invalid SSL certificate" dialog;
    • a 60 s RTMPS stream with no reconnects or skipped frames; the host's CA store parses identically (605 certificates);
    • RIST plain, AES-128 and AES-256; the SRT caller, listener (with passphrase) and stop/reconnect checks.
    • One pre-existing, intermittent crash when a second RIST stream starts in the same session happens at the same rate on A and B, in code that is byte-identical in both. It is not caused by this update.
  • Mbed TLS's own test suites pass on 3.6.7 with this build's configuration.

The obs-studio PR that pins r5 (and checks for Mbed TLS ≥ 3.6.7 in the AppDir) follows once the r5 asset is published.

🤖 Generated with Claude Code

The Linux ffmpeg artifact built Mbed TLS 3.6.4, which OBS-Studio-Rust's
AppImage bundles: the RTMPS output (obs-outputs' librtmp: certificate
parsing and verification, the TLS handshake), libsrt (SRT encryption)
and librist (RIST encryption) link it. 3.6.5 to 3.6.7 fix public
advisories, among them CVE-2026-49300 (X.509 CA-bit forgery through an
invalid basicConstraints extension), CVE-2026-25834 (TLS 1.2 client
accepted a disallowed ServerKeyExchange signature algorithm),
CVE-2026-25832 (TLS 1.3 client accepted a HelloRetryRequest for an
unadvertised group), CVE-2026-50581 (extended master secret errors
ignored) and CVE-2026-25835 (RNG state shared across fork()).

mbedtls() takes the official mbedtls-3.6.7.tar.bz2 release file by its
sha256 (the one in the release's sha256sum file). Its tree is identical,
file for file, to the mbedtls-3.6.7 tag (068ff080) checked out with its
framework submodule; the generated files are part of both. The build
options are unchanged, libsrt and librist are rebuilt against it, and
the sonames stay libmbedtls.so.21, libmbedx509.so.7 and
libmbedcrypto.so.16. Packed as ffmpeg 8.1.3 with --label r5, continuing
the revisions of this artifact.

Built in the pinned manylinux_2_28 image: no exported symbol is removed
or changes size (3.6.7 only adds 19), the public structs keep their
sizes, and every other library in the artifact differs from r4 only in
its embedded build directory.

Refs obs-rust/obs-studio#1121

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@zackees zackees left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: approve.

Checked:

  • Upstream release is real. mbedtls-3.6.7 is an official Mbed-TLS/mbedtls release (published 2026-07-07, 3.6 LTS). The annotated tag points at commit 068ff080b369adfac81509f9b57b2afabaf82dc5, matching the comment in the recipe.
  • Checksum. I downloaded mbedtls-3.6.7.tar.bz2 from the release. Its sha256 is a7e8bcbe…212d11f6, which matches both the recipe and upstream's mbedtls-3.6.7-sha256sum.txt. tar_src checks it with sha256sum -c before extracting, so the pin is enforced.
  • Tarball contents. The tarball ships the framework/ submodule and the pre-generated sources (library/psa_crypto_driver_wrappers.h, error.c), so -DGEN_FILES=OFF still works. build_info.h reports 3.6.7.
  • ABI. The CMake SOVERSIONs are unchanged: mbedcrypto 16, mbedx509 7, mbedtls 21. Consumers built against r4 keep loading.
  • Build flags. The cmake options are identical to r4. The only change is the source moving from a git commit pin to a checksummed release tarball, which is fine and consistent with vpx/theora/lame/srt in the same recipe. The diff touches nothing else.
  • Security value. The 3.6.7 release notes list 19 advisories. Several sit on OBS's RTMPS, SRT and RIST client paths: X.509 CA-bit forgery via basicConstraints, signature-algorithm restrictions not enforced on the chain, the TLS 1.3 HRR unadvertised group, the ignored EMS error (CVE-2026-50581), the RSA PKCS#1 v1.5 timing issue (CVE-2026-50587), and the ECDHE-PSK client overflow. This is worth shipping.

Notes, non-blocking:

  • The repo has no PR CI for the Linux recipes (only qt6.yml), so validation rests on the author's manylinux_2_28 build and A/B run described above. After merge, the r5 asset should be published with --label r5 beside r4, the same way r3 and r4 were.
  • The follow-up obs-studio PR that pins r5 should assert Mbed TLS >= 3.6.7 in the AppDir, as the description says, and extend test-appimage.sh per the packaging rule (obs-rust/obs-studio#426).

Not merging. That is left to the maintainer.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants