Ad

CVE-2026-99350

NONE EPSS 0.22%
Обновлено 23 ноября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: rxrpc: исправлено обновление call->tx_pending без удержания блокировки Currently, rxrpc_send_data() обновляет call->tx_pending непосредственно перед его возвращением - но он не будет удерживать call->user_mutex, когда он делает это, если ожидание было прервано сигналом. Это позволило бы проводить параллельную гонку sendmsg(). Кроме того, оба абонента rxrpc_send_data() вызывают его с удерживаемым замком, а затем он возвращает индикацию через список параметров, чтобы сказать, уронил ли он замок или нет - после чего абоненты просто сбрасывают замок, если он все еще удерживается.

Исправьте это: (1) Moving выпуск call->user_mutex вниз в rxrpc_send_data() и избавиться от параметра индикатора. Это позволяет увидеть, где находится замок. (2) После ожидания, если попытка повторного приобретения мьютекса прервана, просто вернитесь прямо туда, а не отправляйтесь в out_unlock (3) Restricting переменной txb внутрь буферной петли и оставляйте набор ->tx_pending, пока мы не оставим буфер в очереди. Обратите внимание, что есть небольшое изменение в поведении в том, что отказ wait_for_space теперь не проверяет завершение, потому что он не удерживает вызов user_mutex.

Звонящий, однако, должен повторно выдать отправку и забрать любую ошибку при второй попытке.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix update of call->tx_pending without holding lock Currently, rxrpc_send_data() updates call->tx_pending just before it returns - but it won't be holding the call->user_mutex when it does this if a wait was interrupted by a signal. This would allow a parallel sendmsg() to race. Further, both the callers of rxrpc_send_data() call it with the lock held, and then it returns an indication through the parameter list to say whether it has dropped the lock or not - after which the callers both just drop the lock if it's still held. Fix this by: (1) Moving the release of call->user_mutex down into rxrpc_send_data() and get rid of the indicator parameter. This makes it easier to see where the lock is held. (2) After waiting, if the attempt to reacquire the mutex is interrupted, just return directly there rather than going to out_unlock (3) Restricting the txb variable to inside the buffering loop and leaving ->tx_pending set until we've queued the buffer. Note that there's a slight change in behaviour in that wait_for_space failure now doesn't check for completion because it doesn't hold the call user_mutex. The caller, however, should re-issue the send and pick up any error at a second attempt.