Ad

CVE-2026-98107

NONE EPSS 0.13%
Обновлено 19 октября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: Bluetooth: L2CAP: fix out-of-bounds write in l2cap_ecred_connect l2cap_chan_connect() пытается обеспечить наличие не более L2CAP_ECRED_CONN_SCID_MAX в ожидании каналов ECRED, поэтому они вписываются в тот же L2CAP_ECRED_CONN_REQ, который конструирует l2cap_ecred_connect(). Однако проверка учитывает только отложенные каналы. Если одновременно подключить 6 сокетов L2CAP в порядке DDDDND (Ddeferred, Nnon-deferred), последний может увеличить общее количество до max+1.

Это приводит к одному __le16, написанному вне границ массива scid, и отправке некорректного ECRED_CONN_REQ. Исправьте, оставив место для неотложенных ожидающих каналов ECRED в подсчете в l2cap_chan_connect (), поэтому предел не может быть превышен. Переместите подсчет в ту же критическую секцию, где добавлен канал.

Хотя условия гонки, связанные с этим, кажутся недостижимыми, это легче увидеть. Также добавьте проверку WARN_ON_ONCE в l2cap_ecred_defer_connect (), чтобы сделать это менее хрупким.

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

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: fix out-of-bounds write in l2cap_ecred_connect l2cap_chan_connect() tries to ensure there are no more than L2CAP_ECRED_CONN_SCID_MAX pending ECRED channels, so they fit in the same L2CAP_ECRED_CONN_REQ that l2cap_ecred_connect() constructs. However, the check only counts deferred channels. If 6 L2CAP sockets are connected at the same time in order DDDDND (D=deferred, N=non-deferred), the last can bump the total to max+1. It results to one __le16 written out of bounds of the scid array, and an invalid ECRED_CONN_REQ being sent. Fix by leaving room for the non-deferred pending ECRED channels in the counting in l2cap_chan_connect(), so the limit can't be exceeded. Move counting under same critical section where the channel is added. Although race conditions involving this appear unreachable, it's easier to see. Also add WARN_ON_ONCE check in l2cap_ecred_defer_connect() to make this less brittle.