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 6FE8F5038E6 for ; Thu, 17 Sep 2026 16:23:22 +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=1789662203; cv=none; b=gheJIUSthnTeJb2BgK8OwhlgkSidKUrJINEhEGGr2lH8s6FOcyl2JWFK5N6kQQoutJNbfzPdYNFKHf17TVITzj8NsM+1ot/FuEu+BubMGpVXCCs9wxBE6Kkq2wjIFmn39xCFe029wPaxs+SNouuqkAtZUtGGKaT6Q3gSTECae4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662203; c=relaxed/simple; bh=h6/Yv5na87fVLNv/GZQD2CfQQmjTdmS2R9T4poFwuTw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TlQO0d/uka68bi/vNpYyA5awnD7RRFzhWv4h1d2iAkbFGun8LE6m7LSyeBj1KL+yE2MMSY1AvcagLQsWtnIBEQNlLD/YGMyqhlOzbGpx5czhX4K/Q0xlYECCuQbJ5BzhGYnO3V77i4EfBuse3v1YI95oM8EfNMbWDDgWLmzfrCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K9IwakG4; 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="K9IwakG4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF87C1F000FF; Thu, 17 Sep 2026 16:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662202; bh=3GHNpKu2mFQ4uFaYwWQFt2MK3HcnsnyrQcM5JGQ8D1k=; h=From:To:Cc:Subject:Date:Reply-To; b=K9IwakG46ncKMTsl2m16za0wFuiqBkFkFriTgV39wH7wHECcwlmLCixIvYEtDV+Ls mK95taTKdS6sNCsV8OL9LJe6799cb8VILlojZ0ZtBirLjIXH6jQ51+XXxEnIVSPL3F yQqQBImJmw+NFaMw0hEqJp5b17UX/gDssj/GMMKo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90274: coresight: etm4x: fix underflow for usage of (nrseqstate - 1) Date: Thu, 17 Sep 2026 17:11:44 +0100 Message-ID: <2026091749-CVE-2026-90274-9809@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=3703; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uCewhZq0dnC17H+aeQkzJ9JX5dzC6IlP2oaXI6Dvl2A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBCauFok+/79Yd2vro+c251RmXVYKnvX2JmfKwaTiA LVb0SbHO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiC2YyLNgjxnaL5V5dEktF 0mWhjpS/2+5PKmWYXxe17NpFzdC/WyQYPq7NTuC13ryqFAA= 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: coresight: etm4x: fix underflow for usage of (nrseqstate - 1) According to IHI006H Embedded Trace Macrocell Architecture Specification[0], TRCSEQEVR is implemented only when TRCIDR5.NUMSEQSTATE is 0b100, in which case n ranges from 0 to 2; otherwise, TRCIDR5.NUMSEQSTATE is 0b000. IOW, the number of usage in the initialisation or setting TRCSEQEVR with drvdata->nrseqstate - 1 in the loop could make underflow issue when TRCIDR5.NUMSEQSTATE is 0b000. Therefore, introduce nr_seq_ctrls field and untie it from nrseqstate. As part of this introduce ETM_MAX_SEQ_TRANSITIONS macro and apply nr_seq_ctrls and above macro to TRCSEQEVR relevant fields setup. The Linux kernel CVE team has assigned CVE-2026-90274 to this issue. Affected and fixed versions =========================== Issue introduced in 4.2 with commit 2e1cdfe184b5202d51e0611d7a051e2bea303946 and fixed in 5.15.221 with commit 8d669db59f7283b838e029af29da12e505265fae Issue introduced in 4.2 with commit 2e1cdfe184b5202d51e0611d7a051e2bea303946 and fixed in 6.1.188 with commit 4091f2d5b26d117c992ffcce1a5df425a0daedcd Issue introduced in 4.2 with commit 2e1cdfe184b5202d51e0611d7a051e2bea303946 and fixed in 6.6.157 with commit be7b2de5b9a96ae68ffa3528e0a40d63e0fd8148 Issue introduced in 4.2 with commit 2e1cdfe184b5202d51e0611d7a051e2bea303946 and fixed in 6.12.110 with commit 4f9a0f548413bf864f609c9f4bc56e3f1b3577d4 Issue introduced in 4.2 with commit 2e1cdfe184b5202d51e0611d7a051e2bea303946 and fixed in 6.18.52 with commit 1ade9a335c69fc735cb7b3f222ed35ab135540fb Issue introduced in 4.2 with commit 2e1cdfe184b5202d51e0611d7a051e2bea303946 and fixed in 7.2.6 with commit 5ac900f73ce1d4d8308f40752b51bc8a02b244d2 Issue introduced in 4.2 with commit 2e1cdfe184b5202d51e0611d7a051e2bea303946 and fixed in 7.3-rc1 with commit 1674d9bff8073bdee5dbc200f56fc3caa28d0566 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-90274 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/hwtracing/coresight/coresight-etm4x-cfg.c drivers/hwtracing/coresight/coresight-etm4x-core.c drivers/hwtracing/coresight/coresight-etm4x-sysfs.c drivers/hwtracing/coresight/coresight-etm4x.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/8d669db59f7283b838e029af29da12e505265fae https://git.kernel.org/stable/c/4091f2d5b26d117c992ffcce1a5df425a0daedcd https://git.kernel.org/stable/c/be7b2de5b9a96ae68ffa3528e0a40d63e0fd8148 https://git.kernel.org/stable/c/4f9a0f548413bf864f609c9f4bc56e3f1b3577d4 https://git.kernel.org/stable/c/1ade9a335c69fc735cb7b3f222ed35ab135540fb https://git.kernel.org/stable/c/5ac900f73ce1d4d8308f40752b51bc8a02b244d2 https://git.kernel.org/stable/c/1674d9bff8073bdee5dbc200f56fc3caa28d0566