CVE-2026-99159

Source
https://cve.org/CVERecord?id=CVE-2026-99159
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99159.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99159
Downstream
Published
2026-10-28T10:35:12Z
Modified
2026-11-01T02:31:04Z
Summary
ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99159.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b14d032973d4e6c36e025e96ea3437de53d072d9
Fixed
0c0cf2240bb5ca5704ea932ba66ee54f43173915
Fixed
2f1248b728b56d583ea454fedf239550c49f7b18
Fixed
7469b3585ef5f65840d467d2caa811a9098c84b9
Fixed
25132363c723afc39aace8b098f547ab4a0ea759

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99159.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.115
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.59
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.13

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99159.json"