В ядре Linux устранена следующая уязвимость:
mac802154: llsec: отклонять кадры короче тега аутентификации.
llsec_do_decrypt_auth() вычисляет длину связанных данных для
Запрос AEAD как
assoclen += datalen - authlen;
где datalen — количество байтов после заголовка MAC и authlen.
(4, 8 или 16) — длина тега аутентификации. Ничто не проверяет
что кадр фактически содержит как минимум байты полезной нагрузки authlen. А
защищенный кадр, полезная нагрузка которого короче, чем позволяет тег
датален - аутлен негативный; assoclen затем передается
aead_request_set_ad() как беззнаковое значение, близкое к 4 ГиБ, поэтому
crypto_aad_decrypt() уходит далеко за конец списка разброса, который
охватывает только реальный кадр.
Фрейм полностью контролируется злоумышленником и достигает этого пути из любого места. Одноранговый узел IEEE 802.15.4 в радиодиапазоне. Отклонять кадры, полезная нагрузка которых
короче, чем тег аутентификации до вычитания.
Динамически воспроизводится в ядре KASAN как ошибка общей защиты.
в разбросе AEAD, и исправление подтверждено.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: mac802154: llsec: reject frames shorter than the authentication tag llsec_do_decrypt_auth() computes the associated-data length for the AEAD request as assoclen += datalen - authlen; where datalen is the number of bytes after the MAC header and authlen (4, 8 or 16) is the length of the authentication tag. Nothing verifies that the frame actually carries at least authlen payload bytes. A secured frame whose payload is shorter than the tag makes datalen - authlen negative; assoclen is then passed to aead_request_set_ad() as an unsigned value close to 4 GiB, so crypto_aead_decrypt() walks far off the end of the scatterlist that only spans the real frame. The frame is fully attacker-controlled and reaches this path from any IEEE 802.15.4 peer in radio range. Reject frames whose payload is shorter than the authentication tag before the subtraction. Dynamically reproduced on a KASAN kernel as a general-protection-fault in the AEAD scatterwalk, and the fix confirmed.
Характеристики атаки
Последствия
Строка CVSS v3.1