Ad

CVE-2025-40294

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

В ядре Linux устранена следующая уязвимость: Bluetooth: MGMT: Fix OOB Доступ в parse_adv_monitor_pattern() In функция parse_adv_monitor_pattern(), значение переменной 'length' в настоящее время ограничено HCI_MAX_EXT_AD_LENGTH(251). Размер массива 'value' в структуре mgmt_adv_pattern равен 31. Если значение 'pattern[i].length' установлено в пользовательском пространстве и превышает 31, то при копировании массив 'patterns[i].value' может быть доступен вне привязки.

Увеличение размера массива 'value' в структуре 'mgmt_adv_pattern' разрушит пользовательское пространство. Учитывая это, и чтобы избежать доступа к OOB, верните ограничения для offset и length обратно к значению HCI_MAX_AD_LENGTH. Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with SVACE.

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

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix OOB access in parse_adv_monitor_pattern() In the parse_adv_monitor_pattern() function, the value of the 'length' variable is currently limited to HCI_MAX_EXT_AD_LENGTH(251). The size of the 'value' array in the mgmt_adv_pattern structure is 31. If the value of 'pattern[i].length' is set in the user space and exceeds 31, the 'patterns[i].value' array can be accessed out of bound when copied. Increasing the size of the 'value' array in the 'mgmt_adv_pattern' structure will break the userspace. Considering this, and to avoid OOB access revert the limits for 'offset' and 'length' back to the value of HCI_MAX_AD_LENGTH. Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with SVACE.