Skip to contentSkip to conversation

CVE-2026-43272: ring-buffer: Fix possible dereference of uninitialized pointer

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

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: Fix possible dereference of uninitialized pointer

There is a pointer head_page in rb_meta_validate_events() which is not initialized at the beginning of a function. This pointer can be dereferenced if there is a failure during reader page validation. In this case the control is passed to "invalid" label where the pointer is dereferenced in a loop.

To fix the issue initialize orig_head and head_page before calling rb_validate_buffer.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

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

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

	Issue introduced in 6.12 with commit 5f3b6e839f3ceb8d6ef02231ba9b5aca71b8bf55 and fixed in 6.18.16 with commit bc77986f3cb7476637052edf2d87137fa39f153d
	Issue introduced in 6.12 with commit 5f3b6e839f3ceb8d6ef02231ba9b5aca71b8bf55 and fixed in 6.19.6 with commit d9942396845fef2369478c157b26738fe07142f6
	Issue introduced in 6.12 with commit 5f3b6e839f3ceb8d6ef02231ba9b5aca71b8bf55 and fixed in 7.0 with commit f1547779402c4cd67755c33616b7203baa88420b

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

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/bc77986f3cb7476637052edf2d87137fa39f153d
	https://git.kernel.org/stable/c/d9942396845fef2369478c157b26738fe07142f6
	https://git.kernel.org/stable/c/f1547779402c4cd67755c33616b7203baa88420b