漏洞标题
iommu/vt-d: 在intel_setup_irq_remapping()中修复潜在的内存泄漏问题
漏洞描述信息
在Linux内核中,已解决以下漏洞:
iommu/vt-d: 在提交e3beca48a45b("irqdomain/treewide: 不附加条件地保留固件节点")之后,修复潜在的内存泄漏问题:intel_setup_irq_remapping()。在拆卸场景下,仅在未能分配ir_domain之后才会释放fn,尽管在dmar_enable_qi返回错误的情况下,也应释放fn。如果intel_setup_irq_remapping无法启用排队无效化,则需要同时释放fn、irq_domain和ir_msi_domain。根据Baolu的建议,通过添加out_free_ir_domain和out_free_fwnode标签来改进回滚路径。
CVSS信息
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
漏洞类别
在移除最后引用时对内存的释放不恰当(内存泄露)
漏洞标题
iommu/vt-d: Fix potential memory leak in intel_setup_irq_remapping()
漏洞描述信息
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.
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 iommu/vt-d 模块 intel_setup_irq_remapping 中存在内存泄漏。
CVSS信息
N/A
漏洞类别
其他