Ad

CVE-2026-85034

MEDIUM CVSS 3.1: 6,7 EPSS 0.30%
Обновлено 3 ноября 2026
Параметр Значение
CVSS 6,7 (MEDIUM)
Тип уязвимости CWE-787 (Запись за пределами буфера)
Публичный эксплойт Нет

The Bluetooth host's GATT client passed the value of a received Handle Value Notification, Handle Value Indication or Multiple Handle Value Notification to bt_gatt_subscribe_params::notify callbacks using only the length derived from the received ATT PDU. bt_att_recv() in subsys/bluetooth/host/att.c validates only a minimum PDU length and does not enforce the negotiated ATT MTU, and the fixed ATT L2CAP channel in subsys/bluetooth/host/l2cap.c applies no rx.mtu check either, so the only ceiling was the ACL reassembly buffer CONFIG_BT_BUF_ACL_RX_SIZE. Таким образом, значения, превышающие максимальную длину атрибута 512-октет, определенную Bluetooth Core Specification (Vol 3, Part F, Section 3.2.9), могут быть переданы абонентам, которые измеряют свои буферы до этого документированного предела. Удаленный узел, к которому подключено устройство и на которое подписано устройство — вредоносный, поддельный или скомпрометированный сервер GATT в радиодиапазоне — инициирует ошибку, отправляя уведомление или индикацию, значение которой превышает 512 октетов на подписанном ручке.

В одноадресном клиенте LE Audio это достигает конкретной записи out-of-bounds: unicast_client_ep_notify() в subsys/bluetooth/audio/bap_unicast_client.c копирует уведомление в 512-байт att_buf структуры unicast_client с net_buf_simple_add_mem() и не проверяет хвостовое отделение, когда длина равна bt_audio_get_max_ntf_size(), то есть согласованный ATT MTU минус три. notify_handler() в subsys/bluetooth/audio/bap_broadcast_assistant.c имеет ту же форму. Для достижения переполнения требуется сборка, ATT MTU которой превышает 515 октетов (CONFIG_BT_L2CAP_TX_MTU и CONFIG_BT_BUF_ACL_RX_SIZE установлены для полноразмерной поддержки атрибутов); поставляемые по умолчанию намного меньше. Переполнение записывает пиринговые байты мимо att_buf непосредственно над соседним struct net_buf_simple net_buf — его полями данных, __buf, len и size — которые последующее долго читаемое накопление затем использует в качестве своего назначения, превращая небольшое линейное переполнение в контролируемую запись. net_buf_simple_add() утверждает только на недостаточной хвостовой комнате, если CONFIG_NET_BUF_HARDENING не включен, и эта опция отключена по умолчанию, поэтому обычное производство строит копию.

Помимо внутридеревянных клиентов LE Audio, любой подписчик приложения, который подбирал свой буфер приема до 512-октетного предела спецификации, подвергался тому же переполнению. Fix отклоняет уведомления, индикации и значения множественных уведомлений дольше, чем BT_ATT_MAX_ATTRIBUTE_LEN в call_notify_cb_and_maybe_unsubscribe() в subsys/bluetooth/host/gatt.c, прежде чем вызов вызовет любой абонентский вызов, поэтому ни одному абоненту не может быть передано больше указанного максимума. Оставшиеся кортежи уведомления о значении нескольких ручек по-прежнему доставляются, и по-прежнему подтверждаются негабаритные показания.

Показать оригинальное описание (EN)

The Bluetooth host's GATT client passed the value of a received Handle Value Notification, Handle Value Indication or Multiple Handle Value Notification to bt_gatt_subscribe_params::notify callbacks using only the length derived from the received ATT PDU. bt_att_recv() in subsys/bluetooth/host/att.c validates only a minimum PDU length and does not enforce the negotiated ATT MTU, and the fixed ATT L2CAP channel in subsys/bluetooth/host/l2cap.c applies no rx.mtu check either, so the only ceiling was the ACL reassembly buffer CONFIG_BT_BUF_ACL_RX_SIZE. Values longer than the 512-octet maximum attribute length defined by the Bluetooth Core Specification (Vol 3, Part F, Section 3.2.9) could therefore be handed to subscribers that size their buffers to that documented limit. A remote peer that a device has connected and subscribed to — a malicious, spoofed or compromised GATT server within radio range — triggers the flaw by sending a notification or indication whose value exceeds 512 octets on a subscribed handle. In the LE Audio unicast client this reaches a concrete out-of-bounds write: unicast_client_ep_notify() in subsys/bluetooth/audio/bap_unicast_client.c copies the notification into the 512-byte att_buf of struct unicast_client with net_buf_simple_add_mem() and no tailroom check whenever length equals bt_audio_get_max_ntf_size(), i.e. the negotiated ATT MTU minus three. notify_handler() in subsys/bluetooth/audio/bap_broadcast_assistant.c has the same shape. Reaching the overflow requires a build whose ATT MTU exceeds 515 octets (CONFIG_BT_L2CAP_TX_MTU and CONFIG_BT_BUF_ACL_RX_SIZE set for full-length attribute support); the shipped defaults are far smaller. The overflow writes peer-controlled bytes past att_buf directly over the adjacent struct net_buf_simple net_buf — its data, __buf, len and size fields — which the subsequent long-read accumulation then uses as its destination, turning a small linear overflow into a controlled write. net_buf_simple_add() only asserts on insufficient tailroom unless CONFIG_NET_BUF_HARDENING is enabled, and that option is disabled by default, so ordinary production builds perform the copy. Beyond the in-tree LE Audio clients, any application subscriber that sized its receive buffer to the specification's 512-octet limit was exposed to the same overflow. The fix rejects notification, indication and multiple-notification values longer than BT_ATT_MAX_ATTRIBUTE_LEN in call_notify_cb_and_maybe_unsubscribe() in subsys/bluetooth/host/gatt.c before any subscriber callback is invoked, so no subscriber can be handed more than the specified maximum. Remaining tuples of a multiple handle value notification are still delivered and oversized indications are still confirmed.

Характеристики атаки

Способ атаки
Смежная сеть
Нужен доступ к локальной сети
Сложность
Высокая
Сложно эксплуатировать
Нужны права
Низкие
Нужны базовые права
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Низкое
Частичная утечка данных
Целостность
Высокое
Полная модификация данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1