Android security tags, read closely by Lightrion

CVE-2026-58990 AI-generated analysis

platform/packages/modules/Bluetooth, system/stack/l2cap (L2CAP flow control / ERTM configuration, l2c_fcr.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 (2 corrections). Verify against the commit before relying on it.

Adds a minimum-MPS check in l2c_fcr_process_peer_cfg_req so that a peer L2CAP CONFIG_REQ carrying an ERTM/streaming MPS of 1..7 is overridden to 8 and rejected as L2CAP_PEER_CFG_UNACCEPTABLE, preventing a later uint16 underflow of max_pdu - L2CAP_SDU_LEN_OVERHEAD used for buffer sizing.

Root cause

l2c_fcr_process_peer_cfg_req in system/stack/l2cap/l2c_fcr.cc only clamped the peer's requested FCR MPS from above (MPS == 0 or MPS > peer MTU is replaced by the peer MTU; MPS > max_retrans_size is clamped to max_retrans_size). There was no lower bound, so a remote CONFIG_REQ with fcr_present, a non-basic mode and an MPS of 1 was accepted. According to the commit message, during L2CAP transmission the Maximum PDU Payload Size (max_pdu) is derived from this MPS, and max_pdu - L2CAP_SDU_LEN_OVERHEAD (2) is computed in a uint16; with max_pdu == 1 this underflows to 65535 and that value is then used for a buffer allocation, producing a roughly 65 KB heap overflow. The transmit-side code is not included in the material.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings