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 4F8DA3D333C for ; Fri, 28 Aug 2026 06:52:01 +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=1787899922; cv=none; b=WMI3fxCfPCIJQRRKrIaR4aIA1w9Mc5n0Ql31GAInSwG6vuS569kAxotO1y53ymejOs13Ab3W+I5ybMlk6neJJSCK4s22aIi62iNMTfmgNXxXw0SrhNLM/3u0gFwN2TRxghqEzv4FXyagJHA2IgM3UZBmpXMy0b9QOSuJGdNFVi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899922; c=relaxed/simple; bh=GP/bkhdN1wHuVkZm6WUWLVoIUKNJZ8/2jWrkREs9Uf8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yif+TU5pNUxqBlfe1r2ffudI1GxTY9IUtgTHJ9M+K1uq17IdQxJSrKmR6BHpiPmD8uBVXK8E4N1TNNJGyp83y1eqjeqsmZ6XMGWdZK4gaRnj5WvI7Z26BJ6SaHP6rC9hZ90EUje+AVacxK2dkXOVlR70+EDuT5SktaVbg+tXnTM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RAxt6yDT; 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="RAxt6yDT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A42EC1F000E9; Fri, 28 Aug 2026 06:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899921; bh=TRka2rtn+NuBejCANi3x4CaNzpddVTdBl4V0utJ7ZkE=; h=From:To:Cc:Subject:Date:Reply-To; b=RAxt6yDTytLz8CVd/mRQMmBS54cuWKJs8qpOQeN7EOZoJfIF1Zcc28saoW0NHFFU8 RYI7gRyFuPZyPZs9NnF5h5KyK8PB9UM9ynE3DrxGij3nSuRbS9JqYPhmqJTx/xU79f 6RjJ1ImgrdzVSrjVSA+unC89ikN02lhr5dTf5KqI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80661: ufs: core: tracing: Do not dereference pointers in TP_printk() Date: Fri, 28 Aug 2026 08:49:38 +0200 Message-ID: <2026082846-CVE-2026-80661-52f4@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=3124; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5p9vmoOUFf+W5L0HikVj3bEcygUx/O9/LP+sGL/A3wU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9f0a5TYt6hDWmnYoU+UUv8eev3ONsqSu3jh9Vejpn VV2ab6LOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiBR4M86vKsxcb5mT75MQY HHhyPnjCVzXeSob5rse3GcgW6797kdj6n2dTiPWDf1sEAQ== 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: ufs: core: tracing: Do not dereference pointers in TP_printk() The trace events in drivers/ufs/core/ufs_trace.h were converted to take a pointer to the hba structure as an argument for the tracepoint and then in TP_printk() the printing of the dev_name from the ring buffer was converted to using the dev dereferenced pointer from the hba saved pointer. This is not allowed as the TP_printk() is executed at the time the trace event is read from /sys/kernel/tracing/trace file. That can happen literally, seconds, minutes, hours, weeks, days, or even months later! There is no guarantee that the hba pointer will still exist by the time it is dereferenced when the "trace" file is read. Instead, save the device name from the hba pointer at the time the tracepoint is called and place it into the ring buffer event. Then the TP_printk() can read the name directly from the ring buffer and remove the possibility that it will read a freed pointer and crash the kernel. This was detected when testing the trace event code that looks for TP_printk() parameters doing illegal derferences[1] [1] https://lore.kernel.org/all/20260630184836.74d477b6@gandalf.local.home/ The Linux kernel CVE team has assigned CVE-2026-80661 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 583e518e7100362e3937b583976f9470c39d1db2 and fixed in 6.18.40 with commit e497fef9ad7e913f52de6f97e818f56915e96164 Issue introduced in 6.15 with commit 583e518e7100362e3937b583976f9470c39d1db2 and fixed in 7.1.5 with commit 2510434307a224078302019e52ab3c863fbe87fb Issue introduced in 6.15 with commit 583e518e7100362e3937b583976f9470c39d1db2 and fixed in 7.2 with commit 535fcf4b8a261fbb8cc4f91e4597343c135a90f2 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-80661 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: drivers/ufs/core/ufs_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/e497fef9ad7e913f52de6f97e818f56915e96164 https://git.kernel.org/stable/c/2510434307a224078302019e52ab3c863fbe87fb https://git.kernel.org/stable/c/535fcf4b8a261fbb8cc4f91e4597343c135a90f2