cxl/region: Fix cxl_region leak, cleanup targets at region delete
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cxl/region: Fix cxl_region leak, cleanup targets at region delete
When a region is deleted any targets that have been previously assigned to that region hold references to it. Trigger those references to drop by detaching all targets at unregister_region() time.
Otherwise that region object will leak as userspace has lost the ability to detach targets once region sysfs is torn down.
From the CVE record · Linux
Deleting a CXL region with assigned targets can leave references that prevent the region object from being freed. The resulting resource leak occurs during region deletion; the input does not specify access requirements or an attacker action.
Engineers running the Linux kernel with CXL regions should check whether their kernel includes the fix; affected versions are not specified.