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 E714F3C9EF1 for ; Mon, 10 Aug 2026 12:04:26 +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=1786363468; cv=none; b=fT5tCAXDZZjqL5dNPhpYH14DYSzXedy9qzWvUy0QBwvuYXK5mahMTte5+2Pye4V7svC7KJlwldBGy8mDxHr6yoMVqbefLcLZnEEz2vRmq82Ip8lEp0dRjoYcCsdXO5fxpxBELBTWGFJ6GYzCUxwUI6YfUdH7GKbvYCj+kgUwR8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363468; c=relaxed/simple; bh=LRut4tMNIZHot2AN6XskywRwCZ+afHvImJ1P218cnIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cu3Ss8MQqirTodvhlkhwNWtKknCufLbWttV7QDmVxY/55ulzts8m7IbhvkDYMgKAqZM0NWGQzC4pOPeGTSfqQrEFygz7mZ6zh9NmI4o8VCiFoCm5PxCwGG/ddkZi3uFQGFtN4eCJNn6/shYazbL3owH5NSU3/kAKWHqq7buS8Ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B0hObUBY; 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="B0hObUBY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 104731F000E9; Mon, 10 Aug 2026 12:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363466; bh=yKHBluo5aU8SOFMc9PWZrA8nD+N+MHLaIZiBXlG8bU8=; h=From:To:Cc:Subject:Date:Reply-To; b=B0hObUBYQrJu2bp3MXy21Dato+frV3Xj3omL8tp3znqCpsBU47LtobMXT0eZAc/Kd qQOPKJHlWgovRhWfcTgfe2E/EcpnqRdKono7UThQTJsnYUjWt4SZw/4mXtv6HKGEwJ zdmxkRQIGqAky/5KntSLohTDo+xmBmebW+D9t9qI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68174: tracing: Fix union collision of module and refcnt for dynamic events Date: Mon, 10 Aug 2026 13:58:11 +0200 Message-ID: <2026081006-CVE-2026-68174-3865@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=3057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QP3IchFtED+DbZ5lsNd9x/CaflwFXxlKnd8mwvhX41k=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVeyZ9lr7+d9oq3SXGi+vSfgh9VXl35GK693qJnJzml 80ve7cv6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ8K5lmB8tucVlQe4XRctr O0Uy/S8o8Fu4nmJYsGi3crUGS8WF+42WHgGrrosr33qqAwA= 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 union collision of module and refcnt for dynamic events In 'struct trace_event_call', the 'module' pointer and the 'refcnt' atomic variable share the same memory space in a union. For dynamic events, the union member is 'refcnt', which acts as an active reference counter. When a dynamic event (such as kprobe, uprobe, fprobe, eprobe, or wprobe) has a non-zero reference count (e.g. due to active event triggers or perf attachments), its 'call->module' evaluates to a small non-zero integer instead of NULL. When filtering or setting events for a specific module (e.g., writing ':mod:' to 'set_event'), the code in '__ftrace_set_clr_event_nolock()' and 'update_event_fields()' reads 'call->module' directly without checking whether the event is dynamic. This causes the kernel to treat the small integer (refcnt) as a 'struct module' pointer, leading to a NULL/invalid pointer dereference (Oops) when dereferencing the module name. Fix this by ensuring that the 'TRACE_EVENT_FL_DYNAMIC' flag is checked before treating 'call->module' as a valid pointer in these code paths. The Linux kernel CVE team has assigned CVE-2026-68174 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 4c86bc531e60900053384867c082675bba82c29f and fixed in 6.18.42 with commit b6a4575f22925da7e6aa00171e9fc0e5029c0bc9 Issue introduced in 6.14 with commit 4c86bc531e60900053384867c082675bba82c29f and fixed in 7.1.6 with commit 43a23dfe0024afd3d2b0232e987d0292919a9b24 Issue introduced in 6.14 with commit 4c86bc531e60900053384867c082675bba82c29f and fixed in 7.2-rc5 with commit b4eb07bde606c2096b24252be589e735eff6d413 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-68174 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/trace_events.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/b6a4575f22925da7e6aa00171e9fc0e5029c0bc9 https://git.kernel.org/stable/c/43a23dfe0024afd3d2b0232e987d0292919a9b24 https://git.kernel.org/stable/c/b4eb07bde606c2096b24252be589e735eff6d413