Android security tags, read closely by Lightrion

CVE-2026-59010 AI-generated analysis

platform/system/keymint, KeyMint reference implementation, legacy keyblob parsing (common crate, tag::legacy)

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.

Adds a bounds check in the legacy keyblob tag deserializer (system/keymint common/src/tag/legacy.rs, deserialize) so that a blob_data_size read from the keyblob that is larger than the remaining input returns InvalidKeyBlob instead of causing an out-of-range slice (Rust panic).

Root cause

In common/src/tag/legacy.rs, deserialize() reads a 32-bit blob_data_size from the legacy keyblob and then slices the input as &data[..blob_data_size] and &data[blob_data_size..] without first checking that blob_data_size does not exceed data.len(). Other lengths are checked: param_size is compared against data.len(), and consume_blob checks data_offset + data_len against blob_data.len(). blob_data_size was not. In Rust an out-of-range slice index panics, so a keyblob whose blob_data_size exceeds the remaining bytes makes the deserializer panic.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings