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 7B7993CAA38 for ; Mon, 10 Aug 2026 12:04:21 +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=1786363462; cv=none; b=dTBzqcDyzZ3rEXL52tW5vTanGJgabFSo6v5QloVsSm/mMgH0gWE21mUOreJqxkRRl+96zV4yh86eJRkfDDYI4UTu864RF1Np6kTDlGr9a7SywS+tRaaqDu1lIvmAzLzd/sx77lLU8y/ARQjYis7UI0t2gJxK3yMjWdAvt+0ZspA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363462; c=relaxed/simple; bh=khey/zKZ5cDzR9fpYSB9Am37ApNzwqW2vXpPvnPc4PM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CgNyGPz7M2KC+ROsBk670j6uEcJm4/blQFWf1wrFxAx+2t4sx20gmaC1m+DHVnoZ/QrhlcJ/0dxwOC5trlJrTo1yYVIjgjtY1jt19G8poNAAm6bes+iRODMMy1SsE7oH7hJAy+XsvpA32Lyqbm0yPTl5kwuvqt3JuEc9J5IgpiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ENxI8Old; 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="ENxI8Old" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00B5E1F000E9; Mon, 10 Aug 2026 12:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363461; bh=vmFc4qwfaeW/4wApNPv0TpJ8vgZeyhTM+UyDQHGs3Hk=; h=From:To:Cc:Subject:Date:Reply-To; b=ENxI8OldTvv+Jzbvv2twjrJVk4hQQJZ8YxH2n3mtinRYSmNDZTqnsDy9YvdaI2qi4 sXdWFc+0oXUl90HPRBGJH9W4VbZ4DdwvVS4zkcJ6mcwDbfDC3VpKFQFon0UkaYY+tS /yRFW7aOr/Q3JtLbeVrSSr6E3lOvY1Skh08TMd4I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68146: ftrace: Add global mutex to serialize trace_parser access Date: Mon, 10 Aug 2026 13:57:43 +0200 Message-ID: <2026081001-CVE-2026-68146-f1e8@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=3320; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8efehF/UtTbxfqOUcpWH1ATRM+sg2tWEolO1zjk8Gps=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe3obbxksNSo6IOiV0fa0tPjQ+4XqfN92bGiyeiQfx SywmN+hI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYycSfDghMfNtbZe/IGv9lj /EBot6fSm7yehQzzM/ZbqJleMIm0zt85Z7sKt1mo+LxGAA== 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: ftrace: Add global mutex to serialize trace_parser access In ftrace, the trace_parser structure is allocated and initialized when a trace file is opened, and is subsequently used across write and release handlers to parse user input. The affected handler paths and their specific functions are: - Open paths: ftrace_regex_open(), ftrace_graph_open() - Write paths: ftrace_regex_write(), ftrace_graph_write() - Release paths: ftrace_regex_release(), ftrace_graph_release() If userspace opens a trace file descriptor and shares it across multiple threads, concurrent write calls will race on the parser's internal state, specifically the 'idx', 'cont', and 'buffer' fields, leading to corrupted input or undefined behavior. Fix this by adding a global mutex, parser_lock, to serialize all access to trace_parser across write and release paths, preventing concurrent corruption of parser state. The Linux kernel CVE team has assigned CVE-2026-68146 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.32 with commit 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 and fixed in 6.6.148 with commit 3d0dd138a06c782f8b755cd1b6f9909494514ce1 Issue introduced in 2.6.32 with commit 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 and fixed in 6.12.101 with commit 90be137813e1a5bdfd671e40fe28004fb959d3e4 Issue introduced in 2.6.32 with commit 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 and fixed in 6.18.42 with commit 65bf73bee1a4f3722208ae46afc0fa5de76b9a0a Issue introduced in 2.6.32 with commit 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 and fixed in 7.1.6 with commit e807c9193d9493c7a0d039158ebb955050a76df1 Issue introduced in 2.6.32 with commit 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 and fixed in 7.2-rc5 with commit 7720b63bcef3f54c7fe288774b720a227d54a306 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-68146 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/ftrace.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/3d0dd138a06c782f8b755cd1b6f9909494514ce1 https://git.kernel.org/stable/c/90be137813e1a5bdfd671e40fe28004fb959d3e4 https://git.kernel.org/stable/c/65bf73bee1a4f3722208ae46afc0fa5de76b9a0a https://git.kernel.org/stable/c/e807c9193d9493c7a0d039158ebb955050a76df1 https://git.kernel.org/stable/c/7720b63bcef3f54c7fe288774b720a227d54a306