In the Linux kernel, the following vulnerability has been resolved: ring-buffer: Do not show buffer_meta for CPUs without a buffer The per_cpu/cpuN/buffer_meta files are created for every possible CPU, but buffer->buffers[cpu] is only allocated once that CPU comes online. Reading the file of a CPU that never came online dereferences a NULL cpu_buffer in rbm_start(). Fail the open with -ENODEV when the CPU has no buffer, as the other per CPU ring buffer interfaces do.
https://git.kernel.org/stable/c/ae670c1a24fb5ffb167f26358cf47a5f0abbd670
https://git.kernel.org/stable/c/8512d0312cc0ea83ca4511b164c29a138bbb0c21
https://git.kernel.org/stable/c/3f23cae09a4677a3f7c163a68388512cb231ff22