В ядре Linux устранена следующая уязвимость:
Wi-Fi: mt76: mt7921/mt7925: исправлено разыменование NULL в маяке CSA. Этот патч основан на ОШИБКЕ, о которой сообщил Бонгани Хлопе на сайте
https://lore.kernel.org/all/20260502125824.425d7159@bongani-mini.home.org.za/
Когда получен маяк объявления о переключении канала (CSA),
cfg80211 ставит в очередь рабочий элемент Wiphy, который в конечном итоге вызывает
mt7921_channel_switch_rx_beacon(). Если станция отключается
(или контекст канала иным образом разрывается) между
время постановки работы в очередь и время ее выполнения, драйвер
Указатель dev->new_ctx уже может быть очищен до NULL.
mt7921_channel_switch_rx_beacon() затем разыменовывает new_ctx
безоговорочно, вызывая разыменование NULL-указателя в
адрес 0x0:
ОШИБКА: разыменование нулевого указателя ядра, адрес: 0000000000000000
RIP: 0010:mt7921_channel_switch_rx_beacon+0x1f/0x100 [mt7921_common]
Тот же отсутствующий предохранитель существует в mt7925_channel_switch_rx_beacon(),
который использует тот же шаблон кода, что и тот же коммит.
Добавьте проверку NULL на ранний возврат для dev->new_ctx в обоих
mt7921_channel_switch_rx_beacon() и
mt7925_channel_switch_rx_beacon(). Когда new_ctx имеет значение NULL,
нет отложенного переключения канала для обработки, поэтому немедленный возврат
правильные и безопасные действия. Упс-анализ: http://oops.fenrus.org/reports/lkml/20260502125824.425d7159@bongani-mini.home.org.za/report.html
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7921/mt7925: fix NULL dereference in CSA beacon This patch is based on a BUG as reported by Bongani Hlope at https://lore.kernel.org/all/20260502125824.425d7159@bongani-mini.home.org.za/ When a channel-switch announcement (CSA) beacon is received, cfg80211 queues a wiphy work item that eventually calls mt7921_channel_switch_rx_beacon(). If the station disconnects (or the channel context is otherwise torn down) between the time the work is queued and the time it runs, the driver's dev->new_ctx pointer can already have been cleared to NULL. mt7921_channel_switch_rx_beacon() then dereferences new_ctx unconditionally, triggering a NULL pointer dereference at address 0x0: BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:mt7921_channel_switch_rx_beacon+0x1f/0x100 [mt7921_common] The same missing guard exists in mt7925_channel_switch_rx_beacon(), which shares the same code pattern introduced by the same commit. Add an early-return NULL check for dev->new_ctx in both mt7921_channel_switch_rx_beacon() and mt7925_channel_switch_rx_beacon(). When new_ctx is NULL there is no pending channel switch to process, so returning immediately is the correct and safe action. Oops-Analysis: http://oops.fenrus.org/reports/lkml/20260502125824.425d7159@bongani-mini.home.org.za/report.html
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.14
|
7.1.4
|