CVE-2026-99160: ring-buffer: Do not show buffer_meta for CPUs without a buffer
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-99160 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit 950032ffcee7a43c960951940059afc5a2bdbcbc and fixed in 6.18.59 with commit 8512d0312cc0ea83ca4511b164c29a138bbb0c21 Issue introduced in 6.12 with commit 950032ffcee7a43c960951940059afc5a2bdbcbc and fixed in 7.2.13 with commit ae670c1a24fb5ffb167f26358cf47a5f0abbd670 Issue introduced in 6.12 with commit 950032ffcee7a43c960951940059afc5a2bdbcbc and fixed in 7.3 with commit 3f23cae09a4677a3f7c163a68388512cb231ff22
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99160
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
kernel/trace/ring_buffer.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/8512d0312cc0ea83ca4511b164c29a138bbb0c21 https://git.kernel.org/stable/c/ae670c1a24fb5ffb167f26358cf47a5f0abbd670 https://git.kernel.org/stable/c/3f23cae09a4677a3f7c163a68388512cb231ff22