В ядре Linux устранена следующая уязвимость: signal: restructure the override_rlimit logic Prior to commit d64696905554 («Reimplement RLIMIT_SIGPENDING on top of ucounts») UCOUNT_RLIMIT_SIGPENDING rlimit не был реализован для класса сигналов. Однако теперь он применяется безоговорочно, даже если override_rlimit установлен. Это изменение поведения вызвало проблемы с производством.
Например, если предел достигнут и процесс получает сигнал SIGSEGV, sigqueue_alloc не может выделить необходимые ресурсы для доставки сигнала, предотвращая доставку сигнала с помощью siginfo. Это мешает процессу правильно определить адрес неисправности и обработать ошибку. С точки зрения пользовательского пространства, приложения не знают, что предел был достигнут и что siginfo фактически является 'corrupted'.
Это может привести к непредсказуемому поведению и сбоям, как мы наблюдали с приложениями Java. Исправьте это, передав override_rlimit в inc_rlimit_get_ucounts () и пропустите сравнение до максимума, если override_rlimit установлен. Это, по сути, восстанавливает прежнее поведение.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: signal: restore the override_rlimit logic Prior to commit d64696905554 ("Reimplement RLIMIT_SIGPENDING on top of ucounts") UCOUNT_RLIMIT_SIGPENDING rlimit was not enforced for a class of signals. However now it's enforced unconditionally, even if override_rlimit is set. This behavior change caused production issues. For example, if the limit is reached and a process receives a SIGSEGV signal, sigqueue_alloc fails to allocate the necessary resources for the signal delivery, preventing the signal from being delivered with siginfo. This prevents the process from correctly identifying the fault address and handling the error. From the user-space perspective, applications are unaware that the limit has been reached and that the siginfo is effectively 'corrupted'. This can lead to unpredictable behavior and crashes, as we observed with java applications. Fix this by passing override_rlimit into inc_rlimit_get_ucounts() and skip the comparison to max there if override_rlimit is set. This effectively restores the old behavior.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.14
|
6.1.117
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.61
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.11.8
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.12:rc6:*:*:*:*:*:*
|
— | — |