CVE-2024-38603: drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()
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.
Security readout for executives and security teams
Plain-English summary
CVE-2024-38603 is a Linux kernel driver bug where an interrupt resource may not be released if setup fails. The public record describes a memory leak, not remote code execution or privilege escalation. Business urgency is mainly for systems using the affected HiSilicon HNS3-related kernel driver path.
Executive priority
Treat as routine kernel hygiene unless critical infrastructure depends on affected HNS3 hardware. Patch through standard maintenance windows, with faster handling for exposed production systems using this driver path.
Technical view
The issue is in drivers/perf/hisi/hns3. pci_alloc_irq_vectors() can allocate an IRQ vector, but a failing devm_add_action() path did not free it. The fix replaces devm_add_action() with devm_add_action_or_reset() so cleanup runs when registration fails.
Likely exposure
Exposure appears limited to Linux systems with affected kernel builds and the HiSilicon HNS3 perf driver path. The bundle lists Linux kernel versions and stable commits, but does not provide distribution-specific package mappings.
Exploitation context
The source bundle does not show CISA KEV listing or active exploitation. The described impact is a memory leak on an error path. No public source here supports treating this as remotely exploitable or weaponized.
Researcher notes
Evidence is limited to the Linux kernel CVE text and stable commit references. The record lacks CVSS, CWE, exploitability detail, and distribution status. Analysis should avoid extending impact beyond the documented IRQ vector cleanup leak.
Mitigation direction
Update to a vendor-supported kernel containing the referenced stable fixes.
Check Linux distribution advisories for backported CVE-2024-38603 fixes.
Prioritize hosts using HiSilicon HNS3 hardware or related kernel modules.
Follow normal kernel update and reboot procedures for the platform.
Validation and detection
Inventory Linux kernel versions against vendor advisories for CVE-2024-38603.
Check whether HiSilicon HNS3-related drivers or hardware are present.
Confirm kernel changelogs include the CVE or referenced stable commits.
Monitor affected systems for resource exhaustion symptoms until patched.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-38603 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.