Definition
Bonding is the Bluetooth procedure in which two devices that have paired store the keys that pairing §7.17 produced, so that later connections can be encrypted with those keys without pairing again. Pairing creates shared keys; bonding keeps them. Each device writes its own record, called a bond, to its own non-volatile storage (memory that keeps its content without power). A bond holds the peer’s identity, the long-term key §7.28 (LTK) that encrypts later connections, and the security properties the key was created with. The Bluetooth Core Specification defines bonding.
The idea
A phone and a door lock pair once. The lock shows six digits and the user types them on the phone. Without bonding, the two would repeat that step at every connection, for example each time the phone comes back into radio range. With bonding, each device stores the key that pairing produced. At the next connection the phone starts encryption with its stored key, the lock finds the same key in its own store, and no user action is needed.
The price is that a key now lives for months, on two devices, in two separate stores. Picture two people who agree on a password and each write it in their own notebook. Either notebook can be erased, copied or swapped for an old photocopy without the other changing, and neither notebook tells what the other still contains. A bond therefore brings the whole lifecycle of a stored credential (creation, use, replacement, deletion, restoration), and each step can leave the two records out of step or bring back a record that should be gone. The picture stops at one point: a bond also records how strongly the key was protected when it was made, for example whether the user compared a number, and that record decides what the key may later be trusted for.
How it works
In Bluetooth Low Energy (BLE) §7.1 the device that sets up the connection is the central and the other is the peripheral. The central always starts pairing and encryption; the peripheral can only ask it to, with a message called a Security Request. Bluetooth Low Energy is abbreviated LE in the names of its two pairing procedures, LE Secure Connections §7.21 and LE legacy pairing §7.20. A bond goes through these steps.
Request. In the first two messages of pairing, the pairing feature exchange, each device states in two bits of a one-byte field named
AuthReq(authentication §1.6 requirements) whether it wants to bond:01means bonding,00means no bonding. A device that accepts no bonds, which the specification calls non-bondable mode, sends00. Keys are kept as a bond only if both devices send01; otherwise they protect the current connection and are then discarded.Key creation and distribution. Pairing produces the LTK, a 128-bit key: under LE Secure Connections both devices compute it; under LE legacy pairing one device chooses it and sends it over the link that pairing has just encrypted. Over that link a device can also send its identity resolving key §7.29 (IRK), which lets the receiver recognize the sender’s changing private addresses; its identity address §7.30, the fixed address that names the device; and its connection signature resolving key (CSRK), which lets the receiver verify data the sender has signed.
Storage. Each device writes a bond record to its own storage. The record holds:
the peer’s identity address;
the LTK and, after legacy pairing, two values named
EDIV(encrypted diversifier, 16 bits) andRand(64 bits) that identify which LTK the central will ask for;the peer’s IRK and CSRK, if the peer sent them;
the security properties of the keys: whether pairing was authenticated, meaning protected against a man-in-the-middle §7.26 (MITM) attacker who relays and alters pairing messages; whether LE Secure Connections was used; and the encryption key size §7.27.
Reconnection. At a later connection the central asks its Link Layer §7.6, the part of the Bluetooth chip that sends and receives packets, to start encryption with the stored LTK. It sends
EDIVandRand(both zero after LE Secure Connections) and fresh random values. The peripheral’s software looks up the matching LTK in its own store and gives it to its own Link Layer. Both Link Layers compute a session key for this connection from the LTK and the fresh random values, then exchange messages encrypted under it. A device that does not hold the same LTK cannot produce or accept those messages, so a completed encryption setup shows that both sides still hold matching bonds.Missing key. If the peripheral finds no LTK for the request, it rejects the encryption request and may disconnect. The central’s software receives an error code,
0x06, that reports a missing key.
Worked example
A phone P (the central) and a door lock L (the peripheral) pair with LE Secure Connections and passkey entry §7.23: L displays six digits and the user types them on P. Both devices send AuthReq 0x0D, which is 13 in decimal and 0000 1101 in binary. Bits 1 and 0 read 01 (bonding), bit 2 is 1 (protection against a man-in-the-middle requested) and bit 3 is 1 (LE Secure Connections supported). Both asked to bond, so each stores a record: the peer’s identity address, a 16-byte LTK , authenticated: yes, LE Secure Connections: yes, key size: 16 bytes.
Case 1, the lock deletes. L is reset to factory settings and erases its record. P reconnects and asks for encryption with . L has no LTK for P and rejects the request, and P receives error 0x06. Because P and L were bonded, P reports a security failure to the user instead of pairing again on its own. The user deletes the old record on P, and the two pair afresh.
Case 2, the phone deletes. The user tells P to forget L; L keeps its record. P uses a fixed public address, which appears in the clear in its radio packets, so an attacker M can copy it. M connects to L and sends a Pairing Request with input and output capability NoInputNoOutput (code 0x03) and AuthReq 0x09, binary 0000 1001: bonding and LE Secure Connections, no request for protection against a man-in-the-middle. These values select Just Works §7.22, a method in which the user compares nothing, so the new key would be unauthenticated. If L accepts every re-pairing, it overwrites with , and M now opens the lock as P. With the rule “never replace an authenticated bond with an unauthenticated one”, L compares the stored property (authenticated) with the offered one (unauthenticated) and refuses with a Pairing Failed message, reason 0x03 (authentication requirements). The genuine P has a keyboard, so it can re-pair with passkey entry and produce an authenticated key, which the rule accepts.
Case 3, rollback. L stores its bond records with a version number , and protects records and version together with a message authentication code §5.7: a tag that only a holder of L’s secret key can compute. L also keeps a monotonic counter §8.28 in hardware that cannot be set back to a smaller value. On day 1, P and a second phone Q are bonded, and . On day 2, Q is lost; L deletes Q’s bond, writes the store with and raises to 5. On day 3, an attacker with access to L’s storage chip writes back the copy saved on day 1, which still contains Q’s bond. Its tag is valid, because L computed it. At start-up L compares the stored version with the counter: , so L rejects the store as rolled back and treats every bond as lost. Fresh pairing is now needed for P, but the lost phone Q is not readmitted. Without the counter check, L would have accepted the day-1 store and Q would work again.
Stated precisely
Three facts must be kept apart.
A bond record exists: the store of device holds an LTK and its security properties for the identity address of peer . This is a fact about ’s storage. It says nothing about ’s storage.
This connection is encrypted with the bonded key: on the current connection, encryption setup completed with the LTK from ’s record for . Only this event shows that holds the same LTK.
may perform this operation: a decision of the application, which the first two facts do not make.
The security properties of an encrypted link are those stored with the key that encrypted it: authenticated or unauthenticated, LE Secure Connections or LE legacy pairing, and the key size. A pairing that replaces the key replaces these properties as well.
A bond protects later connections under three assumptions.
Key secrecy: no one other than the two devices has read the LTK from either store.
Store integrity §1.9: no one can add, change or delete a record without the device detecting it.
Store freshness: the store in use is the latest one the device wrote, not an older copy written back. Encrypting the store does not give freshness, because an old copy decrypts correctly.
A fourth condition comes from the device’s policy for re-pairing: a record may be replaced only by a pairing whose security properties are at least those of the record it replaces, or after a local user action such as a button press.
When the two records disagree
The two records are independent, so a change to one never reaches the other. If the peripheral deleted its bond and the central kept its own, the central’s encryption request fails with the missing-key error. For bonded devices, table 2.9 of the Security Manager part of the specification then requires the device to notify the user of a security failure, whatever the security properties of the key; automatic pairing is permitted only for devices that did not bond. If the central deleted its bond and the peripheral kept its own, the central starts a new pairing as a stranger would. The peripheral must either refuse, which forces the user to clear its record too, or accept and replace the old bond with the new keys. Replacing a bond in this way is called re-pairing.
An address is not a secret: any radio can send packets that carry a copied address. A peripheral that accepts every re-pairing therefore lets anyone in radio range replace a bond by claiming the bonded peer’s address, and the replacement may use a weaker method than the original. The specification opens a second route of its own: when a central receives a Security Request and its stored keys are missing or weaker than the properties requested, the central must start pairing and update its stored keys. A safer rule accepts a replacement only if its security properties are at least those of the stored bond, or only after a local user action.
Restoring an older copy of the bond store, from a backup or by an attacker who saved the storage contents and later writes them back, is a rollback. It undoes every change made since the copy was taken: a bond deleted to revoke a lost phone comes back and works; a bond replaced by re-pairing returns to an old key that the peer no longer holds, so encryption fails; and stored counters return to old values, such as the counter that data signing uses to reject a signed message sent a second time, so old signed messages can be accepted again. Detecting a rollback needs a monotonic counter, a number that can only increase, kept where the attacker cannot write back an old value, and a check of the store’s version against it.
Limits and common mistakes
A bond is not a connection and not an encrypted link. A device can hold a bond for its peer and still exchange unencrypted packets with it, before encryption starts or after an encryption request has failed.
Each device’s view is local. BlueZ §12.21, the Bluetooth software of Linux, shows four separate properties for a remote device: Paired (pairing completed), Bonded (the keys from pairing are stored and kept), Connected (a link exists now) and Trusted (a setting made on the computer; BlueZ then authorizes that device’s service connections without asking the user through the agent, the program that shows such prompts). All four describe the computer’s own records. “Paired: yes, Bonded: yes” does not show that the other device still holds its matching bond; only a successful encryption setup on a live connection shows that. Trusted is a local shortcut for authorization §1.7 and adds no cryptographic protection.
Re-pairing is a weakness of the specification itself, not only of careless implementations. Tommaso Sacchetti and Daniele Antonioli describe re-pairing attacks, which they name BLERP (BLE Re-Pairing), at the Network and Distributed System Security (NDSS) Symposium 2026 [277]. They report that the specification lets paired devices re-pair without proving that they hold the existing key, and lets the new pairing have a lower security level §7.33 than the old one. Their attacker is in radio range and knows no keys; their attacks impersonate a paired device, or put the attacker in the middle of two paired devices, with at most one click by the user, and they report success against 22 devices. They report that the Bluetooth SIG (Special Interest Group, the body that maintains the specification) acknowledged the issues but did not plan to change the specification; that Apple, Google and the Apache Software Foundation, which maintains the open-source Bluetooth software NimBLE, took steps to address them; and that Logitech and Microsoft declined to issue fixes. A device therefore cannot wait for the specification to close this route; its own re-pairing policy must.
A bond is not an authorization. A peer bonded through Just Works proved nothing about who it is, and even a peer with an authenticated bond may be refused a particular operation.
Deleting a bond also deletes the peer’s IRK. The deleting device can then no longer recognize the peer’s private addresses, and the peer appears as an unknown device.
A device whose bond store is full and that overwrites its oldest bond deletes that bond silently, with the effects of a one-sided deletion.
Questions answered
What happens when one side deletes or rolls back its bond state?
When one side deletes or rolls back its bond state, the two devices’ bond records stop agreeing, and the effect depends on which side lost or regained what. Each device stores its own bond (the keys from pairing, kept for later connections), so a change on one side never reaches the other.
The peripheral deleted its bond; the central kept its own. The central’s next attempt to encrypt with the stored long-term key (LTK) fails with a missing-key error. For bonded devices the Bluetooth specification requires the central to report a security failure to the user, not to pair again silently; the user must delete the stale record before the devices pair afresh.
The central deleted its bond; the peripheral kept its own. The central starts a new pairing, and the peripheral must either refuse or replace its old bond, which is called re-pairing. Accepting every replacement lets an attacker who copies the central’s address, which is not secret, take over the bond, possibly through Just Works, a method with no user check. A safe peripheral accepts a replacement only if it is at least as strong as the stored bond, or after a local user action such as a button press.
One side rolls back, that is, restores an older copy of its bond store. Every change since that copy is undone: deleted bonds return and work again, so a revoked device regains access; a key replaced by re-pairing returns to its old value, which the peer no longer holds, so encryption fails; and stored counters return to old values, so old signed messages may be accepted again. Detecting the rollback needs a monotonic counter (a number that can only increase) kept where an attacker cannot rewind it.
In every case a device learns that both sides still share a bond only from a successful encryption setup on the current connection, never from its own record.
Related entries: Key provisioning (§5.28), Key rotation (§5.29), Long-term key (LTK) (§7.28), Security level (§7.33), Pairing (§7.17), Just Works (§7.22), Identity resolving key (IRK) (§7.29), Key revocation (§5.32), Rollback versus anti-rollback (§8.26), Monotonic counter (§8.28), BlueZ (§12.21). Further reading: [18, 277].