В ядре Linux устранена следующая уязвимость:
net: smc: исправлен дисбаланс времени жизни записи соединения в smc_rx_splice.
smc_rx_splice() передает страницы в splice_to_pipe(), прежде чем принять
ссылки, которые охватывают время существования каждой записи соединения. В
Путь RMB, поддерживаемый виртуальной машиной, splice_to_pipe() может удалять незавершенные записи через
smc_rx_spd_release(), а записи в очереди освобождаются позже через
обратный вызов буфера канала. Старый учет после сращивания также позволяет получить количество страниц виртуальной машины в очереди.
из смещения, измененного при построении дескриптора, и многостраничного
splice объединяет один sock_hold() с несколькими вызовами sock_put().
Возьмите ссылки на страницы и сокеты для каждой записи-кандидата перед
splice_to_pipe() и удалите соответствующее частное состояние, ссылку на страницу,
и ссылку на сокет из smc_rx_spd_release() для записей, которые никогда не
встать в очередь. Это исправляет дисбаланс счетчика ссылок, который может привести к переполнению страницы.
рефсчеты и запускают использование после освобождения.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: smc: fix splice entry lifetime imbalance in smc_rx_splice smc_rx_splice() passes pages to splice_to_pipe() before taking the references that cover the lifetime of each splice entry. In the VM-backed RMB path, splice_to_pipe() may drop unqueued entries through smc_rx_spd_release(), while queued entries are released later via the pipe buffer callback. The old post-splice accounting also derives the number of queued VM pages from an offset mutated while building the descriptor, and a multi-page splice pairs one sock_hold() with multiple sock_put() calls. Take the page and socket references for every candidate entry before splice_to_pipe(), and drop the matching private state, page reference, and socket reference from smc_rx_spd_release() for entries that never get queued. This fixes a refcount imbalance that can underflow page refcounts and trigger a use-after-free.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.18
|
5.10.266
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.18
|
5.15.217
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.18
|
6.1.183
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.18
|
6.6.152
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.18
|
6.12.104
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.18
|
6.18.45
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.18
|
7.1.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.18
|
7.2
|