{"id":"CVE-2024-38603","aliases":["CVE-2024-38603"],"related":[],"kind":"vulnerability","state":"published","title":"drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()\n\npci_alloc_irq_vectors() allocates an irq vector. When devm_add_action()\nfails, the irq vector is not freed, which leads to a memory leak.\n\nReplace the devm_add_action with devm_add_action_or_reset to ensure\nthe irq vector can be destroyed when it fails.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()\n\npci_alloc_irq_vectors() allocates an irq vector. When devm_add_action()\nfails, the irq vector is not freed, which leads to a memory leak.\n\nReplace the devm_add_action with devm_add_action_or_reset to ensure\nthe irq vector can be destroyed when it fails.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drivers/perf: hisi: hns3: en realidad usa devm_add_action_or_reset() pci_alloc_irq_vectors() asigna un vector irq. Cuando devm_add_action() falla, el vector irq no se libera, lo que provoca una pérdida de memoria. Reemplace devm_add_action con devm_add_action_or_reset para garantizar que el vector irq pueda destruirse cuando falla.","source":"nvd"}],"published":"2024-06-19T13:48:14.426Z","modified":"2026-06-17T07:40:41.607Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","fixed":"1491a01ef5a98149048b12e208f6ed8e86ad10b9","status":"affected"},{"type":"git","introduced":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","fixed":"a7678a16c25b6ece1667ac681e3e783ff3de7a6f","status":"affected"},{"type":"git","introduced":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","fixed":"2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782","status":"affected"},{"type":"git","introduced":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","fixed":"b1e86f1ef8fa796f8935be392457639f3a907d91","status":"affected"},{"type":"git","introduced":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","fixed":"582c1aeee0a9e73010cf1c4cef338709860deeb0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.93","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.12","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.3","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.0","fixed":"6.1.93"},{"status":"affected","introduced":"6.2","fixed":"6.6.33"},{"status":"affected","introduced":"6.7","fixed":"6.8.12"},{"status":"affected","introduced":"6.9","fixed":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1491a01ef5a98149048b12e208f6ed8e86ad10b9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7678a16c25b6ece1667ac681e3e783ff3de7a6f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1e86f1ef8fa796f8935be392457639f3a907d91","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/582c1aeee0a9e73010cf1c4cef338709860deeb0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:13:15.047Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38603","url":"https://www.cve.org/CVERecord?id=CVE-2024-38603","licence":"CVE Terms of Use","modified":"2026-05-11T20:19:55.140Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38603","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38603","licence":"Public domain","modified":"2026-06-17T07:40:41.607Z"}],"updatedAt":"2026-11-25T22:58:42.039Z","epss":{"score":0.00211,"percentile":0.12131,"date":"2026-12-01T12:00:22.000Z"}}