Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0E7D494A1D for ; Fri, 25 Sep 2026 10:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332429; cv=none; b=R2qrsZ0O5d1GzFDdEsiW9XJHyyt859wkUO7QDycMEOB4F5eZ0brRnfQpwDrBqGRVSP157/ahCMjBM7p3VQAjUunYaHjzlipI0xG9x4aeEghFnyyQ5Rx8NL6FoNCgTTCvLWFOzE9t2BQU9Bdp2JVQegzjR2EXdunRN2Ahz+hUxN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332429; c=relaxed/simple; bh=gkCOM1q671Z84njlXjptZPXda6mokf1rk39NB4lcjew=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EjWfoxe4vGyXmS5wxekMxlUxa3u54kxlmU9hXdlj+VIV9AGnfv9j+Mw3DcmOhgTLDHeXYUAK5daFMd8AUBFJq6BCkjpg6BsGkmxXnXgArfZZDm7a+yjXVgUUyT9U955LmLhGOEAXCEJHxjWQ92tfOpjo369+ORLdx1GIWQEruJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=np6fg2gq; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="np6fg2gq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B1CD1F000FF; Fri, 25 Sep 2026 10:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332428; bh=iCWWVbD0A+fBnaqRCTLKRBg9PaserI9npGZCJql0y/w=; h=From:To:Cc:Subject:Date:Reply-To; b=np6fg2gq6VhP0uXzymxveoWCRFkd7QP4rlzmyGg+cucPgpscq1SIG9V8i+3HLuqZq L3PjaSI1w2f6jAP7vwf601tTvvOSjhvQEdXIshMEQg23HrsM/bwrUT7mddh3alqbjV EMi8CAesMZFtnPCO1rlT0q3gJ5pqotXZwCVlabaU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98032: tracing: Fix subbuf resize races with trace_pipe_raw readers Date: Fri, 25 Sep 2026 12:25:34 +0200 Message-ID: <2026092529-CVE-2026-98032-5318@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2536; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kzw0Ce6xwFDZe0Gb25fFWzg5DUIMCdIKs4cdVa+gEUI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvFM7fjMuq2WVu/S0787MR08ZTp/6uGzBhxN2v96w2 Wza1jv9Q0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5Nxihvk+a8J2eilPuruF PSXdeIt5/QltQ2OGBUunhDRfclCT8VykfCmFhzuycI8sIwA= 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: tracing: Fix subbuf resize races with trace_pipe_raw readers Concurrent subbuffer resizes may crash trace_pipe_raw readers or leak uninitialized memory to userspace due to stale size values. Modify ring_buffer_alloc_read_page() to handle the resizing of an existing buffer_data_read_page if necessary and add a new ring_buffer_read_page_size(). This new function enables ring-buffer buffer_data_read_page users to not call the racy ring_buffer_subbuf_size_get(). This makes the spare_size member of ftrace_buffer_info redundant. Finally, handle buffer_data_read_page/reader_page order discrepancy in ring_buffer_read_page(). On a mismatch simply copy manually the data to the buffer_data_read_page. The Linux kernel CVE team has assigned CVE-2026-98032 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit bce761d757452ba5eb77e11fecc37a04b67494e7 and fixed in 7.2.7 with commit 75b37b8369778b69ce9738d1c97685a1615cb252 Issue introduced in 6.8 with commit bce761d757452ba5eb77e11fecc37a04b67494e7 and fixed in 7.3-rc2 with commit dae8dda341d2d9034a90d59e8a7d502e1263813f 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-98032 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: include/linux/ring_buffer.h kernel/trace/ring_buffer.c kernel/trace/ring_buffer_benchmark.c kernel/trace/trace.c kernel/trace/trace.h 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/75b37b8369778b69ce9738d1c97685a1615cb252 https://git.kernel.org/stable/c/dae8dda341d2d9034a90d59e8a7d502e1263813f