CVE-2026-99159

ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx()

Published Oct 28, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx()

On a persistent ring buffer, rb_meta_subbuf_idx() can return an index one
sub-buffer too high. rb_setup_ids_meta_page() then fills subbuf_ids[]
shifted by one and leaves subbuf_ids[0] NULL, which __rb_map_vma()
dereferences when userspace maps trace_pipe_raw. rb_update_meta_reader()
writes two such indices into meta->buffers[], which rb_cpu_meta_valid()
would reject on the next boot, discarding the previous boot's trace.

A CPU's sub-buffer array starts after its meta header and the nr_subbufs
integers that follow, aligned up to a sub-buffer. rb_meta_subbuf_idx()
inverts that calculation but skips only the integers, not the header, so
its base is one sub-buffer low whenever the omitted header size crosses
the alignment boundary.

Invert the calculation with rb_subbufs_from_meta() rather than repeating
it. rb_range_buffer() maps an index back to an address through the same
helper, so the two directions can no longer disagree.

Analysis

AI-generated

Technical impact

The vulnerability in the Linux kernel lies in the calculation of sub-buffer array indices for persistent ring buffers. The function that determines the index can return a value one too high, causing an off‑by‑one error when initializing the sub-buffer identifiers. This leads to a NULL pointer in the first entry of the array. When a user process maps the trace_pipe_raw channel, the kernel dereferences this NULL entry, triggering a memory fault. The misalignment also corrupts internal metadata, so that on the next system boot the kernel rejects incomplete trace data and abandons the previous trace, potentially causing additional instability. The overall impact includes kernel panic, data loss, and denial of service for systems relying on kernel tracing.

Affected Systems

The vulnerability is present in Linux kernel versions that predate the commit correcting rb_meta_subbuf_idx. Any distribution shipping such kernels, with persistent ring buffers enabled, may be impacted.

Risk and Exploitability

The CVSS score of 4.4 indicates low to moderate severity, and the EPSS score of <1% suggests a very low current exploitation probability. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is a local user process that has permission to map trace_pipe_raw or otherwise enable persistent ring buffers; the attacker would trigger the fault by performing such a mapping. No publicly demonstrated exploits exist, but the defect is straightforward to trigger if the attacker can invoke the trace subsystem. Consequently, systems that require high uptime or rely heavily on trace data integrity should treat this as a moderate risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that incorporates the rb_meta_subbuf_idx fix, or apply the relevant commit from the upstream repository and rebuild the kernel.
  • Configure the system so that persistent ring buffers and trace_pipe_raw are enabled only for trusted users or roles; disable trace mapping for untrusted processes if not required.
  • After applying the patch or rebuilding the kernel, reboot the system to discard stale trace metadata and ensure the corrected logic takes effect.

Generated by OpenCVE AI on November 2, 2026 at 04:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
History
Type Values Removed Values Added
Weaknesses CWE-129
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-129
CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx() On a persistent ring buffer, rb_meta_subbuf_idx() can return an index one sub-buffer too high. rb_setup_ids_meta_page() then fills subbuf_ids[] shifted by one and leaves subbuf_ids[0] NULL, which __rb_map_vma() dereferences when userspace maps trace_pipe_raw. rb_update_meta_reader() writes two such indices into meta->buffers[], which rb_cpu_meta_valid() would reject on the next boot, discarding the previous boot's trace. A CPU's sub-buffer array starts after its meta header and the nr_subbufs integers that follow, aligned up to a sub-buffer. rb_meta_subbuf_idx() inverts that calculation but skips only the integers, not the header, so its base is one sub-buffer low whenever the omitted header size crosses the alignment boundary. Invert the calculation with rb_subbufs_from_meta() rather than repeating it. rb_range_buffer() maps an index back to an address through the same helper, so the two directions can no longer disagree.
Title ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:42 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 28, 2026, 11:17 AM
Modified
Oct 30, 2026, 1:21 PM
Severity
Moderate
Public date
Oct 28, 2026, 10:35 AM