{"id":"CVE-2022-50146","summary":"PCI: dwc: Deallocate EPC memory on dw_pcie_ep_init() errors","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: dwc: Deallocate EPC memory on dw_pcie_ep_init() errors\n\nIf dw_pcie_ep_init() fails to perform any action after the EPC memory is\ninitialized and the MSI memory region is allocated, the latter parts won't\nbe undone thus causing a memory leak.  Add a cleanup-on-error path to fix\nthese leaks.\n\n[bhelgaas: commit log]","modified":"2026-04-03T13:14:39.882535764Z","published":"2025-06-18T11:03:07.031Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02334-1","SUSE-SU-2025:02537-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50146.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2d546db5c80c45cac3ccd929550244fd58f4ff58"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3b453f5d06d1f1d6b20a75ea51dc7b53ae78f479"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8161e9626b50892eaedbd8070ecb1586ecedb109"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b03a8f1264ea8c363bec9ef6e37b467f27cb04ea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e7599a5974d4c64eaae8009c3f2e47b9e3223e07"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50146.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50146"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2fd0c9d966cc11bb5f73556dd788d12f501d8755"},{"fixed":"e7599a5974d4c64eaae8009c3f2e47b9e3223e07"},{"fixed":"b03a8f1264ea8c363bec9ef6e37b467f27cb04ea"},{"fixed":"2d546db5c80c45cac3ccd929550244fd58f4ff58"},{"fixed":"3b453f5d06d1f1d6b20a75ea51dc7b53ae78f479"},{"fixed":"8161e9626b50892eaedbd8070ecb1586ecedb109"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50146.json"}}],"schema_version":"1.7.5"}