В ядре Linux устранена следующая уязвимость:
Rapidio: mport_cdev: исправлено использование после освобождения в dma_req_free()
dma_req_free() получает buf_mutex через req->map, удаляет сопоставление
ссылка с помощью kref_put(), а затем снова разыменовывает req->map, чтобы разблокировать
мьютекс. Если kref_put() удаляет последнюю ссылку, mport_release_mapping() освобождает
сопоставление, а последующий вызов mutex_unlock() разыменовывает освобожденный объект. Это использование после бесплатного использования.
Исправьте это, кешируя карту и md перед kref_put(), очищая req->map при этом.
удерживая buf_mutex и используя кэшированный md для разблокировки мьютекса. Ошибка доступна из пользовательского пространства через символьное устройство RapidIO mport.
интерфейс.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: rapidio: mport_cdev: fix use-after-free in dma_req_free() dma_req_free() acquires buf_mutex through req->map, drops the mapping reference with kref_put(), and then dereferences req->map again to unlock the mutex. If kref_put() drops the last reference, mport_release_mapping() frees the mapping, and the subsequent mutex_unlock() dereferences a freed object. This is a use-after-free. Fix this by caching map and md before kref_put(), clearing req->map while holding buf_mutex, and using the cached md for mutex unlocking. The bug is reachable from userspace via the RapidIO mport character device interface.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.6
|
6.12.109
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.6
|
6.18.50
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.6
|
7.2.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.6
|
7.3-rc1
|