{"api_version":"1","generated_at":"2026-08-15T15:07:48+00:00","cve":"CVE-2026-74274","urls":{"html":"https://cve.report/CVE-2026-74274","api":"https://cve.report/api/cve/CVE-2026-74274.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-74274","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-74274"},"summary":{"title":"cxl/region: Fill first free targets[] slot during auto-discovery","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/region: Fill first free targets[] slot during auto-discovery\n\nAny invalid endpoint decoder pointer in the target array of an active\nregion is not allowed by cxl driver. This means cxl driver always\nassumes the first p->nr_targets entries of the target array in an\nauto-assembly region are valid. However, there are scenarios that could\nleave NULL endpoint decoder pointer holes in the target array.\n\n1. When cxl_cancel_auto_attach() removes an endpoint decoder from a\n   target array, the target slot is set to NULL. If the removed endpoint\n   decoder is not the last element in the target array, the target array\n   will contain a NULL hole.\n\n2. When a auto-assembly region removes an assigned endpoint decoder, if\n   the removed endpoint decoder is not the last element in the target\n   array, always remains a NULL hole in the target array.\n\nWhen a NULL pointer hole exists in a region's target array, it\nintroduces two potential problems:\n1. Access an endpoint decoder via a NULL pointer. it always trigger\n   calltrace like that.\n    Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN PTI\n    RIP: 0010:cxl_calc_interleave_pos+0x26/0x810 [cxl_core]\n    Call Trace:\n      <TASK>\n      cxl_region_attach+0xc50/0x2140 [cxl_core]\n      cxl_add_to_region+0x321/0x2330 [cxl_core]\n      discover_region+0x92/0x150 [cxl_port]\n      device_for_each_child+0xf3/0x170\n      cxl_port_probe+0x150/0x200 [cxl_port]\n      cxl_bus_probe+0x4f/0xa0 [cxl_core]\n      really_probe+0x1c8/0x960\n      __driver_probe_device+0x323/0x450\n      driver_probe_device+0x45/0x120\n      __device_attach_driver+0x15d/0x280\n      bus_for_each_drv+0x10f/0x190\n\n2. Not having enough valid endpoint decoders attached to an\n   auto-assembly region. if an auto-assembly region is created with lock\n   flag or assigned endpoint decoder with lock flag, which means\n   assigned endpoint decoder will not be reset during detaching, they\n   could re-attach to the auto-assembly region again. But cxl region\n   driver relies on p->nr_targets to verify whether the required number\n   of endpoint decoders has been attached, and NULL endpoint decoder\n   pointers are still counted in that case.\n\nTo fix above issues, adjust cxl_region_attach_auto() logic to find the\nfirst free target slot for endpoint decoder attachment, this ensures\nNULL holes in the target array are filled, rather than adding new\nendpoint decoders at the tail of the target array.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-08-15 06:22:26","updated_at":"2026-08-15 06:22:26"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/aa8a76711c15041ec1e42c3a74c15c2df0bd31f6","name":"https://git.kernel.org/stable/c/aa8a76711c15041ec1e42c3a74c15c2df0bd31f6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6fde3fcdfec438ba0df26e25a8ac7c3707211799","name":"https://git.kernel.org/stable/c/6fde3fcdfec438ba0df26e25a8ac7c3707211799","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-74274","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74274","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2230c4bdc4120417799c74326ade3123da226d54 6fde3fcdfec438ba0df26e25a8ac7c3707211799 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2230c4bdc4120417799c74326ade3123da226d54 aa8a76711c15041ec1e42c3a74c15c2df0bd31f6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.5 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/cxl/core/region.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6fde3fcdfec438ba0df26e25a8ac7c3707211799","status":"affected","version":"2230c4bdc4120417799c74326ade3123da226d54","versionType":"git"},{"lessThan":"aa8a76711c15041ec1e42c3a74c15c2df0bd31f6","status":"affected","version":"2230c4bdc4120417799c74326ade3123da226d54","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/cxl/core/region.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.19"},{"lessThan":"6.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1.5","versionStartIncluding":"6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2-rc1","versionStartIncluding":"6.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/region: Fill first free targets[] slot during auto-discovery\n\nAny invalid endpoint decoder pointer in the target array of an active\nregion is not allowed by cxl driver. This means cxl driver always\nassumes the first p->nr_targets entries of the target array in an\nauto-assembly region are valid. However, there are scenarios that could\nleave NULL endpoint decoder pointer holes in the target array.\n\n1. When cxl_cancel_auto_attach() removes an endpoint decoder from a\n   target array, the target slot is set to NULL. If the removed endpoint\n   decoder is not the last element in the target array, the target array\n   will contain a NULL hole.\n\n2. When a auto-assembly region removes an assigned endpoint decoder, if\n   the removed endpoint decoder is not the last element in the target\n   array, always remains a NULL hole in the target array.\n\nWhen a NULL pointer hole exists in a region's target array, it\nintroduces two potential problems:\n1. Access an endpoint decoder via a NULL pointer. it always trigger\n   calltrace like that.\n    Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN PTI\n    RIP: 0010:cxl_calc_interleave_pos+0x26/0x810 [cxl_core]\n    Call Trace:\n      <TASK>\n      cxl_region_attach+0xc50/0x2140 [cxl_core]\n      cxl_add_to_region+0x321/0x2330 [cxl_core]\n      discover_region+0x92/0x150 [cxl_port]\n      device_for_each_child+0xf3/0x170\n      cxl_port_probe+0x150/0x200 [cxl_port]\n      cxl_bus_probe+0x4f/0xa0 [cxl_core]\n      really_probe+0x1c8/0x960\n      __driver_probe_device+0x323/0x450\n      driver_probe_device+0x45/0x120\n      __device_attach_driver+0x15d/0x280\n      bus_for_each_drv+0x10f/0x190\n\n2. Not having enough valid endpoint decoders attached to an\n   auto-assembly region. if an auto-assembly region is created with lock\n   flag or assigned endpoint decoder with lock flag, which means\n   assigned endpoint decoder will not be reset during detaching, they\n   could re-attach to the auto-assembly region again. But cxl region\n   driver relies on p->nr_targets to verify whether the required number\n   of endpoint decoders has been attached, and NULL endpoint decoder\n   pointers are still counted in that case.\n\nTo fix above issues, adjust cxl_region_attach_auto() logic to find the\nfirst free target slot for endpoint decoder attachment, this ensures\nNULL holes in the target array are filled, rather than adding new\nendpoint decoders at the tail of the target array."}],"providerMetadata":{"dateUpdated":"2026-08-15T05:57:46.798Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/6fde3fcdfec438ba0df26e25a8ac7c3707211799"},{"url":"https://git.kernel.org/stable/c/aa8a76711c15041ec1e42c3a74c15c2df0bd31f6"}],"title":"cxl/region: Fill first free targets[] slot during auto-discovery","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-74274","datePublished":"2026-08-15T05:57:46.798Z","dateReserved":"2026-08-15T05:44:03.879Z","dateUpdated":"2026-08-15T05:57:46.798Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-15 06:22:26","lastModifiedDate":"2026-08-15 06:22:26","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"74274","Ordinal":"1","Title":"cxl/region: Fill first free targets[] slot during auto-discovery","CVE":"CVE-2026-74274","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"74274","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/region: Fill first free targets[] slot during auto-discovery\n\nAny invalid endpoint decoder pointer in the target array of an active\nregion is not allowed by cxl driver. This means cxl driver always\nassumes the first p->nr_targets entries of the target array in an\nauto-assembly region are valid. However, there are scenarios that could\nleave NULL endpoint decoder pointer holes in the target array.\n\n1. When cxl_cancel_auto_attach() removes an endpoint decoder from a\n   target array, the target slot is set to NULL. If the removed endpoint\n   decoder is not the last element in the target array, the target array\n   will contain a NULL hole.\n\n2. When a auto-assembly region removes an assigned endpoint decoder, if\n   the removed endpoint decoder is not the last element in the target\n   array, always remains a NULL hole in the target array.\n\nWhen a NULL pointer hole exists in a region's target array, it\nintroduces two potential problems:\n1. Access an endpoint decoder via a NULL pointer. it always trigger\n   calltrace like that.\n    Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN PTI\n    RIP: 0010:cxl_calc_interleave_pos+0x26/0x810 [cxl_core]\n    Call Trace:\n      <TASK>\n      cxl_region_attach+0xc50/0x2140 [cxl_core]\n      cxl_add_to_region+0x321/0x2330 [cxl_core]\n      discover_region+0x92/0x150 [cxl_port]\n      device_for_each_child+0xf3/0x170\n      cxl_port_probe+0x150/0x200 [cxl_port]\n      cxl_bus_probe+0x4f/0xa0 [cxl_core]\n      really_probe+0x1c8/0x960\n      __driver_probe_device+0x323/0x450\n      driver_probe_device+0x45/0x120\n      __device_attach_driver+0x15d/0x280\n      bus_for_each_drv+0x10f/0x190\n\n2. Not having enough valid endpoint decoders attached to an\n   auto-assembly region. if an auto-assembly region is created with lock\n   flag or assigned endpoint decoder with lock flag, which means\n   assigned endpoint decoder will not be reset during detaching, they\n   could re-attach to the auto-assembly region again. But cxl region\n   driver relies on p->nr_targets to verify whether the required number\n   of endpoint decoders has been attached, and NULL endpoint decoder\n   pointers are still counted in that case.\n\nTo fix above issues, adjust cxl_region_attach_auto() logic to find the\nfirst free target slot for endpoint decoder attachment, this ensures\nNULL holes in the target array are filled, rather than adding new\nendpoint decoders at the tail of the target array.","Type":"Description","Title":"cxl/region: Fill first free targets[] slot during auto-discovery"}]}}}