Android security tags, read closely by Lightrion

CVE-2026-58953 AI-generated analysis

platform/external/libopenapv, APV decoder (src/oapv.c, src/oapv_vlc.c, src/oapv_bs.c)

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 (4 corrections). Verify against the commit before relying on it.

Adds bounds validation of the APV tile header (tile_header_size, and each component's tile_data_size checked against the enclosing tile_size), tightens the check that a tile ends inside the input bitstream, and caps the Exp-Golomb prefix length in the VLC readers so that a malformed tile is rejected.

Root cause

In src/oapv_vlc.c:oapvd_vlc_tile_header, the per-component th->tile_data_size[c] values read from the bitstream were only checked to be > 0 and never compared with the tile's byte size. th->tile_header_size was not validated at all. In src/oapv.c:dec_thread_tile, the tile bound check used (data_size - 1) in unsigned arithmetic, which wraps when data_size is 0. dec_tile then parsed the tile header without passing any tile size bound. In addition, dec_vlc_read_kparam0 and dec_vlc_read put no limit on the number of leading zero bits (k), and oapvd_vlc_ac_coef did not reject negative run values. The bulletin classes this as type ID, severity High.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings