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

Published Oct 28, 2026
·
Updated

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

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

On a persistent ring buffer, rbmetasubbufidx() can return an index one sub-buffer too high. rbsetupidsmetapage() then fills subbufids[] shifted by one and leaves subbufids[0] NULL, which rbmapvma() dereferences when userspace maps tracepiperaw. rbupdatemetareader() writes two such indices into meta->buffers[], which rbcpumetavalid() 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 nrsubbufs integers that follow, aligned up to a sub-buffer. rbmetasubbufidx() 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 rbsubbufsfrommeta() rather than repeating it. rbrangebuffer() maps an index back to an address through the same helper, so the two directions can no longer disagree.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 28, 2026
CVE Published
via MITRE·10:35 AM
Data Sourced
via MITRE·10:35 AM
Description
Data Sourced
via NVD·11:17 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203