{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-38603","id":"CVE-2024-38603","title":"drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()","description":"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.","descriptionLong":"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.","published":"2024-06-19T13:48:14.426Z","updated":"2026-10-28T02:31:14.065859121Z","reserved":"2024-06-18T19:36:34.933Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","lessThan":"1491a01ef5a98149048b12e208f6ed8e86ad10b9","status":"affected","versionType":"git"},{"version":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","lessThan":"a7678a16c25b6ece1667ac681e3e783ff3de7a6f","status":"affected","versionType":"git"},{"version":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","lessThan":"2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782","status":"affected","versionType":"git"},{"version":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","lessThan":"b1e86f1ef8fa796f8935be392457639f3a907d91","status":"affected","versionType":"git"},{"version":"66637ab137b44914356a9dc7a9b3f8ebcf0b0695","lessThan":"582c1aeee0a9e73010cf1c4cef338709860deeb0","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","lessThan":"6.0","status":"unaffected","versionType":"semver"},{"version":"6.1.93","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.33","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.8.12","lessThanOrEqual":"6.8.*","status":"unaffected","versionType":"semver"},{"version":"6.9.3","lessThanOrEqual":"6.9.*","status":"unaffected","versionType":"semver"},{"version":"6.10","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/1491a01ef5a98149048b12e208f6ed8e86ad10b9","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/a7678a16c25b6ece1667ac681e3e783ff3de7a6f","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/b1e86f1ef8fa796f8935be392457639f3a907d91","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/582c1aeee0a9e73010cf1c4cef338709860deeb0","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38603.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38603","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00211,"epssPercentile":0.11542,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-38603","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38603","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-38603","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-38603","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}