В ядре Linux устранена следующая уязвимость:
crypto: comp — использовать одно и то же определение выделения контекста и свободных операций. В коммите 42d9f6c77479 ("crypto: acomp - Переместить распределение потока scomp
код в acomp"), структура crypto_acomp_streams была создана с учетом
наличие операций alloc_ctx и free_ctx, определенных в одном и том же порядке
как структура scomp_alg. Но в том же коммите alloc_ctx и
Члены free_ctx из scomp_alg могут быть рандомизированы в зависимости от структуры структуры.
рандомизация, поскольку они содержатся в чистой структуре ops
(содержащий только указатели на функции).
Если указатели внутри scomp_alg
рандомизированы, а в crypto_acomp_streams — нет, тогда
заказ может больше не соответствовать. Это решает проблему, удалив
объединение из scomp_alg, чтобы и crypto_acomp_streams, и scomp_alg
будет использовать одно и то же определение alloc_ctx и free_ctx, гарантируя
они всегда будут иметь один и тот же макет.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: crypto: comp - Use same definition of context alloc and free ops In commit 42d9f6c77479 ("crypto: acomp - Move scomp stream allocation code into acomp"), the crypto_acomp_streams struct was made to rely on having the alloc_ctx and free_ctx operations defined in the same order as the scomp_alg struct. But in that same commit, the alloc_ctx and free_ctx members of scomp_alg may be randomized by structure layout randomization, since they are contained in a pure ops structure (containing only function pointers). If the pointers within scomp_alg are randomized, but those in crypto_acomp_streams are not, then the order may no longer match. This fixes the problem by removing the union from scomp_alg so that both crypto_acomp_streams and scomp_alg will share the same definition of alloc_ctx and free_ctx, ensuring they will always have the same layout.
Характеристики атаки
Последствия
Строка CVSS v3.1