Android security tags, read closely by Lightrion

CVE-2023-40107 AI-generated analysis

platform/frameworks/av, libstagefright RTSP (ARTPWriter)

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.

Adds `mVPSBuf = NULL;` to the single-argument `ARTPWriter::ARTPWriter(int fd)` constructor in media/libstagefright/rtsp/ARTPWriter.cpp. Before this, the VPS buffer pointer was left uninitialised while mSPSBuf and mPPSBuf next to it were already initialised.

Root cause

`ARTPWriter::ARTPWriter(int fd)` set `mSPSBuf = NULL` and `mPPSBuf = NULL` but never initialised the sibling member `mVPSBuf`. Per the commit message, if the ARTPWriter object is cleared immediately after this constructor call, the uninitialised pointer could lead to an incorrect free. The material does not show the clearing code itself. The bulletin rates this as a High severity EoP.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2023 · Findings