Bug 2544505 - CVE-2026-56208 aom: libaom: heap buffer overflow in AV1 encoder first-pass stats buffer via LAP mode [fedora-all]
Summary: CVE-2026-56208 aom: libaom: heap buffer overflow in AV1 encoder first-pass st...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: aom
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Multimedia SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["8203d352-fdb8-4cfb-9f6c-9...
Depends On:
Blocks: CVE-2026-56208
TreeView+ depends on / blocked
 
Reported: 2026-10-01 10:17 UTC by Tomas Hoger
Modified: 2026-10-31 18:45 UTC (History)
5 users (show)

Fixed In Version: aom-3.15.2-1.fc44 aom-3.15.2-1.fc43 aom-3.15.2-1.fc45
Clone Of:
Environment:
Last Closed: 2026-10-19 01:03:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
backported upstream fix (5.34 KB, patch)
2026-10-16 19:48 UTC, Artem Dinaburg
no flags Details | Diff

Description Tomas Hoger 2026-10-01 10:17:20 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A heap buffer overflow (out-of-bounds write followed by out-of-bounds read) was found in libaom, the reference AV1 codec implementation by the Alliance for Open Media. The vulnerability exists in the AV1 encoder when an application sets g_lag_in_frames = 1.

The wrap-around guard for the first-pass stats ring buffer in update_firstpass_stats() (av1/encoder/firstpass.c) only fires when cpi->oxcf.pass == AOM_RC_FIRST_PASS, but Look-Ahead Processing (LAP) mode (enabled when g_lag_in_frames >= 1) runs as AOM_RC_ONE_PASS. As a result, the stats_in_end pointer is never wrapped and every frame after the second writes a 232-byte FIRSTPASS_STATS structure past the allocated 2-entry buffer, corrupting adjacent heap objects and their aom_memalign metadata.

Impact: Heap out-of-bounds write of 232-byte FIRSTPASS_STATS entries (29 fields of attacker-influenced floating-point/integer data) into the adjacent heap on every encoder frame after the 2nd, out-of-bounds read in find_next_scenecut(), and process crash via corrupted free() metadata in aom_codec_destroy(). Reachable from any application that exposes encoder configuration to untrusted input (e.g. transcoding services, browsers using libaom for WebRTC encode).

Affected: libaom v2.0.0 (first release shipping LAP support, commits 5517b28e1e and 4be6511843, Dec 2019) through v3.13.3
Fixed in: v3.14.0 by commit 243f8ae84b ("Handle buffer pointer in LAP mode to avoid overflow", BUG=aomedia:504317456, 2026-04-20)
Upstream report: https://issues.chromium.org/issues/504317456 (restricted)

Reporter: The FuzzAnything Team
PSIRT Ticket: PSIRTSUPT-17176

Comment 1 Artem Dinaburg 2026-10-16 19:47:50 UTC
Hello,

I'd like to offer a backport of the CVE-2026-56208 fix for the stable releases. Fedora 43, 44
and 45 all ship aom 3.13.3, which is affected. The Rawhide update to 3.14.1 in PR 10 already
includes the fix: https://src.fedoraproject.org/rpms/aom/pull-request/10

The bug is a heap buffer overflow in the AV1 encoder. When look-ahead (LAP) processing is
used, for example with a small lag_in_frames, the first-pass statistics buffer can be
allocated smaller than the code later uses, and the encoder writes past its end. Applications
that encode video with libaom can be crashed, and heap corruption is possible.

The attached patch backports upstream commit 243f8ae84bfb ("Handle buffer pointer in LAP mode
to avoid overflow"). The encoder changes are unchanged from upstream: a minimum size for the
statistics buffer, compaction of the buffer in LAP mode, and an off-by-one fix in the frame
count. The upstream regression test is included, adapted to use 3.13.3's existing
CreateGrayImage helper to build the same gray input image. (Fedora builds with tests
disabled, so the test hunk does not affect the package build.)

The patch applies cleanly, without fuzz, to the current f43 and f44 sources. F45 has the same
tarball and patches, but I have not checked it separately. I ran the adapted test against
encoder libraries built in September from the Fedora 44 source, with and without the fix,
and confirmed they match the source and patch here. Without the fix, the test aborted with
heap corruption. With the fix, it passed. I have not done a Mock or full RPM build.

AI assistance was used to prepare this patch and its validation. The resulting
changes and validation results were reviewed by a human.

Could you consider it for the f43/f44 (and f45, if appropriate) updates? If you'd rather
handle the stable releases differently, just let me know.

Thanks!

Comment 2 Artem Dinaburg 2026-10-16 19:48:24 UTC
Created attachment 2161372 [details]
backported upstream fix

Comment 3 Fabio Valentini 2026-10-16 20:26:37 UTC
I had planned to update aom to the latest version (v3.15.2) across all branches, but didn't have time to do that yet since one of the downstream patches doesn't apply cleanly on top of the 3.15.x releases.

Comment 4 Fedora Update System 2026-10-16 23:37:11 UTC
FEDORA-2026-61e3db09f9 (aom-3.15.2-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-61e3db09f9

Comment 5 Fedora Update System 2026-10-16 23:37:16 UTC
FEDORA-2026-fd075f5751 (aom-3.15.2-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-fd075f5751

Comment 6 Fedora Update System 2026-10-16 23:37:19 UTC
FEDORA-2026-0f5471b465 (aom-3.15.2-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-0f5471b465

Comment 7 Fedora Update System 2026-10-17 01:57:25 UTC
FEDORA-2026-0f5471b465 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-0f5471b465`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-0f5471b465

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2026-10-17 02:27:28 UTC
FEDORA-2026-61e3db09f9 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-61e3db09f9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-61e3db09f9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2026-10-17 02:49:28 UTC
FEDORA-2026-fd075f5751 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-fd075f5751`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-fd075f5751

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2026-10-19 01:03:51 UTC
FEDORA-2026-61e3db09f9 (aom-3.15.2-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2026-10-21 01:36:18 UTC
FEDORA-2026-fd075f5751 (aom-3.15.2-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2026-10-31 18:45:23 UTC
FEDORA-2026-0f5471b465 (aom-3.15.2-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.