Android security tags, read closely by Lightrion

CVE-2026-58933 AI-generated analysis

platform/frameworks/av, media/codec2 software APV decoder (C2SoftApvDec)

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (3 corrections). Verify against the commit before relying on it.

Makes C2SoftApvDec track mWidth/mHeight only from the primary frame of a multi-frame APV access unit. In outputBuffer(), before fetching and filling the output graphic block, it checks mWidth/mHeight against the actual dimensions of the primary-frame image buffer and overwrites them when they differ.

Root cause

In C2SoftApvDec::process(), the loop over all frames of an access unit (aui.frm_info[i], i < mOutFrames.num_frms) updated mWidth/mHeight unconditionally whenever finfo->w/h differed. After the loop, mWidth/mHeight therefore held the dimensions of the last frame in the AU, not those of the primary frame. Each frame's imgb is created with its own finfo->w/h. Per the commit message, the output is copied from the primary frame's buffer, which can be smaller than the frame described by mWidth/mHeight. outputBuffer() fetches a graphic block sized from mWidth/mHeight, and this mismatch leads to a heap out-of-bounds read. The MAX_SUPPORTED check also ran on mWidth/mHeight rather than on each frame's own dimensions.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings