Android security tags, read closely by Lightrion

CVE-2026-59007 AI-generated analysis

platform/external/tremolo, the Tremolo Vorbis decoder's codebook decoding (used by the software Vorbis decoders in frameworks/av, per index search)

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

Removes the hand-written arm32 assembly version of the Huffman codebook walk decode_packed_entry_number from Tremolo/dpen.s, so the C version in Tremolo/codebook.c is the only one on all architectures. This removes an early-exit bug in the asm walk that could cause an out-of-bounds read.

Root cause

When ONLY_C was not defined (arm32 builds, per the commit message), decode_packed_entry_number came from hand-written assembly in Tremolo/dpen.s instead of the C code in Tremolo/codebook.c. The commit message says the asm walk has an early-exit bug that can lead to an OOB read. Reading the removed code: in the meth0, meth2 and meth4 paths the loop counter r1 holds i-read. It reaches 0 in two cases: when a leaf is found on the last of 'read' bits, and when all 'read' bits are used up without reaching a leaf. The check after the loop is 'CMP r1,#0 / MVNGT r7,#0', which returns -1 only when i-read > 0, although the inline comment says the intent is '(i >= read)'. So when the walk runs out of bits, it seems it can return a non-leaf table value as the entry number instead of -1. The C function, by contrast, has a final 'oggpack_adv(b,read+1); return(-1);' path. This exact failing path is inferred from the removed asm. The commit message says only 'early exit huffman walk bug'.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings