CVE-2022-50146Published Jun 18, 2025 · Jun 18Updated Oct 28
PCI: dwc: Deallocate EPC memory on dw_pcie_ep_init() errors
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
PCI: dwc: Deallocate EPC memory on dw_pcie_ep_init() errors
If dw_pcie_ep_init() fails to perform any action after the EPC memory is initialized and the MSI memory region is allocated, the latter parts won't be undone thus causing a memory leak. Add a cleanup-on-error path to fix these leaks.
[bhelgaas: commit log]
From the CVE record · Linux
The Linux kernel can leak EPC and MSI memory if dw_pcie_ep_init() fails after those resources are allocated. The input does not describe an attacker path or specify access or interaction requirements.
Engineers running the Linux kernel with PCI DWC endpoint support should check their kernel; affected versions are not specified.