In the Linux kernel, the following vulnerability has been resolved: cxl/region: Unregister the pmem region when the bridge is unbound Removing cxl_acpi unbinds the nvdimm bridge before the regions it serves. A region probe can therefore register its cxl_pmem_region and only then find the bridge unbound, which leaves the new device with nothing to remove it. The orphan outlives the teardown and pins its region and its memdevs, so a later cxl_acpi bind renumbers the root port, ports, endpoints, decoders and the memdev. Unregister the cxl_pmem_region when the bridge is unbound. Found by code inspection. Racing a cxl_region bind against a cxl_acpi unbind leaked a pmem_region device on 12 of 12 attempts, and none with this patch.
https://git.kernel.org/stable/c/e46c57c6503eeee46d925b2e09f963a5faa813f4
https://git.kernel.org/stable/c/bb26797c08d408ea7e8d3625045f0fe28714a425
https://git.kernel.org/stable/c/6c112bc45f5b87229eeb569097b14b937552a55f
https://git.kernel.org/stable/c/08b4602dbac862678d7dafbba7a32de6a97cc863