Android security tags, read closely by Lightrion

CVE-2026-28583 AI-generated analysis

platform/system/media, camera metadata (camera/src/camera_metadata.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.

Corrects validate_camera_metadata_structure in system/media camera_metadata.c so that entry_capacity is converted from an entry count to bytes (times sizeof(camera_metadata_buffer_entry_t)), with an overflow check, before verifying that the entry region ends at or before data_start.

Root cause

In validate_camera_metadata_structure, the end of the entry region was computed as header->entries_start + header->entry_capacity and compared to header->data_start. But entry_capacity is the number of camera_metadata_buffer_entry_t entries the buffer can hold, as the struct layout comment at lines 72-80 describes, not a byte count. So the check accepted headers where entry_capacity * sizeof(camera_metadata_buffer_entry_t) was larger than the space between entries_start and data_start. Per the commit message, a crafted camera_metadata buffer could pass validation and cause an out-of-bounds write, which crashed cameraserver.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to September 2026 · Findings