CVE-2022-50146

PCI: dwc: Deallocate EPC memory on dw_pcie_ep_init() errors

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

Description

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]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2fd0c9d966cc11bb5f73556dd788d12f501d8755 to before e7599a5974d4c64eaae8009c3f2e47b9e3223e07Affected
  • 2fd0c9d966cc11bb5f73556dd788d12f501d8755 to before b03a8f1264ea8c363bec9ef6e37b467f27cb04eaAffected
  • 2fd0c9d966cc11bb5f73556dd788d12f501d8755 to before 2d546db5c80c45cac3ccd929550244fd58f4ff58Affected
  • 2fd0c9d966cc11bb5f73556dd788d12f501d8755 to before 3b453f5d06d1f1d6b20a75ea51dc7b53ae78f479Affected
  • 2fd0c9d966cc11bb5f73556dd788d12f501d8755 to before 8161e9626b50892eaedbd8070ecb1586ecedb109Affected
LinuxLinux
  • 4.16Affected
  • before 4.16Not affected
  • 5.10.137 through 5.10.*Not affected
  • 5.15.61 through 5.15.*Not affected
  • 5.18.18 through 5.18.*Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.