{"id":"CVE-2026-90274","state":"PUBLISHED","title":"coresight: etm4x: fix underflow for usage of (nrseqstate - 1)","description":"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<n> 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<n> with drvdata->nrseqstate - 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<n> relevant fields setup.","publishedAt":"2026-09-17T16:08:07.269Z","updatedAt":"2026-10-19T09:00:51.909Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"8d669db59f7283b838e029af29da12e505265fae","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"4091f2d5b26d117c992ffcce1a5df425a0daedcd","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"be7b2de5b9a96ae68ffa3528e0a40d63e0fd8148","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"4f9a0f548413bf864f609c9f4bc56e3f1b3577d4","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"1ade9a335c69fc735cb7b3f222ed35ab135540fb","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"5ac900f73ce1d4d8308f40752b51bc8a02b244d2","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"1674d9bff8073bdee5dbc200f56fc3caa28d0566","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["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"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["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"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90274.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90274","state":"PUBLISHED","datePublished":"2026-09-17T16:08:07.269Z","dateUpdated":"2026-10-19T09:00:51.909Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.797Z"},"containers":{"cna":{"title":"coresight: etm4x: fix underflow for usage of (nrseqstate - 1)","descriptions":[{"lang":"en","value":"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<n> 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<n> with drvdata->nrseqstate - 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<n> relevant fields setup."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"8d669db59f7283b838e029af29da12e505265fae","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"4091f2d5b26d117c992ffcce1a5df425a0daedcd","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"be7b2de5b9a96ae68ffa3528e0a40d63e0fd8148","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"4f9a0f548413bf864f609c9f4bc56e3f1b3577d4","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"1ade9a335c69fc735cb7b3f222ed35ab135540fb","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"5ac900f73ce1d4d8308f40752b51bc8a02b244d2","versionType":"git"},{"version":"2e1cdfe184b5202d51e0611d7a051e2bea303946","status":"affected","lessThan":"1674d9bff8073bdee5dbc200f56fc3caa28d0566","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["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"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["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"]}],"references":[{"url":"https://git.kernel.org/stable/c/8d669db59f7283b838e029af29da12e505265fae"},{"url":"https://git.kernel.org/stable/c/4091f2d5b26d117c992ffcce1a5df425a0daedcd"},{"url":"https://git.kernel.org/stable/c/be7b2de5b9a96ae68ffa3528e0a40d63e0fd8148"},{"url":"https://git.kernel.org/stable/c/4f9a0f548413bf864f609c9f4bc56e3f1b3577d4"},{"url":"https://git.kernel.org/stable/c/1ade9a335c69fc735cb7b3f222ed35ab135540fb"},{"url":"https://git.kernel.org/stable/c/5ac900f73ce1d4d8308f40752b51bc8a02b244d2"},{"url":"https://git.kernel.org/stable/c/1674d9bff8073bdee5dbc200f56fc3caa28d0566"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:00:51.909Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.15.221"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}