CVE-2026-2411
Beschrijving NL
De Bluetooth-host van Zephyr verklaart een GATT-kenmerk als twee opeenvolgende kenmerken: een Kenmerkverklaring waarvan de toestemming hard gecodeerd is naar BT_GATT_PERM_READ en een Kenmerkwaarde-kenmerk dat de door de toepassing gespecificeerde beveiligingsmachtigingen draagt (bijv. BT_GATT_PERM_READ_ENCRYPT / READ_AUTHEN/ READ_LESC). Het publiek meldt en geeft aan dat API's beide attributen expliciet accepteren, en het doorgeven van de verklaring is het gedocumenteerde, gemeenschappelijke idioom. Voordat elke melding of indicatie wordt verzonden, controleert de host de linkbeveiliging opnieuw met bt_gatt_check_perm() tegen params- >attr in gatt_notify(), gatt_indicate() en gatt_notify_multiple_verify_params() (subsys/bluetooth/host/gatt.c). Toen de applicatie het kenmerk Characteristic Declaration (Kenmerkdeclaratie) passeerde, heeft de host de waardehandle correct omgeleid, maar de params- >attr naar de declaratie gericht, dus de beveiligingscontrole evalueerde de toestemmingen van de declaratie (geen beveiliging vereist) in plaats van de waarden. Als gevolg hiervan werd de codering/authenticatie/LESC-vereiste die was geconfigureerd op de karakteristieke waarde overgeslagen. Het Notify-Multiple-pad gebruikte bovendien een masker dat de LE Secure Connections-vereiste wegliet. Een externe peer activeert de openbaarmaking door verbinding te maken (optioneel zonder koppeling of codering) en de Client Characteristic Configuration-descriptor te schrijven om meldingen of indicaties in te schakelen, waardoor de server de beschermde waarde uitzendt via een link die niet het vereiste beveiligingsniveau heeft bereikt. De impact is informatie openbaarmaking / toegangscontrole bypass voor karakteristieke waarden die de applicatie alleen via een beveiligde link wil blootleggen; blootstelling hangt af van de applicatie die de codering/authen-vereiste meld/geef kenmerken aangeeft en van het feit dat de CCC beschrijfbaar is op een lager beveiligingsniveau. Er is geen impact op geheugenveiligheid of beschikbaarheid. De oplossing voegt bt_gatt_attr_resolve_value() toe, die een declaratieattribuut toewijst aan het volgende waardeattribuut vóór de machtigingscontrole, en schakelt het pad Notify-Multiple over naar het volledige BT_GATT_PERM_READ_ENCRYPT_MASK, zodat de LESC-vereiste ook wordt afgedwongen.
Origineel (Engels) tonen
Zephyr's Bluetooth host declares a GATT characteristic as two consecutive attributes: a Characteristic Declaration whose permission is hard-coded to BT_GATT_PERM_READ, and a Characteristic Value attribute that carries the application-specified security permissions (e.g. BT_GATT_PERM_READ_ENCRYPT / READ_AUTHEN / READ_LESC). The public notify and indicate APIs explicitly accept either attribute, and passing the declaration is the documented, common idiom. Before sending each notification or indication, the host re-checks link security with bt_gatt_check_perm() against params->attr in gatt_notify(), gatt_indicate(), and gatt_notify_multiple_verify_params() (subsys/bluetooth/host/gatt.c).
When the application passed the Characteristic Declaration attribute, the host correctly redirected the value handle but left params->attr pointing at the declaration, so the security check evaluated the declaration's permissions (no security required) instead of the value's. As a result the encryption/authentication/LESC requirement configured on the characteristic value was skipped. The Notify-Multiple path additionally used a mask that omitted the LE Secure Connections requirement.
A remote peer triggers the disclosure by connecting (optionally without pairing or encryption) and writing the Client Characteristic Configuration descriptor to enable notifications or indications, causing the server to emit the protected value over a link that has not reached the required security level. The impact is information disclosure / access-control bypass for characteristic values the application intended to expose only over a secured link; exposure depends on the application declaring encrypt/authen-required notify/indicate characteristics and on the CCC being writable at a lower security tier. There is no memory-safety or availability impact.
The fix adds bt_gatt_attr_resolve_value(), which maps a declaration attribute to the following value attribute before the permission check, and switches the Notify-Multiple path to the full BT_GATT_PERM_READ_ENCRYPT_MASK so the LESC requirement is also enforced.