{"id":"CVE-2024-38603","summary":"drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()","details":"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.","modified":"2026-03-20T12:37:09.664496Z","published":"2024-06-19T13:48:14.426Z","related":["MGASA-2024-0263","MGASA-2024-0266","SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38603.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1491a01ef5a98149048b12e208f6ed8e86ad10b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782"},{"type":"WEB","url":"https://git.kernel.org/stable/c/582c1aeee0a9e73010cf1c4cef338709860deeb0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a7678a16c25b6ece1667ac681e3e783ff3de7a6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b1e86f1ef8fa796f8935be392457639f3a907d91"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38603.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38603"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695"},{"fixed":"1491a01ef5a98149048b12e208f6ed8e86ad10b9"},{"fixed":"a7678a16c25b6ece1667ac681e3e783ff3de7a6f"},{"fixed":"2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782"},{"fixed":"b1e86f1ef8fa796f8935be392457639f3a907d91"},{"fixed":"582c1aeee0a9e73010cf1c4cef338709860deeb0"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-38603.json"}}],"schema_version":"1.7.5"}