Android security tags, read closely by Lightrion

CVE-2025-0084 AI-generated analysis

platform/packages/modules/Bluetooth, system/bta/hf_client (HFP client SDP) and system/stack/sdp (SDP discovery client)

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

Adds a guard in bta_hf_client_do_disc that aborts discovery when the HF client control block already owns an SDP discovery database, and a NULL check on p_ccb->p_db in process_service_search_attr_rsp that disconnects the SDP connection instead of continuing with no database.

Root cause

bta_hf_client_do_disc always allocated a new tSDP_DISCOVERY_DB into client_cb->p_disc_db with osi_malloc and set up discovery. It never checked whether the control block already held a discovery database. According to the commit message, a modified client can open two connections against the same SDP discovery database. Once the first connection closes, the second one can reference the freed database. Separately, process_service_search_attr_rsp used p_ccb->p_db without checking for NULL, and the commit adds that check to guard against unchecked use of the database.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to March 2025 · Findings