Repository navigation
build/linux: ffmpeg r6 — libvpx 1.17.0 (CVE-2026-2447, alpha-WebM fixes) (#1134) - #20
Conversation
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
left a comment
There was a problem hiding this comment.
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) andv1.17.0.tar.gz→1020f184046187baa2985dbde38e0691f49c44088bca7a1842b0236c6081dc0a(the new one).recipes/linux/common.sh:35tar_src()feeds that argument straight tosha256sum -c, so the edit is pinned, not just pinned-looking. - soname move confirmed from the tarball's own
libs.mk:SO_VERSION_MAJOR := 12at v1.17.0 vs:= 9at v1.14.1 — matching the PR's.so.9 → .so.12claim, and libavcodec is rebuilt in the same prefix, so no consumer is left on the old soname. libvpxis pinned in exactly one place in the repo (grep -rn libvpxover the tree): this recipe. Nothing else drifts.- Precedent matches: the r5 bump (
432f4c4, #6) was likewise a recipe-only single-file change, and thevpx()block keeps the house style of a reason comment above the pin.
Published artifact
- Release
ffmpeg-8.1.3assetffmpeg-8.1.3-linux-x86_64-glibc2.28-release-r6.tar.zst, 60136512 bytes, GitHub's server-computed digestsha256:f11267e3503a0bf114de5d40b7d9e4421ca1af6a23ea7bddc1b1c156392459b2— identical to the bytes the PR records, and r5's archive is untouched beside it. - Assets-branch catalog read back:
ffmpeg/manifest.jsonlists 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" shapetests/test_catalog.py::test_a_rebuild_sits_beside_the_original_and_pins_pick_onepins.
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.
|
The artifact is built, published and catalogued, so this is complete on its own:
Consumer: obs-rust/obs-studio#2680 pins this by |
…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]>
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.shpinned 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:libvpx-vp9.alpha_mode=1Media Source / Stinger force the libvpx decoder): VP9 reference index of -1 used before it is checked; VP8 resolution change before a keyframe, per-framecorruptedflag, partition-0 size, dangling pointer at teardown.Change
vpx():v1.14.1.tar.gz→v1.17.0.tar.gz, sha2561020f18…1dc0a, with the reason in a comment above it (the convention the mbedtls/srt/ffmpeg blocks already follow).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(GitHub's computed asset digest is the same sha256), beside r5's immutable bytes;ffmpeg/manifest.jsonversion8.1.3now has two platform entries,optimization=release(r5) andoptimization=release, flavor=r6; channels untouched (latest-stable8.1.3,stable8.1.2). Assets branch commit9a88208.Evidence (r5 published bytes vs r6, both downloaded from the release)
Archive contents,
lib/andinclude/, from the built prefix:libvpx.so.9,.so.9.0,.so.9.0.1libvpx.so.12,.so.12.1,.so.12.1.0libavcodec.so.62NEEDEDlibvpx.so.9libvpx.so.12NEEDED libvpx.so.9anywhere in the prefix.soinlib/checkedv1.17.0bare string in the libvpx_codec_version_str)File lists differ only in the libvpx set (
commover the two sortedtar -tfoutputs): 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 whenffmpegis rebuilt, solibaom,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 thelibavcodecrebuilt in the same archive.Reproduced RED/GREEN on the recipe itself:
sha256sumof v1.14.1 is9017472…c7977(the old pin, so the hashing method is unchanged) and of v1.17.0 is1020f18…1dc0a(the new pin).Gates
uv run --group dev pytest— 23 passeduv run --group dev ruff check .andruff format --check .— cleanThe obs-studio side (pin
flavor: r6inbuild-aux/appimage/manylinux/deps.lock.json, makecheck-appdirrequire 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.