Export to GitHub

btstack - issue #395

Use after free in rfcomm_multiplexer_state_machine


Posted on Jun 12, 2014 by Swift Dog

What steps will reproduce the problem? 1. RFCOMM connection is successfully created (using a client and the daemon). 2. The client is closed, causing L2CAP_DISCONNECT event to be raised. 3. In rfcomm_multiplexer_state_machine, RFCOMM_MULTIPLEXER_SEND_UA_0_AND_DISC is reached. rfcomm_multiplexer_finalize is called, which frees the multiplexer, but multiplexer->at_least_one_connection is being accessed right afterwards.

What version of the product are you using? On what operating system? Present in the latest r2598.

Comment #1

Posted on Jun 12, 2014 by Swift Ox

Ouch. Thanks for reporting. Fixed in r2599

Status: Fixed

Labels:
Type-Defect Priority-Critical OpSys-All