{"id":"DEBIAN-CVE-2023-52792","details":"In the Linux kernel, the following vulnerability has been resolved:  cxl/region: Do not try to cleanup after cxl_region_setup_targets() fails  Commit 5e42bcbc3fef (\"cxl/region: decrement -\u003enr_targets on error in cxl_region_attach()\") tried to avoid 'eiw' initialization errors when -\u003enr_targets exceeded 16, by just decrementing -\u003enr_targets when cxl_region_setup_targets() failed.  Commit 86987c766276 (\"cxl/region: Cleanup target list on attach error\") extended that cleanup to also clear cxled-\u003epos and p-\u003etargets[pos]. The initialization error was incidentally fixed separately by: Commit 8d4285425714 (\"cxl/region: Fix port setup uninitialized variable warnings\") which was merged a few days after 5e42bcbc3fef.  But now the original cleanup when cxl_region_setup_targets() fails prevents endpoint and switch decoder resources from being reused:  1) the cleanup does not set the decoder's region to NULL, which results    in future dpa_size_store() calls returning -EBUSY 2) the decoder is not properly freed, which results in future commit    errors associated with the upstream switch  Now that the initialization errors were fixed separately, the proper cleanup for this case is to just return immediately. Then the resources associated with this target get cleanup up as normal when the failed region is deleted.  The -\u003enr_targets decrement in the error case also helped prevent a p-\u003etargets[] array overflow, so add a new check to prevent against that overflow.  Tested by trying to create an invalid region for a 2 switch * 2 endpoint topology, and then following up with creating a valid region.","modified":"2026-09-15T09:02:39.367192349Z","published":"2024-05-21T16:15:17.857Z","upstream":["CVE-2023-52792"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-52792"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.64-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1","6.1.52-1","6.1.55-1","6.1.55-1~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-52792.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.8-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-52792.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.8-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-52792.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}