CVE-2026-100059: ring-buffer: Take cpus_read_lock() when changing the subbuf order
In the Linux kernel, the following vulnerability has been resolved:
ring-buffer: Take cpusreadlock() when changing the subbuf order
A CPU coming online for the first time gets its per CPU buffer allocated by tracerbcpuprepare(), which then adds it to buffer->cpumask. If that happens while ringbuffersubbuforderset() is running, the CPU shows up after the allocation loop and the install loop walks it with an empty newpages list, corrupting the buffer.
Take cpusreadlock() as ringbufferresize() does.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
Take cpus_read_lock() when changing the subbuf order, as ring_buffer_resize() does.
Event History
Frequently Asked Questions
Under what conditions can this race occur?
It can occur when a CPU comes online for the first time while ring_buffer_subbuf_order_set() is changing the ring-buffer sub-buffer order. The CPU's per-CPU buffer may be added to buffer->cpumask after the resize allocation loop, causing the later install loop to process that CPU without newly allocated pages.
What is the resulting impact on the ring buffer?
The install loop can encounter a CPU with an empty new_pages list and corrupt the buffer.
What mitigation is indicated by the fix?
The fix takes cpus_read_lock() while changing the sub-buffer order, preventing CPU online activity from racing with the operation. If patching cannot be applied immediately, avoid changing the ring-buffer sub-buffer order while CPUs may be brought online.