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 50C2B4921AC for ; Fri, 25 Sep 2026 10:28:19 +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=1790332100; cv=none; b=lXezYaCG7edTayc++0cRB9o4eECzJe1fhwumca0enuJefFJTV6OdiWnhD1W75d8SBO/b2Fk4GJkViiInDCQCWGEa2N1B87p7MmvYM+FYv5ElTSXTksa7AizMe77kiFAvBU1y5qh75lPWlH7F/FoyjZ+RewxTyc1+s+9hSDilfz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332100; c=relaxed/simple; bh=O07bSOxv2s4r8q3t5eOHQwQ0wDS4Lkh9+4h7UNcn2ys=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bb+qi642wO6NUjxLONlXSvbt+gXkCXnS6OGS6TX/rHpfV4czPJ/q2gPmO6BvVkOoYxIIrifCrZ2Sk1rFQ1iwfnoq7n6BNnN4jKeMrlwLeKiXoAqlTRyBhjGh9pFQGrvvDAm22XxkNu1EUUIqZe7cIxFI71y87LeMwsiu39Jhiig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yp8tESst; 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="Yp8tESst" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAC1D1F000FF; Fri, 25 Sep 2026 10:28:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332099; bh=p9WAzMAtv3+P9UKQR1Uxi83EQTvgkoPvLqzczKuswTY=; h=From:To:Cc:Subject:Date:Reply-To; b=Yp8tESstdec0QTJHRy7AYDJgRUR1LIq6mGfKjtHyzvRm3MkydwFXwiIpKs475OiTR NL+jVp1YAsJ4VTUSCAHaiJqsdyMmPj0Xkh0V1JPzbESlv+lUJUNVAmvW9yZ4xmXMAi feYKDV2o4t/59gzHgZoS864RsTmBe33LcOOiiwOM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97919: tracing: Take the reference before publishing the named histogram trigger Date: Fri, 25 Sep 2026 12:23:42 +0200 Message-ID: <2026092508-CVE-2026-97919-9068@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=3361; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VKQI0KkLoAE8LKAoLZ2ijzNWCE6nHWXADIsuL3R9tw8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvANWWIed+H3Cpz3FIubn50M9X6dNXDFVSeTFxiPMX AdOXV6/syOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmEjOJYUHzmf4JS85KbCh2 3KJlNadmnvChz5cYFixR3sJjlvNOKrcgTrJG7czS2LTOywA= 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: Take the reference before publishing the named histogram trigger event_hist_trigger_named_init() puts the trigger on the global named_triggers list and only then takes the reference on the trigger it shares its histogram with: data->ref++; save_named_trigger(data->named_data->name, data); ret = event_hist_trigger_init(data->named_data); if (ret < 0) { kfree(data->cmd_ops); data->cmd_ops = &trigger_hist_cmd; } return ret; event_hist_trigger_init() fails when alloc_hist_pad() cannot allocate, and nothing takes the trigger back off the list on the way out. event_hist_trigger_parse() frees it, and the next lookup by name reads the freed object: BUG: KASAN: slab-use-after-free in find_named_trigger+0xac/0xc0 Read of size 8 at addr ffff888009346860 by task init/1 find_named_trigger+0xac/0xc0 hist_register_trigger+0xc1/0xa00 event_hist_trigger_parse+0x3146/0x6af0 event_trigger_write+0xce/0x160 Freed by task 67: kfree+0x154/0x420 trigger_kthread_fn+0xfd/0x160 Do the reference first and publish once it has succeeded, so that nothing which can fail runs after the trigger becomes findable. The Linux kernel CVE team has assigned CVE-2026-97919 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 7ab0fc61ce73040f89b12d76a8279995ec283541 and fixed in 6.18.53 with commit 2ffaade3611bd9501bc0b9d5d19fc75bfee7a16b Issue introduced in 6.16 with commit 7ab0fc61ce73040f89b12d76a8279995ec283541 and fixed in 7.2.7 with commit 91c15cdda6033e2439f5975b938754152f3d6e38 Issue introduced in 6.16 with commit 7ab0fc61ce73040f89b12d76a8279995ec283541 and fixed in 7.3-rc3 with commit 0fe23b8eaba0d3372c66b7b31204408da0715edc Issue introduced in 6.6.94 with commit ac7ab38c271ba2edaeb0dc35b200ec13339776ae Issue introduced in 6.12.34 with commit e53a8dcd36b9ebc9229450eb594ae20e0b2ae0fd Issue introduced in 6.15.3 with commit 740dab2338f70d93aa8235db5a9541d846d7b21c 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-97919 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_hist.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/2ffaade3611bd9501bc0b9d5d19fc75bfee7a16b https://git.kernel.org/stable/c/91c15cdda6033e2439f5975b938754152f3d6e38 https://git.kernel.org/stable/c/0fe23b8eaba0d3372c66b7b31204408da0715edc