In the Linux kernel, the following vulnerability has been resolved:
perf: hisi: Fix use-after-free when register pmu fails
When we fail to register the uncore pmu, the pmu context may not been allocated. The error handing will call cpuhpstateremove_instance() to call uncore pmu offline callback, which migrate the pmu context. Since that's liable to lead to some kind of use-after-free.
Use cpuhpstateremoveinstancenocalls() instead of cpuhpstateremove_instance() so that the notifiers don't execute after the PMU device has been failed to register.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3405f364f82d4f5407a8b4c519dc15d24b847fda",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_pa_pmu.c"
},
"id": "CVE-2023-52859-04a1954f",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"317508822998760000082028456267847551884",
"121056668373399858919765859455033505306",
"308512263145817830994396709267885874066",
"271182343199059965137303066992961107241",
"1804128790279108481794307427086941557"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b805cafc604bfdb671fae7347a57f51154afa735",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c"
},
"id": "CVE-2023-52859-10053693",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"340159765205851963293008564319245340279",
"101719436715710787985895008534051686712",
"235371965645719806232236585716460286217",
"228411599470516441975333756621849443188",
"76126466240540131413834109342959121436"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@75bab28ffd05ec8879c197890b1bd1dfec8d3f63",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c"
},
"id": "CVE-2023-52859-189150cf",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"340159765205851963293008564319245340279",
"101719436715710787985895008534051686712",
"235371965645719806232236585716460286217",
"228411599470516441975333756621849443188",
"76126466240540131413834109342959121436"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@75bab28ffd05ec8879c197890b1bd1dfec8d3f63",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_pa_pmu.c"
},
"id": "CVE-2023-52859-833e1094",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"317508822998760000082028456267847551884",
"121056668373399858919765859455033505306",
"308512263145817830994396709267885874066",
"271182343199059965137303066992961107241",
"1804128790279108481794307427086941557"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e1e88bba286621b886218363de07b319d6208b2",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c"
},
"id": "CVE-2023-52859-acc1804c",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"340159765205851963293008564319245340279",
"101719436715710787985895008534051686712",
"235371965645719806232236585716460286217",
"228411599470516441975333756621849443188",
"76126466240540131413834109342959121436"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e1e88bba286621b886218363de07b319d6208b2",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_pa_pmu.c"
},
"id": "CVE-2023-52859-b567f45d",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"317508822998760000082028456267847551884",
"121056668373399858919765859455033505306",
"308512263145817830994396709267885874066",
"271182343199059965137303066992961107241",
"1804128790279108481794307427086941557"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3405f364f82d4f5407a8b4c519dc15d24b847fda",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c"
},
"id": "CVE-2023-52859-b945763a",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"340159765205851963293008564319245340279",
"101719436715710787985895008534051686712",
"235371965645719806232236585716460286217",
"228411599470516441975333756621849443188",
"76126466240540131413834109342959121436"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b805cafc604bfdb671fae7347a57f51154afa735",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_pa_pmu.c"
},
"id": "CVE-2023-52859-ba070950",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"317508822998760000082028456267847551884",
"121056668373399858919765859455033505306",
"308512263145817830994396709267885874066",
"271182343199059965137303066992961107241",
"1804128790279108481794307427086941557"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b660420f449d094b1fabfa504889810b3a63cdd5",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_pa_pmu.c"
},
"id": "CVE-2023-52859-dc788571",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"317508822998760000082028456267847551884",
"121056668373399858919765859455033505306",
"308512263145817830994396709267885874066",
"271182343199059965137303066992961107241",
"1804128790279108481794307427086941557"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b660420f449d094b1fabfa504889810b3a63cdd5",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c"
},
"id": "CVE-2023-52859-ecd2051d",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"340159765205851963293008564319245340279",
"101719436715710787985895008534051686712",
"235371965645719806232236585716460286217",
"228411599470516441975333756621849443188",
"76126466240540131413834109342959121436"
]
}
}
]