Android security tags, read closely by Lightrion

CVE-2025-0075 AI-generated analysis

platform/packages/modules/Bluetooth, SDP server (system/stack/sdp/sdp_server.cc)

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.

In system/stack/sdp/sdp_server.cc process_service_search_attr_req, the warning logged when L2CA_DataWrite fails no longer reads p_buf->len, because p_buf may already have been freed. It now computes the length from the local pointers p_rsp - p_rsp_start.

Root cause

process_service_search_attr_req builds an SDP response in buffer p_buf and passes it to L2CA_DataWrite(p_ccb->connection_id, p_buf). If the call did not return L2CAP_DW_SUCCESS, the warning log read p_buf->len. The commit message says the structure may, in exceptional cases, have been freed by preceding calls, so this read could be a use after free.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to March 2025 · Findings