What’s Vulnerable › Vulnerabilities

CVE-2024-38603: drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()

Description

In the Linux kernel, the following vulnerability has been resolved: drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset() pci_alloc_irq_vectors() allocates an irq vector. When devm_add_action() fails, the irq vector is not freed, which leads to a memory leak. Replace the devm_add_action with devm_add_action_or_reset to ensure the irq vector can be destroyed when it fails.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.93, 6.6.33, 6.8.12, 6.9.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-38603 or the next vulnerability affects your stack