Android security tags, read closely by Lightrion

CVE-2026-58997 AI-generated analysis

platform/frameworks/base, hwui JNI Bitmap parceling (libs/hwui/jni/Bitmap.cpp)

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

validateImageInfo in libs/hwui/jni/Bitmap.cpp now rejects a rowBytes value that is not strictly positive before calling SkBitmap::setInfo, so a bitmap parcel with rowBytes=0 no longer passes this validation.

Root cause

validateImageInfo checked the image info and rowBytes only with SkBitmap().setInfo(info, rowBytes) and had no explicit check on rowBytes. Because the fix adds rowBytes > 0, rowBytes=0 evidently passed the old check. The helper is defined directly above Bitmap_createFromParcel, which reads bitmap geometry from a Parcel, so it most likely vets parceled data, but the shown excerpt does not include the call. The bulletin classifies the issue as information disclosure (ID).

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings