In the Linux kernel, the following vulnerability has been resolved: ring-buffer: Take cpus_read_lock() when changing the subbuf order A CPU coming online for the first time gets its per CPU buffer allocated by trace_rb_cpu_prepare(), which then adds it to buffer->cpumask. If that happens while ring_buffer_subbuf_order_set() is running, the CPU shows up after the allocation loop and the install loop walks it with an empty new_pages list, corrupting the buffer. Take cpus_read_lock() as ring_buffer_resize() does.
https://git.kernel.org/stable/c/453d0f47b174cac387af48d303c503b84f82212e
https://git.kernel.org/stable/c/2c5a807800b5f3349e16af591c9081a65fb4d23d
https://git.kernel.org/stable/c/0677adb0db3cae7489db0ca6b7556d97a7ac1bfa
https://git.kernel.org/stable/c/04162e64f014b90acc5745b28d194eaf596da168