В ядре Linux устранена следующая уязвимость: net/rds: обрабатывать очистку отправки нулевой копии до того, как сообщение будет поставлено в очередь. Отправка нулевой копии может завершиться неудачей после того, как страницы пользователя были закреплены, но до этого. сообщение прикрепляется к отправляющему сокету. Путь очистки в настоящее время предполагает состояние нулевой копии из rm->m_rs, поэтому сообщение, не поставленное в очередь, может быть очищено, как если бы оно принадлежало обычным страницам полезной нагрузки.
Однако владение нулевой копией на самом деле определяется наличием
op_mmp_znotifier, независимо от того, дошло ли сообщение до
очередь сокетов. Захватите op_mmp_znotifier заранее в rds_message_purge() и используйте его как
дискриминатор очистки. Если сообщение уже связано с
сокет, сохраните существующий путь завершения.
В противном случае отбросьте закрепленный учет страницы напрямую и отпустите уведомление перед размещением страницы полезной нагрузки. Это обеспечивает согласованность ранней очистки ошибок отправки с нулевой копией. жизненные правила без изменения обычного пути завершения в очереди.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/rds: handle zerocopy send cleanup before the message is queued A zerocopy send can fail after user pages have been pinned but before the message is attached to the sending socket. The purge path currently infers zerocopy state from rm->m_rs, so an unqueued message can be cleaned up as if it owned normal payload pages. However, zerocopy ownership is really determined by the presence of op_mmp_znotifier, regardless of whether the message has reached the socket queue. Capture op_mmp_znotifier up front in rds_message_purge() and use it as the cleanup discriminator. If the message is already associated with a socket, keep the existing completion path. Otherwise, drop the pinned page accounting directly and release the notifier before putting the payload pages. This keeps early send failure cleanup consistent with the zerocopy lifetime rules without changing the normal queued completion path.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.17
|
5.10.258
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.209
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.175
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.140
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.88
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |