Skip to contentSkip to conversation

CVE-2026-98057: ring-buffer: Add checking nr_subbufs to persistent ring buffer validation

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

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: Add checking nr_subbufs to persistent ring buffer validation

Sashiko reported that the code was using meta->nr_subbufs without making sure that it matched the nr_pages + 1 on data that was assuming the two were the same.

Add a check to the persistent ring buffer validation code to make sure that the saved nr_subbufs matches what we expect.

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

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

	Issue introduced in 6.12.16 with commit 3ec743d558f111d8999aea24577ba66c65ee2eeb and fixed in 6.12.111 with commit f0467190e6a9fc61e343c8064ef16aad513788c3
	Issue introduced in 6.14 with commit f5b95f1fa2ef3a03f49eeec658ba97e721412b32 and fixed in 7.2.7 with commit 69d502457e3f76142f7fcf6e2625e80e0ce8a60f
	Issue introduced in 6.14 with commit f5b95f1fa2ef3a03f49eeec658ba97e721412b32 and fixed in 7.3-rc2 with commit 6c001a62c34f13fe1c6a24304c289b387d9e697d
	Issue introduced in 6.13.4 with commit 0d547a6f5e8fad26ebc12f501d7d19fccdbad6bf

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

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/f0467190e6a9fc61e343c8064ef16aad513788c3
	https://git.kernel.org/stable/c/69d502457e3f76142f7fcf6e2625e80e0ce8a60f
	https://git.kernel.org/stable/c/6c001a62c34f13fe1c6a24304c289b387d9e697d