{"id":"CVE-2023-52859","aliases":["CVE-2023-52859"],"related":[],"kind":"vulnerability","state":"published","title":"perf: hisi: Fix use-after-free when register pmu fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: hisi: Fix use-after-free when register pmu fails\n\nWhen we fail to register the uncore pmu, the pmu context may not been\nallocated. The error handing will call cpuhp_state_remove_instance()\nto call uncore pmu offline callback, which migrate the pmu context.\nSince that's liable to lead to some kind of use-after-free.\n\nUse cpuhp_state_remove_instance_nocalls() instead of\ncpuhp_state_remove_instance() so that the notifiers don't execute after\nthe PMU device has been failed to register.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: hisi: Fix use-after-free when register pmu fails\n\nWhen we fail to register the uncore pmu, the pmu context may not been\nallocated. The error handing will call cpuhp_state_remove_instance()\nto call uncore pmu offline callback, which migrate the pmu context.\nSince that's liable to lead to some kind of use-after-free.\n\nUse cpuhp_state_remove_instance_nocalls() instead of\ncpuhp_state_remove_instance() so that the notifiers don't execute after\nthe PMU device has been failed to register.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: perf: hisi: corrige el use after free cuando falla el registro de pmu. Cuando no logramos registrar el pmu sin núcleo, es posible que no se haya asignado el contexto de pmu. El manejo del error llamará a cpuhp_state_remove_instance() para llamar a la devolución de llamada fuera de línea de uncore pmu, que migra el contexto de pmu. Dado que eso puede conducir a algún tipo de use after free. Utilice cpuhp_state_remove_instance_nocalls() en lugar de cpuhp_state_remove_instance() para que los notificadores no se ejecuten después de que el dispositivo PMU no haya podido registrarse.","source":"nvd"}],"published":"2024-05-21T15:31:52.546Z","modified":"2026-06-17T06:43:45.327Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a","fixed":"0e1e88bba286621b886218363de07b319d6208b2","status":"affected"},{"type":"git","introduced":"3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a","fixed":"b660420f449d094b1fabfa504889810b3a63cdd5","status":"affected"},{"type":"git","introduced":"3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a","fixed":"3405f364f82d4f5407a8b4c519dc15d24b847fda","status":"affected"},{"type":"git","introduced":"3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a","fixed":"75bab28ffd05ec8879c197890b1bd1dfec8d3f63","status":"affected"},{"type":"git","introduced":"3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a","fixed":"b805cafc604bfdb671fae7347a57f51154afa735","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.15.139","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.63","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.12","lastAffected":"6.5.*","status":"unaffected"},{"type":"semver","introduced":"6.6.2","lastAffected":"6.6.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.7","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":"5.13","fixed":"5.15.139"},{"status":"affected","introduced":"5.16","fixed":"6.1.63"},{"status":"affected","introduced":"6.2","fixed":"6.5.12"},{"status":"affected","introduced":"6.6","fixed":"6.6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T15:36:28.164Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52859","url":"https://www.cve.org/CVERecord?id=CVE-2023-52859","licence":"CVE Terms of Use","modified":"2026-05-11T19:34:24.320Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52859","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52859","licence":"Public domain","modified":"2026-06-17T06:43:45.327Z"}],"updatedAt":"2026-11-25T22:58:34.058Z","epss":{"score":0.00241,"percentile":0.16395,"date":"2026-12-01T12:00:22.000Z"}}