Back

MEDIUM

cxl/region: Fix cxl_region leak, cleanup targets at region delete

Published May 1, 2025

Description

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.

Affected products

Remediation

Red Hat statement

A memory leak was fixed in the cxl_region subsystem where previously assigned endpoint decoders retained references to a deleted region object. Without explicit target detachment at the time of region removal, these references were never released, leading to a persistent leak. This issue can only be triggered by privileged users with access to region configuration via sysfs. Unprivileged users cannot create or delete CXL regions or assign decoders.

Weaknesses (1)

References (8)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published May 1, 2025
Updated May 11, 2026
Reserved May 1, 2025
NVD
Status Analyzed
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date May 1, 2025
ENISA EUVD
Assigner Linux
Published May 1, 2025
Updated May 11, 2026
Exploited since n/a
EUVD-2025-12891