{"id":"CVE-2026-99159","aliases":["CVE-2026-99159"],"related":[],"kind":"vulnerability","state":"published","title":"ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx()\n\nOn a persistent ring buffer, rb_meta_subbuf_idx() can return an index one\nsub-buffer too high.  rb_setup_ids_meta_page() then fills subbuf_ids[]\nshifted by one and leaves subbuf_ids[0] NULL, which __rb_map_vma()\ndereferences when userspace maps trace_pipe_raw.  rb_update_meta_reader()\nwrites two such indices into meta->buffers[], which rb_cpu_meta_valid()\nwould reject on the next boot, discarding the previous boot's trace.\n\nA CPU's sub-buffer array starts after its meta header and the nr_subbufs\nintegers that follow, aligned up to a sub-buffer.  rb_meta_subbuf_idx()\ninverts that calculation but skips only the integers, not the header, so\nits base is one sub-buffer low whenever the omitted header size crosses\nthe alignment boundary.\n\nInvert the calculation with rb_subbufs_from_meta() rather than repeating\nit.  rb_range_buffer() maps an index back to an address through the same\nhelper, so the two directions can no longer disagree.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx()\n\nOn a persistent ring buffer, rb_meta_subbuf_idx() can return an index one\nsub-buffer too high.  rb_setup_ids_meta_page() then fills subbuf_ids[]\nshifted by one and leaves subbuf_ids[0] NULL, which __rb_map_vma()\ndereferences when userspace maps trace_pipe_raw.  rb_update_meta_reader()\nwrites two such indices into meta->buffers[], which rb_cpu_meta_valid()\nwould reject on the next boot, discarding the previous boot's trace.\n\nA CPU's sub-buffer array starts after its meta header and the nr_subbufs\nintegers that follow, aligned up to a sub-buffer.  rb_meta_subbuf_idx()\ninverts that calculation but skips only the integers, not the header, so\nits base is one sub-buffer low whenever the omitted header size crosses\nthe alignment boundary.\n\nInvert the calculation with rb_subbufs_from_meta() rather than repeating\nit.  rb_range_buffer() maps an index back to an address through the same\nhelper, so the two directions can no longer disagree.","source":"cvelist"}],"published":"2026-10-28T10:35:12.520Z","modified":"2026-10-30T13:21:49.740Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b14d032973d4e6c36e025e96ea3437de53d072d9","fixed":"0c0cf2240bb5ca5704ea932ba66ee54f43173915","status":"affected"},{"type":"git","introduced":"b14d032973d4e6c36e025e96ea3437de53d072d9","fixed":"2f1248b728b56d583ea454fedf239550c49f7b18","status":"affected"},{"type":"git","introduced":"b14d032973d4e6c36e025e96ea3437de53d072d9","fixed":"7469b3585ef5f65840d467d2caa811a9098c84b9","status":"affected"},{"type":"git","introduced":"b14d032973d4e6c36e025e96ea3437de53d072d9","fixed":"25132363c723afc39aace8b098f547ab4a0ea759","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.115","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.59","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.13","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0c0cf2240bb5ca5704ea932ba66ee54f43173915","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f1248b728b56d583ea454fedf239550c49f7b18","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7469b3585ef5f65840d467d2caa811a9098c84b9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25132363c723afc39aace8b098f547ab4a0ea759","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99159","url":"https://www.cve.org/CVERecord?id=CVE-2026-99159","licence":"CVE Terms of Use","modified":"2026-10-30T12:42:25.874Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99159","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99159","licence":"Public domain","modified":"2026-10-30T13:21:49.740Z"}],"updatedAt":"2026-11-25T22:59:47.584Z","epss":{"score":0.00209,"percentile":0.11775,"date":"2026-12-01T12:00:22.000Z"}}