Skip to contentSkip to conversation

CVE-2026-74275: cxl/region: Fix out-of-bounds access in cxl_cancel_auto_attach()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

cxl/region: Fix out-of-bounds access in cxl_cancel_auto_attach()

In cxl_cancel_auto_attach(), it assumes cxled->pos is a valid index for accessing p->targets[]. However, cxled->pos can be set to negative errno in cxl_region_sort_targets() if cxl_calc_interleave_pos() fails. This causes the driver to use a negative index to access p->targets[], resulting in out-of-bounds access.

Fix it by walking p->targets[] instead of using cxled->pos directly.

The Linux kernel CVE team has assigned CVE-2026-74275 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.1 with commit 87805c32e6ad7b5ce2d9f7f47e76081857a4a335 and fixed in 7.1.5 with commit 44b2397eb67b7f728640989a22d062e41f94ab64
	Issue introduced in 7.1 with commit 87805c32e6ad7b5ce2d9f7f47e76081857a4a335 and fixed in 7.2-rc1 with commit cbda6a2c2bec2a5fb30a2ce85baeab15b5fc7db3

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-74275

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/cxl/core/region.c

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/44b2397eb67b7f728640989a22d062e41f94ab64
	https://git.kernel.org/stable/c/cbda6a2c2bec2a5fb30a2ce85baeab15b5fc7db3