Android security tags, read closely by Lightrion

CVE-2025-0081 AI-generated analysis

platform/external/dng_sdk, lossless JPEG decoder (source/dng_lossless_jpeg.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 (8 corrections). Verify against the commit before relying on it.

Adds a null-pointer check at the top of dng_lossless_decoder::HuffDecode in external/dng_sdk, so a null Huffman table during lossless JPEG decoding triggers ThrowBadFormat instead of being dereferenced.

Root cause

dng_lossless_decoder::HuffDecode (source/dng_lossless_jpeg.cpp) takes a HuffmanTable *htbl and goes straight to the fast 8-bit table lookup and the rest of decoding without checking that the pointer is non-null. The commit title ('Catch null HuffmanTables when decoding jpeg') shows the table pointer can be null at this point. The material does not show how it becomes null.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to March 2025 · Findings