CVE-2022-48724

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

published June 20, 2024

CVSS
—
EPSS
0%
Percentile
13.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00236 · 13.8th percentile
Published
2024-06-20T11:13Z
EPSS history
Timeline
  • 20 JUN 11:13Z
    iommu/vt-d: Fix potential memory leak in intel_setup_irq_remapping()
    cvelistv5