Android security tags, read closely by Lightrion

CVE-2026-58956 AI-generated analysis

platform/external/avb, libavb RSA PKCS1.5 signature verification (libavb/avb_rsa.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.

Makes libavb's modpowF4 report memory allocation failure to avb_rsa_verify so that RSA signature verification fails instead of silently continuing with the unmodified signature buffer.

Root cause

In libavb/avb_rsa.c, modpowF4 was declared void. It allocates three key->len-sized uint32_t work buffers with avb_malloc. If any allocation returned NULL it jumped to the out label, freed what it had and returned without touching the inout buffer. avb_rsa_verify copied the signature into buf, called modpowF4(parsed_key, buf) with no way to learn of the failure, and then went on to check padding and hash against buf. Per the commit message, buf still held the raw signature bytes instead of the exponentiation result, so a signature block matching the expected padding and hash could potentially pass the check when heap allocation failed during verification.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings