Skip to content

build/linux: ffmpeg r6 — libvpx 1.17.0 (CVE-2026-2447, alpha-WebM fixes) (#1134) - #20

Merged
zackees merged 1 commit into
mainfrom
build/linux-ffmpeg-r6-libvpx-1.17.0
Oct 27, 2026
Merged

zackees merged 1 commit into
mainfrom
build/linux-ffmpeg-r6-libvpx-1.17.0

Conversation

@zackees

@zackees zackees commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Builds the Linux ffmpeg artifact with libvpx 1.17.0 instead of 1.14.1 — part 1 of obs-rust/obs-studio#1134.

Why

recipes/linux/ffmpeg.sh pinned libvpx 1.14.1, which is older than the 1.16.0 the released AppImage had before obs-rust/obs-studio#927/#1047 moved FFmpeg to this artifact — a regression — and 1.17.0 carries public fixes on the two paths OBS reaches libvpx:

  • CVE-2026-2447: heap overflow in the VP9 encoder's superframe index, reachable from Custom FFmpeg Output with libvpx-vp9.
  • Alpha-WebM decode (alpha_mode=1 Media Source / Stinger force the libvpx decoder): VP9 reference index of -1 used before it is checked; VP8 resolution change before a keyframe, per-frame corrupted flag, partition-0 size, dangling pointer at teardown.

Change

  • vpx(): v1.14.1.tar.gz → v1.17.0.tar.gz, sha256 1020f18…1dc0a, with the reason in a comment above it (the convention the mbedtls/srt/ffmpeg blocks already follow).
  • Nothing else in the recipe moves: libavcodec is libvpx's only consumer here, and it is configured and rebuilt against this prefix in the same recipe, so the soname move libvpx.so.9 → .so.12 (libs.mk: SO_VERSION_MAJOR := 12) needs no extra work.

Built and published

Built with the repo's own producer (bosn run --task linux), then packed as a rebuild of a published version:

ffmpeg-8.1.3-linux-x86_64-glibc2.28-release-r6.tar.zst
60136512 bytes  sha256 f11267e3503a0bf114de5d40b7d9e4421ca1af6a23ea7bddc1b1c156392459b2
  • uploaded to release ffmpeg-8.1.3 (GitHub's computed asset digest is the same sha256), beside r5's immutable bytes;
  • recorded in the assets catalog: ffmpeg/manifest.json version 8.1.3 now has two platform entries, optimization=release (r5) and optimization=release, flavor=r6; channels untouched (latest-stable 8.1.3, stable 8.1.2). Assets branch commit 9a88208.

Evidence (r5 published bytes vs r6, both downloaded from the release)

Archive contents, lib/ and include/, from the built prefix:

check r5 r6
libvpx shared objects libvpx.so.9, .so.9.0, .so.9.0.1 libvpx.so.12, .so.12.1, .so.12.1.0
libavcodec.so.62 NEEDED libvpx.so.9 libvpx.so.12
NEEDED libvpx.so.9 anywhere in the prefix yes (libavcodec) none — every .so in lib/ checked
v1.17.0 bare string in the lib absent present once (vpx_codec_version_str)
archive entry count 616 616

File lists differ only in the libvpx set (comm over the two sorted tar -tf outputs): the three .so.9* paths are gone, the three .so.12* paths are new, everything else is identical by name. Byte comparison of the 616 entries shows the expected rebuild churn — this recipe compiles every codec in the prefix from source when ffmpeg is rebuilt, so libaom, libSvtAv1, libvpx, libavcodec, libavutil, … all differ in bytes while keeping their sonames and versions (libSvtAv1Enc.so.2.3.0, libaom.so.3.13.1, libavcodec.so.62.28.103, … are the same names in both). No ABI change outside libvpx, whose only consumer here is the libavcodec rebuilt in the same archive.

Reproduced RED/GREEN on the recipe itself: sha256sum of v1.14.1 is 9017472…c7977 (the old pin, so the hashing method is unchanged) and of v1.17.0 is 1020f18…1dc0a (the new pin).

Gates

  • uv run --group dev pytest — 23 passed
  • uv run --group dev ruff check . and ruff format --check . — clean

The obs-studio side (pin flavor: r6 in build-aux/appimage/manylinux/deps.lock.json, make check-appdir require exactly one libvpx ≥ 1.17.0) is a separate PR against obs-rust/obs-studio. obs-deps for Windows/macOS is untouched here — the issue's step 3, a different repo.

The ffmpeg artifact took libvpx 1.14.1 (obs-rust/obs-studio#1134): the
released AppImage had Ubuntu's 1.16.0, so it regressed, and 1.17.0 carries
public fixes on the two paths OBS reaches libvpx (alpha WebM decode via the
forced libvpx decoder, and the libvpx-vp8/vp9 encoders in Custom FFmpeg
Output).

The soname moves libvpx.so.9 -> .12. libavcodec is libvpx's only consumer
here and is configured and rebuilt against this prefix in the same recipe,
so nothing keeps a .so.9 reference.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Coordinator review — every claim re-checked

This repo has no PR CI, so I ran its gate locally on pr20 (337a514) in a fresh clone, and verified the published bytes independently.

Gate (local, per the obs-studio-libs convention)

uv run --group dev pytest         23 passed in 1.35s
uv run --group dev ruff check .   All checks passed!
uv run --group dev ruff format --check .   10 files already formatted

Recipe

  • Both pins re-hashed from upstream, not taken from the PR text:
    v1.14.1.tar.gz → 901747254d80a7937c933d03bd7c5d41e8e6c883e0665fadcb172542167c7977 (the old pin, so the method is unchanged) and v1.17.0.tar.gz → 1020f184046187baa2985dbde38e0691f49c44088bca7a1842b0236c6081dc0a (the new one). recipes/linux/common.sh:35 tar_src() feeds that argument straight to sha256sum -c, so the edit is pinned, not just pinned-looking.
  • soname move confirmed from the tarball's own libs.mk: SO_VERSION_MAJOR := 12 at v1.17.0 vs := 9 at v1.14.1 — matching the PR's .so.9 → .so.12 claim, and libavcodec is rebuilt in the same prefix, so no consumer is left on the old soname.
  • libvpx is pinned in exactly one place in the repo (grep -rn libvpx over the tree): this recipe. Nothing else drifts.
  • Precedent matches: the r5 bump (432f4c4, #6) was likewise a recipe-only single-file change, and the vpx() block keeps the house style of a reason comment above the pin.

Published artifact

  • Release ffmpeg-8.1.3 asset ffmpeg-8.1.3-linux-x86_64-glibc2.28-release-r6.tar.zst, 60136512 bytes, GitHub's server-computed digest sha256:f11267e3503a0bf114de5d40b7d9e4421ca1af6a23ea7bddc1b1c156392459b2 — identical to the bytes the PR records, and r5's archive is untouched beside it.
  • Assets-branch catalog read back: ffmpeg/manifest.json lists 8.1.3 twice — {optimization: release} (r5, 60116524, 845db95652f3…) and {optimization: release, flavor: r6} (60136512, f11267e3503a…) — and the channels are unchanged (latest-stable: 8.1.3, stable: 8.1.2). That is exactly the "rebuild sits beside the original, fetch picks one" shape tests/test_catalog.py::test_a_rebuild_sits_beside_the_original_and_pins_pick_one pins.

Scope / follow-ups (correctly separated)
The obs-studio side — pinning flavor: r6 in build-aux/appimage/manylinux/deps.lock.json and making check-appdir require a single libvpx ≥ 1.17.0 — is a different repo and is not in this PR; Windows/macOS obs-deps is step 3 of #1134, also elsewhere. Nothing here claims to fix the CVE end to end, only to stop shipping 1.14.1.

No defect found; no fixup needed. Merging (squash) — this repo runs no PR CI and has no merge queue, so the local gate above is the gate.

@zackees
zackees merged commit c9a6377 into main Oct 27, 2026
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

The artifact is built, published and catalogued, so this is complete on its own:

  • ffmpeg-8.1.3-linux-x86_64-glibc2.28-release-r6.tar.zst, 60136512 bytes, sha256 f11267e3503a0bf114de5d40b7d9e4421ca1af6a23ea7bddc1b1c156392459b2, uploaded to release ffmpeg-8.1.3 (GitHub's computed digest matches).
  • Assets branch 9a88208: ffmpeg/manifest.json version 8.1.3 has both optimization=release (r5, unchanged bytes) and optimization=release, flavor=r6; root index digest updated; channels unchanged.
  • r5 vs r6 over the two downloaded archives: 616 entries each, file lists identical except libvpx.so.9* -> libvpx.so.12*; libavcodec.so.62 NEEDED libvpx.so.12; no libvpx.so.9 dependency left; v1.17.0 present once in the lib.
  • Gates: uv run --group dev pytest 23 passed; ruff check and ruff format --check clean.

Consumer: obs-rust/obs-studio#2680 pins this by flavor: r6 + the sha256 (verified end to end with this repo's own resolver against the published catalog). Leaving the merge to the maintainer.

MCPVOT pushed a commit to MCPVOT/obs-studio that referenced this pull request Oct 30, 2026
…dir floor (obs-rust#1134) (obs-rust#2680)

* test(appimage): check-appdir pins one libvpx, at least 1.17.0

RED on master: check_appdir.py has no libvpx check at all, so each of these
fails - no libvpx found (0 != 1), two copies accepted, a 1.14.1 bundle
accepted, and a second soname referenced by another library accepted.

* appimage: libvpx 1.17.0 from the ffmpeg r6 artifact, with a check-appdir floor (obs-rust#1134)

The AppImage's FFmpeg artifact pinned libvpx 1.14.1, older than the 1.16.0
the released AppImage had before obs-rust#927/obs-rust#1047 moved it here, and 1.17.0 has
public fixes on both paths OBS reaches libvpx (alpha-WebM decode via the
forced decoder, libvpx-vp8/vp9 in Custom FFmpeg Output). The r6 rebuild of
ffmpeg 8.1.3 carries it (obs-rust/obs-studio-libs#20); the lock pins that
artifact by flavor r6 and sha256.

check-appdir now fails the build when the AppImage bundles no libvpx, two
of them, one older than 1.17.0, or when another bundled library asks for a
different libvpx soname than the one bundled (the .so.9 -> .so.12 move).

---------

Co-authored-by: zackees <[email protected]>
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.

1 participant