{"id":"CVE-2026-139687","state":"PUBLISHED","title":"cxl/hdm: Reject switch decoder interleave ways that overflow targets","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/hdm: Reject switch decoder interleave ways that overflow targets\n\nSwitch decoder enumeration validates that the interleave ways encoding\nis legal, but not that the resulting number of ways fits the available\ntargets. This can overrun the target array (target_list.target_id[])\nduring enumeration of 12 or 16 way interleaves.\n\nBound the target count where it is established rather than at each use.\nReject an HDM capability whose reported target count is zero or exceeds\nthe target list register capacity, and reject a zero target switch\ndecoder allocation in cxl_switch_decoder_init(). Enumeration is then\nleft with a single check: reject a decoder whose interleave ways exceed\nthe targets it has.\n\nAdd a clarifying comment that target_count is a direct count, not\n0-based like decoder_count.","publishedAt":"2026-11-30T13:37:03.086Z","updatedAt":"2026-11-30T13:37:03.086Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"b877b56f723509f6ee427f16f468e71ffd0ae8b7","versionType":"git"},{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"2bd35f247569de9f5158d89a8ef755ac48d91b00","versionType":"git"},{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"d78f2bbb536a6c813bcc61b03ebb634afa061e71","versionType":"git"},{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"32833685fe18f9de96bf3ae674a5123c750245f8","versionType":"git"},{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"3696326ca14cf018788d64232a068fdf26b1ff31","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cxl/core/hdm.c","drivers/cxl/core/port.c","drivers/cxl/cxl.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cxl/core/hdm.c","drivers/cxl/core/port.c","drivers/cxl/cxl.h"]}],"references":["https://git.kernel.org/stable/c/b877b56f723509f6ee427f16f468e71ffd0ae8b7","https://git.kernel.org/stable/c/2bd35f247569de9f5158d89a8ef755ac48d91b00","https://git.kernel.org/stable/c/d78f2bbb536a6c813bcc61b03ebb634afa061e71","https://git.kernel.org/stable/c/32833685fe18f9de96bf3ae674a5123c750245f8","https://git.kernel.org/stable/c/3696326ca14cf018788d64232a068fdf26b1ff31"],"weaknesses":[],"ingestedAt":"2026-11-30T13:54:04.526Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139687.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139687","state":"PUBLISHED","datePublished":"2026-11-30T13:37:03.086Z","dateUpdated":"2026-11-30T13:37:03.086Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.947Z"},"containers":{"cna":{"title":"cxl/hdm: Reject switch decoder interleave ways that overflow targets","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/hdm: Reject switch decoder interleave ways that overflow targets\n\nSwitch decoder enumeration validates that the interleave ways encoding\nis legal, but not that the resulting number of ways fits the available\ntargets. This can overrun the target array (target_list.target_id[])\nduring enumeration of 12 or 16 way interleaves.\n\nBound the target count where it is established rather than at each use.\nReject an HDM capability whose reported target count is zero or exceeds\nthe target list register capacity, and reject a zero target switch\ndecoder allocation in cxl_switch_decoder_init(). Enumeration is then\nleft with a single check: reject a decoder whose interleave ways exceed\nthe targets it has.\n\nAdd a clarifying comment that target_count is a direct count, not\n0-based like decoder_count."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"b877b56f723509f6ee427f16f468e71ffd0ae8b7","versionType":"git"},{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"2bd35f247569de9f5158d89a8ef755ac48d91b00","versionType":"git"},{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"d78f2bbb536a6c813bcc61b03ebb634afa061e71","versionType":"git"},{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"32833685fe18f9de96bf3ae674a5123c750245f8","versionType":"git"},{"version":"d17d0540a0dbf109210f7b57a37571e2978da0fa","status":"affected","lessThan":"3696326ca14cf018788d64232a068fdf26b1ff31","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cxl/core/hdm.c","drivers/cxl/core/port.c","drivers/cxl/cxl.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cxl/core/hdm.c","drivers/cxl/core/port.c","drivers/cxl/cxl.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/b877b56f723509f6ee427f16f468e71ffd0ae8b7"},{"url":"https://git.kernel.org/stable/c/2bd35f247569de9f5158d89a8ef755ac48d91b00"},{"url":"https://git.kernel.org/stable/c/d78f2bbb536a6c813bcc61b03ebb634afa061e71"},{"url":"https://git.kernel.org/stable/c/32833685fe18f9de96bf3ae674a5123c750245f8"},{"url":"https://git.kernel.org/stable/c/3696326ca14cf018788d64232a068fdf26b1ff31"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:37:03.086Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}