[PATCH 6.16 072/143] Bluetooth: MGMT: Fix possible UAFs