Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187567; b=tMqDK3kzx7eENZIZiZHAY7QvMWMiP39kMqMnm7EalKSlh0PF6oL6ie9oxl+L7NmtZufj gs49+tN91/VGrGCakypmHUCSdsX4jljBF3zhemJf/DzL5uufc0ZPo/tSlGkKVd7oo/NTr UK6izm35do/Fxk7kGkTFYeQG3He8FSKSOZmvhG+ZMiDj817oFUh/nILbMUm4a5QWQynxT B4NXmI24acA0ywxUWEgTkIiEVZN6dz49HNslh5PXKHIprjjr9/NbV3YjxnpNxoxR3Y+57 9A9ic2j4Q2anAkxOFZfu31pb4IiWkxXRW65K+EN06bo2HYq4cPEBiTP4/IulwZ+PtXw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187567; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=ccHwYcGWySbmWBHB+x5xIi9A62ilRpSetSnyUsi/ZkE=; b=Wr6WW7gMXI3a+/4BUPPvT1V6Bo0QoLNREfrOHv1Hya09JN/RyN7aKRYO0Y60pCvwxMgf JeNm8KjKEB5hLvYCOfRdyqXLAfuMPabBDXbeWoieCfEeUZew8xBoXIEkbk2nlPhJjcc4J djOHj8NAFAOiAise5WGyAomz9jSr4+593TYR0W5VZTVp7vq0ANKpsPxkOokBVgx4y5pcY Gxtj/MwUsSRyc3ptCZzGTlDnDXSjGtt1OxG8vt1brNby2Ney8ByM1W8Q/ygFtQsUNI16/ Jr2l0QLwpl5oaWm1NpuOWcz9sDrtSNuQf13V7tSQhH0n3j/9uV98zl21jQ6QV79Z87A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=nWwXgUkB; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61A61606A31A for ; Wed, 28 Oct 2026 11:39:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=nWwXgUkB Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C7691F01825; Wed, 28 Oct 2026 11:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187567; bh=ccHwYcGWySbmWBHB+x5xIi9A62ilRpSetSnyUsi/ZkE=; h=From:To:Cc:Subject:Date:Reply-To; b=nWwXgUkB8k96RaZXtJ6HT5ULkJbW94O/jPNq+PNih0QY3wkzfI6vNzBeVoOFG9p8H PhWlcbktkRC0wl2RT44PCvIaInKIyrNt0bQ49fxmsyBHsk+uhfPh+BLbhhaSnH+THN zX9ARQ5993wIDRWehsMtayorNm0tjg7h1VVyLGwE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99159: ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx() Date: Wed, 28 Oct 2026 11:35:46 +0100 Message-ID: <2026102805-CVE-2026-99159-31c1@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2961; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Rgg0rFEjKEEXh364FNvHJ8a0JKDryQ3tAzg8AJSQvoY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz9984DPFZ63yhqDA5YfiWueFXeLjePt0V9AF/y/tb zW7LU6v7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJqB9gWND8hVfl2ovnVVuE zIr/LV5ypkRl60KG+e7fnk1bst+j6vWqPbfnHHbdyajPkwcA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-99159 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit b14d032973d4e6c36e025e96ea3437de53d072d9 and fixed in 6.18.59 with commit 2f1248b728b56d583ea454fedf239550c49f7b18 Issue introduced in 6.12 with commit b14d032973d4e6c36e025e96ea3437de53d072d9 and fixed in 7.2.13 with commit 7469b3585ef5f65840d467d2caa811a9098c84b9 Issue introduced in 6.12 with commit b14d032973d4e6c36e025e96ea3437de53d072d9 and fixed in 7.3 with commit 25132363c723afc39aace8b098f547ab4a0ea759 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-99159 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/2f1248b728b56d583ea454fedf239550c49f7b18 https://git.kernel.org/stable/c/7469b3585ef5f65840d467d2caa811a9098c84b9 https://git.kernel.org/stable/c/25132363c723afc39aace8b098f547ab4a0ea759