В ядре Linux устранена следующая уязвимость:
fs/mbcache: отменить работу по сжатию перед уничтожением кеша
mb_cache_destroy() вызывает Shrusher_free() и затем освобождает весь кеш
записи и сам кеш, но это не отменяет ожидающие
c_shrink_work рабочий элемент первым. Если mb_cache_entry_create() планирует c_shrink_work через Schedule_work()
и рабочий элемент все еще ожидает или выполняется, когда mb_cache_destroy()
запускается, mb_cache_shrink_worker() получит доступ к кешу после его памяти
был освобожден, что привело к использованию-после освобождения. Это доступно только привилегированному пользователю (root или CAP_SYS_ADMIN).
кто может запустить последнюю установку смонтированной файловой системы ext2/ext4/ocfs2.
Отмените рабочий элемент с помощью cancel_work_sync() перед вызовом.
Shrinker_free(), гарантируя, что рабочий завершил работу и не будет
перепланировано до того, как кэш будет удален.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: fs/mbcache: cancel shrink work before destroying the cache mb_cache_destroy() calls shrinker_free() and then frees all cache entries and the cache itself, but it does not cancel the pending c_shrink_work work item first. If mb_cache_entry_create() schedules c_shrink_work via schedule_work() and the work item is still pending or running when mb_cache_destroy() runs, mb_cache_shrink_worker() will access the cache after its memory has been freed, causing a use-after-free. This is only reachable by a privileged user (root or CAP_SYS_ADMIN) who can trigger the last put of a mounted ext2/ext4/ocfs2 filesystem. Cancel the work item with cancel_work_sync() before calling shrinker_free(), ensuring the worker has finished and will not be rescheduled before the cache is torn down.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 3
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.6
|
6.12.91
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|