Android security tags, read closely by Lightrion

CVE-2026-58949 AI-generated analysis

platform/frameworks/av, libmediaplayerservice (StagefrightMetadataRetriever)

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.

Replaces an unbounded sprintf("%f") into a 32-byte stack buffer with snprintf(tmp, sizeof(tmp), ...) in StagefrightMetadataRetriever::parseMetaData so that a large capture-framerate float can no longer overflow the stack buffer.

Root cause

In media/libmediaplayerservice/StagefrightMetadataRetriever.cpp, parseMetaData() declares `char tmp[32]` and reuses it for several formatted values. For the capture framerate it called `sprintf(tmp, "%f", captureFps)`, where captureFps comes from meta->findFloat(kKeyCaptureFramerate, ...). The commit message says an attacker-supplied float such as FLT_MAX can produce up to 47 bytes of output. That exceeds the 32-byte stack buffer and overflows the stack.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings