В ядре Linux устранена следующая уязвимость:
разное: nsm: привязана длина ответа, сообщаемая устройством.
nsm_sendrecv_msg_locked() сохраняет сообщенную длину используемого кольца вирт-очереди.
устройством NSM в msg->resp.len, не привязывая его к ответу
буфер. Вредоносный или ошибочный бэкэнд может сообщать о длине, превышающей длину
буфер ответа; parse_resp_raw() затем копирует это количество байтов из
фиксированный буфер в пользовательском пространстве, раскрывающий соседнюю кучу ядра (
читать за пределами поля). Путь запроса уже достигает своей длины в
fill_req_raw(); в пути ответа отсутствует симметричная проверка.
Ограничьте сохраненную длину размером буфера ответа. хорошо себя ведет устройства сообщают не больше, чем опубликованный размер буфера, поэтому соответствующий трафик не затронуто.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: misc: nsm: bound the device-reported response length nsm_sendrecv_msg_locked() stores the virtqueue used-ring length reported by the NSM device into msg->resp.len without bounding it to the response buffer. A malicious or buggy backend can report a length larger than the response buffer; parse_resp_raw() then copies that many bytes out of the fixed buffer to user space, disclosing adjacent kernel heap (an out-of-bounds read). The request path already floors its length in fill_req_raw(); the response path lacks the symmetric check. Clamp the stored length to the size of the response buffer. Well-behaved devices report no more than the posted buffer size, so conforming traffic is unaffected.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
6.12.109
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
6.18.50
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
7.2.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
7.3-rc1
|