Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48724
HistoryJun 20, 2024 - 11:13 a.m.

CVE-2022-48724 iommu/vt-d: Fix potential memory leak in intel_setup_irq_remapping()

2024-06-2011:13:14
Linux
www.cve.org
linux kernel
vulnerability
memory leak
intel_setup_irq_remapping
iommu/vt-d
fix

0.0004 Low

EPSS

Percentile

10.4%

In the Linux kernel, the following vulnerability has been resolved:

iommu/vt-d: Fix potential memory leak in intel_setup_irq_remapping()

After commit e3beca48a45b (“irqdomain/treewide: Keep firmware node
unconditionally allocated”). For tear down scenario, fn is only freed
after fail to allocate ir_domain, though it also should be freed in case
dmar_enable_qi returns error.

Besides free fn, irq_domain and ir_msi_domain need to be removed as well
if intel_setup_irq_remapping fails to enable queued invalidation.

Improve the rewinding path by add out_free_ir_domain and out_free_fwnode
lables per Baolu’s suggestion.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/iommu/intel/irq_remapping.c"
    ],
    "versions": [
      {
        "version": "03992c88d71b",
        "lessThan": "a0c685ba9996",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c0c489e54305",
        "lessThan": "a31cb1f0fb6c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "36f735554572",
        "lessThan": "5c43d46daa0d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e3beca48a45b",
        "lessThan": "9d9995b0371e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e3beca48a45b",
        "lessThan": "336d096b62bd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e3beca48a45b",
        "lessThan": "b62eceb5f8f0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e3beca48a45b",
        "lessThan": "99e675d473eb",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/iommu/intel/irq_remapping.c"
    ],
    "versions": [
      {
        "version": "5.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.8",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.265",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.228",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.178",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.99",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.22",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.8",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

10.4%

Related for CVELIST:CVE-2022-48724