В ядре Linux устранена следующая уязвимость:
трассировка/удаленные функции: исправлена утечка в пути ошибки трассировки_remote_alloc_buffer(). Если выделение страницы не удалось выполнить в функции трассировки_remote_alloc_buffer(), desc->nr_cpus
еще не увеличивается для текущего процессора. В результате в случае ошибки
наполовину выделенный rb_desc не будет освобожден в функции трассировки_remote_free_buffer().
Увеличьте desc->nr_cpus, как только будет выполнено первое выделение для текущего Процессор преуспел.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path If page allocation fails in trace_remote_alloc_buffer(), desc->nr_cpus is not yet incremented for the current CPU. As a consequence, on error, half-allocated rb_desc will not be freed in trace_remote_free_buffer(). Increment desc->nr_cpus as soon as the first allocation for the current CPU has succeeded.