В ядре Linux устранена следующая уязвимость:
fscache: исправлены ошибки из-за гонки с cookie_lru и use_cookie. Если срок действия файла cookie истекает из LRU и установлен флаг LRU_DISCARD, но
конечный автомат еще не запущен, возможно, другой поток может вызвать
fscache_use_cookie и начните его использовать. Когда cookie_worker наконец запустится, он увидит флаг LRU_DISCARD.
установлен, переведите состояние cookie-> в LRU_DISCARDING, что затем
отозвать куки.
После удаления файла cookie объект удаляется.
приведенное ниже упс произойдет, потому что объект, связанный с файлом cookie
теперь НУЛЬ. Исправьте ошибку, очистив бит LRU_DISCARD, если другой поток использует
cookie до запуска cookie_worker. ОШИБКА: разыменование нулевого указателя ядра, адрес: 0000000000000008.
...
ЦП: 31 PID: 44773 Связь: kworker/u130:1 Испорчено: GE 6.0.0-5.dneg.x86_64 #1
Название оборудования: Google Compute Engine/Google Compute Engine, BIOS Google 26.08.2022
Рабочая очередь: event_unbound netfs_rreq_write_to_cache_work [netfs]
RIP: 0010:cachefiles_prepare_write+0x28/0x90 [кэш-файлы]
... Отслеживание вызова:
netfs_rreq_write_to_cache_work+0x11c/0x320 [netfs]
процесс_one_work+0x217/0x3e0
рабочий_поток+0x4a/0x3b0
kthread+0xd6/0x100
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: fscache: Fix oops due to race with cookie_lru and use_cookie If a cookie expires from the LRU and the LRU_DISCARD flag is set, but the state machine has not run yet, it's possible another thread can call fscache_use_cookie and begin to use it. When the cookie_worker finally runs, it will see the LRU_DISCARD flag set, transition the cookie->state to LRU_DISCARDING, which will then withdraw the cookie. Once the cookie is withdrawn the object is removed the below oops will occur because the object associated with the cookie is now NULL. Fix the oops by clearing the LRU_DISCARD bit if another thread uses the cookie before the cookie_worker runs. BUG: kernel NULL pointer dereference, address: 0000000000000008 ... CPU: 31 PID: 44773 Comm: kworker/u130:1 Tainted: G E 6.0.0-5.dneg.x86_64 #1 Hardware name: Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Workqueue: events_unbound netfs_rreq_write_to_cache_work [netfs] RIP: 0010:cachefiles_prepare_write+0x28/0x90 [cachefiles] ... Call Trace: netfs_rreq_write_to_cache_work+0x11c/0x320 [netfs] process_one_work+0x217/0x3e0 worker_thread+0x4a/0x3b0 kthread+0xd6/0x100
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.17
|
6.0.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.1:rc8:*:*:*:*:*:*
|
— | — |