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=1793187564; b=4p5mEVIdp4McC3dsrKSUx6kxcUSNJTEF2f1CHLRZ5SffGf/PhKAxMlXvr2JQSPdqoknz b8SnequxRtkI2H0AZEg30NUDZltmslVw3Iivy22pmaHnwsg4SKlg7U7L0giSCFSN0Xq65 d5bzT8u17xi0xHBQcOkwOeDUgPCE/OE7LZIlZXbxvPmIc4Nxu2+8DBLakTWBqvnVPCK+H n+HfPvxuFoJQeVgh9GQMHGZZk1+ugJf9tokk9h8UD3nFErdSXnToFU2eA5xgRZoU/8nv2 xfl+SDL9yuoZYufCcGHqi2GbkyntYKBd2lYKCgfY3Ag9FGXEYPav0arAR1v2FFQid5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187564; 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=w1P51LYZG5BNW/T4eR6WZqrmUycWz+Cbox4kiFjXD5A=; b=N6YI71xfpuIglUHD9sB/SjCbonhiu7zpS/bsk9/y0zE2k+2vVbxnTciUi0vDgPZ2R8Dl g1E+kTl6G92f1C9e3k/vc3wlRu2crXjpmii1EIVz6YhnlMNi8pT95u4upmFMEI2Yk5C2d qctJdDlJSv6Ei6Z78/vyBmRuU+nnWoXPEvCbCQhKPjx+vBwVZJ89BGbXgQMKttu9+00UK izxsaXoNceLnrW9sNWJHuEcle1NVsUyTDF7YbF7q62kmrSlDcKtDYIZBiXSlMMQWrrtr2 AWvW0J0gRse7h25QZcbFWtMVfN3G7+xHFpR+ww+B78ldXA7eTtoivbApWZolKlKARvA== 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="PZ/vd+2l"; 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 C5BB8606A31E for ; Wed, 28 Oct 2026 11:39:23 +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=PZ/vd+2l Received: by smtp.kernel.org (Postfix) with ESMTPSA id 097861F031E0; Wed, 28 Oct 2026 11:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187563; bh=w1P51LYZG5BNW/T4eR6WZqrmUycWz+Cbox4kiFjXD5A=; h=From:To:Cc:Subject:Date:Reply-To; b=PZ/vd+2la8dQq0aS0S2qXb7dhmaSwwmUki1KE4nX5IPDVa1wqupCvbCmeRu7sc0E2 u8IgcUAtSVO4VgMkmfRLDMJarACXj1p2YMYYfiPDlPOkpUmc8SJFeBcOSvMkAwZ04/ 8lC2D19Z8mAMWTQwloaD34Kqx2TvSCTuk/5KReEI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99158: ring-buffer: Fix false warning in ring_buffer_map_get_reader() Date: Wed, 28 Oct 2026 11:35:45 +0100 Message-ID: <2026102805-CVE-2026-99158-9107@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=2801; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1Dn+0SCmeiDLdJogjELcXD4iOkaUspiHLWIOIPgnI4A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz99UMFslupbljfKex0l/7n7Nbl8Uc6X9zh0Br4UdD +PudH7Z0BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATySlkmGf+wNOjtZ9xTf1m 0eOFFxLesZdebWaYX5jBe3yx/FG3nVO9TMrWqN/TdP0ZAQA= 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 false warning in ring_buffer_map_get_reader() The mmap reader can warn when it catches up with a writer that is still committing events. rb_get_reader_page() returns NULL in this case, but ring_buffer_map_get_reader() treats that result as an error. The initial rb_per_cpu_empty() check filters out an empty buffer, but it does not guarantee that the next reader page has committed data. Writers do not take reader_lock and can advance commit_page before publishing the committed length on the new page. rb_get_reader_page() can swap to that page, catch up with the writer and return NULL. Handle NULL through the existing no-data exit without warning. Remove the caller's reader_page == commit_page check as well, since the reader-page helper already handles that case. The existing metadata update and return path remain in place. The Linux kernel CVE team has assigned CVE-2026-99158 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 117c39200d9d760cbd5944bb89efb7b9c51965aa and fixed in 6.18.59 with commit 029770f5badedc0f0ff85fc45e24785cbbee4a67 Issue introduced in 6.10 with commit 117c39200d9d760cbd5944bb89efb7b9c51965aa and fixed in 7.2.13 with commit 68e6ab180cfb6dfa79652f41ed7899a6d4cf5438 Issue introduced in 6.10 with commit 117c39200d9d760cbd5944bb89efb7b9c51965aa and fixed in 7.3 with commit 89bab1dba8a0167ef0d819e0f55b6bafa038e87f 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-99158 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/029770f5badedc0f0ff85fc45e24785cbbee4a67 https://git.kernel.org/stable/c/68e6ab180cfb6dfa79652f41ed7899a6d4cf5438 https://git.kernel.org/stable/c/89bab1dba8a0167ef0d819e0f55b6bafa038e87f