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.
https://git.kernel.org/stable/c/ec082d0b978b5fb4c11205ccce63587ac94c74e1
https://git.kernel.org/stable/c/81a7b7ddb07efdd8cf30eac6def18b9289b8de1e