{"id":"CVE-2026-90274","summary":"coresight: etm4x: fix underflow for usage of (nrseqstate - 1)","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: etm4x: fix underflow for usage of (nrseqstate - 1)\n\nAccording to IHI006H Embedded Trace Macrocell Architecture\nSpecification[0], TRCSEQEVR\u003cn\u003e is implemented only when\nTRCIDR5.NUMSEQSTATE is 0b100, in which case n ranges from 0 to 2;\notherwise, TRCIDR5.NUMSEQSTATE is 0b000.\n\nIOW, the number of usage in the initialisation or setting\nTRCSEQEVR\u003cn\u003e with drvdata-\u003enrseqstate - 1 in the loop could make\nunderflow issue when TRCIDR5.NUMSEQSTATE is 0b000.\n\nTherefore, introduce nr_seq_ctrls field and untie it from nrseqstate.\nAs part of this introduce ETM_MAX_SEQ_TRANSITIONS macro and\napply nr_seq_ctrls and above macro to TRCSEQEVR\u003cn\u003e relevant fields setup.","modified":"2026-09-19T03:47:30.922826588Z","published":"2026-09-17T16:08:07.269Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90274.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1674d9bff8073bdee5dbc200f56fc3caa28d0566"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1ade9a335c69fc735cb7b3f222ed35ab135540fb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4091f2d5b26d117c992ffcce1a5df425a0daedcd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f9a0f548413bf864f609c9f4bc56e3f1b3577d4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5ac900f73ce1d4d8308f40752b51bc8a02b244d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8d669db59f7283b838e029af29da12e505265fae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be7b2de5b9a96ae68ffa3528e0a40d63e0fd8148"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90274.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90274"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2e1cdfe184b5202d51e0611d7a051e2bea303946"},{"fixed":"8d669db59f7283b838e029af29da12e505265fae"},{"fixed":"4091f2d5b26d117c992ffcce1a5df425a0daedcd"},{"fixed":"be7b2de5b9a96ae68ffa3528e0a40d63e0fd8148"},{"fixed":"4f9a0f548413bf864f609c9f4bc56e3f1b3577d4"},{"fixed":"1ade9a335c69fc735cb7b3f222ed35ab135540fb"},{"fixed":"5ac900f73ce1d4d8308f40752b51bc8a02b244d2"},{"fixed":"1674d9bff8073bdee5dbc200f56fc3caa28d0566"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90274.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"fixed":"5.15.221"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.110"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.52"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90274.json"}}],"schema_version":"1.9.0"}