Android security tags, read closely by Lightrion

CVE-2025-22411 AI-generated analysis

platform/packages/modules/Bluetooth, system/stack (avct, bnep, hid, rfcomm, sdp)

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.

In nine log::warn statements across the AVCT, BNEP, HID device, RFCOMM and SDP layers of the Bluetooth stack, the fix stops reading the BT_HDR buffer's len field after the buffer has been passed to L2CA_DataWrite. It either captures the length in a local before the call or recomputes it with pointer arithmetic.

Root cause

In each changed site, the log statement in the failure branch after L2CA_DataWrite still dereferenced the buffer just passed to it (p_buf->len, p->len, p_msg->len, hd_cb.pending_data->len). The commit message says these structures 'may, in exceptional cases, have been freed by preceding calls', so the logging could read freed memory.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to March 2025 · Findings