In the Linux kernel, the following vulnerability has been resolved:
PCI: dwc: Deallocate EPC memory on dwpcieep_init() errors
If dwpcieep_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]
[
{
"id": "CVE-2022-50146-1635bed4",
"target": {
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"172565739119487744364295730599801831802",
"4459501718248363795209264082665041169",
"271074968545105663801756975515350908790",
"303235145538652405265093790436779742780",
"97495372080461125845878226153662016677",
"325550628551991855057857799762098081322",
"295238278947971289777402395921364740300",
"162433947424454428958536745186500279274",
"33179216336781349011611919520900044649"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d546db5c80c45cac3ccd929550244fd58f4ff58"
},
{
"id": "CVE-2022-50146-219f9505",
"target": {
"function": "dw_pcie_ep_init",
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"length": 2744.0,
"function_hash": "105693314674855380831394666694427443726"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8161e9626b50892eaedbd8070ecb1586ecedb109"
},
{
"id": "CVE-2022-50146-31e8533f",
"target": {
"function": "dw_pcie_ep_init",
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"length": 2761.0,
"function_hash": "337344511013579164308491559533599452653"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e7599a5974d4c64eaae8009c3f2e47b9e3223e07"
},
{
"id": "CVE-2022-50146-40bbc24c",
"target": {
"function": "dw_pcie_ep_init",
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"length": 2744.0,
"function_hash": "105693314674855380831394666694427443726"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d546db5c80c45cac3ccd929550244fd58f4ff58"
},
{
"id": "CVE-2022-50146-423fcea8",
"target": {
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"172565739119487744364295730599801831802",
"4459501718248363795209264082665041169",
"271074968545105663801756975515350908790",
"303235145538652405265093790436779742780",
"97495372080461125845878226153662016677",
"325550628551991855057857799762098081322",
"295238278947971289777402395921364740300",
"162433947424454428958536745186500279274",
"33179216336781349011611919520900044649"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8161e9626b50892eaedbd8070ecb1586ecedb109"
},
{
"id": "CVE-2022-50146-48f53a6b",
"target": {
"function": "dw_pcie_ep_init",
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"length": 2744.0,
"function_hash": "105693314674855380831394666694427443726"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b453f5d06d1f1d6b20a75ea51dc7b53ae78f479"
},
{
"id": "CVE-2022-50146-4c099ff2",
"target": {
"function": "dw_pcie_ep_init",
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"length": 2744.0,
"function_hash": "105693314674855380831394666694427443726"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b03a8f1264ea8c363bec9ef6e37b467f27cb04ea"
},
{
"id": "CVE-2022-50146-7228070e",
"target": {
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"172565739119487744364295730599801831802",
"4459501718248363795209264082665041169",
"271074968545105663801756975515350908790",
"303235145538652405265093790436779742780",
"97495372080461125845878226153662016677",
"325550628551991855057857799762098081322",
"295238278947971289777402395921364740300",
"162433947424454428958536745186500279274",
"33179216336781349011611919520900044649"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b03a8f1264ea8c363bec9ef6e37b467f27cb04ea"
},
{
"id": "CVE-2022-50146-dc07335e",
"target": {
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"172565739119487744364295730599801831802",
"4459501718248363795209264082665041169",
"271074968545105663801756975515350908790",
"303235145538652405265093790436779742780",
"97495372080461125845878226153662016677",
"325550628551991855057857799762098081322",
"295238278947971289777402395921364740300",
"162433947424454428958536745186500279274",
"33179216336781349011611919520900044649"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3b453f5d06d1f1d6b20a75ea51dc7b53ae78f479"
},
{
"id": "CVE-2022-50146-f37067ca",
"target": {
"file": "drivers/pci/controller/dwc/pcie-designware-ep.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"172565739119487744364295730599801831802",
"4459501718248363795209264082665041169",
"271074968545105663801756975515350908790",
"303235145538652405265093790436779742780",
"97495372080461125845878226153662016677",
"325550628551991855057857799762098081322",
"295238278947971289777402395921364740300",
"162433947424454428958536745186500279274",
"33179216336781349011611919520900044649"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e7599a5974d4c64eaae8009c3f2e47b9e3223e07"
}
]