Skip to contentSkip to conversation

CVE-2026-89500: ring-buffer: Make cpu_buffer::free_page a buffer_data_read_page

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ring-buffer: Make cpu_buffer::free_page a buffer_data_read_page

Discarding a cached reader page after a concurrent ring buffer resize uses the new global subbuf_order for the free_pages() call. This mismatched order may crashes the kernel or leaks memory because the cached page was allocated under the old size.

Save the actual free_page order alongside the page address to ensure we always refer to the correct value and do not rely on the potentially stalled cpu_buffer->subbuf_order value. The simplest is to make free_page a buffer_data_read_page which already covers exactly what we
need: a page address and a page order.

The Linux kernel CVE team has assigned CVE-2026-89500 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.8 with commit 8e7b58c27b3c567316a51079b375b846f9223bba and fixed in 6.18.51 with commit a1dabe68fb53730bc0be60c5dbfd3f4c560084e7
	Issue introduced in 6.8 with commit 8e7b58c27b3c567316a51079b375b846f9223bba and fixed in 7.2.4 with commit d787d509bdf6c88c85e095247daf7456cb7fb772
	Issue introduced in 6.8 with commit 8e7b58c27b3c567316a51079b375b846f9223bba and fixed in 7.3-rc1 with commit 7a1fb95de5404134f8758c1295ce88986bdf117c

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-89500

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/a1dabe68fb53730bc0be60c5dbfd3f4c560084e7
	https://git.kernel.org/stable/c/d787d509bdf6c88c85e095247daf7456cb7fb772
	https://git.kernel.org/stable/c/7a1fb95de5404134f8758c1295ce88986bdf117c