Linux
cxl/region: Fix out-of-bounds access in cxl_cancel_auto_attach()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 87805c32e6ad7b5ce2d9f7f47e76081857a4a335, < 44b2397eb67b7f728640989a22d062e41f94ab64
- >= 87805c32e6ad7b5ce2d9f7f47e76081857a4a335, < cbda6a2c2bec2a5fb30a2ce85baeab15b5fc7db3
Fixed in 44b2397eb67b7f728640989a22d062e41f94ab64, cbda6a2c2bec2a5fb30a2ce85baeab15b5fc7db3
- 7.1
Fixed in 0, 7.1.5, 7.2
Mitigation
Upgrade Linux to 44b2397eb67b7f728640989a22d062e41f94ab64 or cbda6a2c2bec2a5fb30a2ce85baeab15b5fc7db3 or later.
Upgrade Linux to 0 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.