CVE-2022-48724

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

State
Published
Severity
Not scored
Published
Jun 20, 2024
Updated
May 23, 2026
Reserved
Jun 20, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 03992c88d71ba79d956f2ed54e370e630b8750f4 to before a0c685ba99961b1dd894b2e470e692a539770f6dAffected
  • c0c489e5430530a7021f4c889cd5931597e4b200 to before a31cb1f0fb6caf46ffe88c41252b6b7a4ee062d9Affected
  • 36f7355545725c5e9400520ae33e6ee16cf78c0e to before 5c43d46daa0d2928234dd2792ebebc35d29ee2d1Affected
  • e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb to before 9d9995b0371e4e8c18d4f955479e5d47efe7b2d4Affected
  • e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb to before 336d096b62bdc673e852b6b80d5072d7888ce85dAffected
  • e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb to before b62eceb5f8f08815fe3f945fc55bbf997c344ecdAffected
  • e3beca48a45b5e0e6e6a4e0124276b8248dcc9bb to before 99e675d473eb8cf2deac1376a0f840222fc1adcfAffected
  • b4198ecddb87cd955aa9e024dd656af5ceaf6196Affected
  • 4.14.190 to before 4.14.265Affected
  • 4.19.135 to before 4.19.228Affected
  • 5.4.54 to before 5.4.178Affected
  • 5.7.11 to before 5.8Affected
LinuxLinux
  • 5.8Affected
  • before 5.8Not affected
  • 4.14.265 through 4.14.*Not affected
  • 4.19.228 through 4.19.*Not affected
  • 5.4.178 through 5.4.*Not affected
  • 5.10.99 through 5.10.*Not affected
  • 5.15.22 through 5.15.*Not affected
  • 5.16.8 through 5.16.*Not affected
  • 5.17 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.