CVE-2022-48724
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 03992c88d71ba79d956f2ed54e370e630b8750f4 before a0c685ba99961b1dd894b2e470e692a539770f6d, from c0c489e5430530a7021f4c889cd5931597e4b200 before a31cb1f0fb6caf46ffe88c41252b6b7a4ee062d9, from 36f7355545725c5e9400520ae33e6ee16cf78c0e before 5c43d46daa0d2928234dd2792ebebc35d29ee2d1, from e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb before 9d9995b0371e4e8c18d4f955479e5d47efe7b2d4, from e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb before 336d096b62bdc673e852b6b80d5072d7888ce85d, from e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb before b62eceb5f8f08815fe3f945fc55bbf997c344ecd, from e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb before 99e675d473eb8cf2deac1376a0f840222fc1adcf, b4198ecddb87cd955aa9e024dd656af5ceaf6196 and 5 more
Not affected: before 5.8, from 4.14.265 up to 4.14.*, from 4.19.228 up to 4.19.*, from 5.4.178 up to 5.4.*, from 5.10.99 up to 5.10.*, from 5.15.22 up to 5.15.*
CVE List
linux linux_kernelfrom 4.14.190 before 4.14.265, from 4.19.135 before 4.19.228, from 5.4.54 before 5.4.178, from 5.7.11 before 5.8, from 5.8 before 5.10.99, from 5.11 before 5.15.22, from 5.16 before 5.16.8, 5.17NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iommu/vt-d: soluciona una posible pérdida de memoria en intel_setup_irq_remapping() después del commit e3beca48a45b ("irqdomain/treewide: mantiene el nodo de firmware asignado incondicionalmente"). Para el escenario de desmontaje, fn solo se libera después de que no se puede asignar ir_domain, aunque también debe liberarse en caso de que dmar_enable_qi devuelva un error. Además de free fn, irq_domain e ir_msi_domain también deben eliminarse si intel_setup_irq_remapping no logra habilitar la invalidación en cola. Mejore la ruta de rebobinado agregando las etiquetas out_free_ir_domain y out_free_fwnode según la sugerencia de Baolu.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-48724 changed 2026-05-23CVE Terms of Use
NVDCVE-2022-48724 changed 2026-06-17Public domain