Skip to content
Heist/ feed
Back to feed
UnratedFix available

perf: hisi: Fix use-after-free when register pmu fails

Type: advisorySources: OSV

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 cpuhp_state_remove_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 cpuhp_state_remove_instance_nocalls() instead of cpuhp_state_remove_instance() so that the notifiers don't execute after the PMU device has been failed to register.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.139, 6.1.63, 6.5.12, 6.6.2
CVEs
CVE-2023-52859
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 00:51 UTC · Revision 1

Source evidence

perf: hisi: Fix use-after-free when register pmu fails

core-osv · Original source

Published 21 May 2024, 15:31 UTC

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 cpuhp_state_remove_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 cpuhp_state_remove_instance_nocalls() instead of cpuhp_state_remove_instance() so that the notifiers don't execute after the PMU device has been failed to register.

osv:CVE-2023-52859

Kernel

Fixed versions: 5.15.139, 6.1.63, 6.5.12, 6.6.2

Complete source record
{
  "id": "aee814817534da4ec44e93506d6c6c10811a5b246704b8d6440fe75d3b7e4c8e",
  "url": "https://osv.dev/vulnerability/CVE-2023-52859",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "perf: hisi: Fix use-after-free when register pmu fails",
    "summary": "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 cpuhp_state_remove_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 cpuhp_state_remove_instance_nocalls() instead of cpuhp_state_remove_instance() so that the notifiers don't execute after the PMU device has been failed to register.",
    "evidence": "osv:CVE-2023-52859",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.139",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.63",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.5.12",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-52859",
      "aliases": [
        "CVE-2023-52859"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3bf30882c3c7b6e376d9d6d04082c9aa2d2ac30a"
                },
                {
                  "fixed": "0e1e88bba286621b886218363de07b319d6208b2"
                },
                {
                  "fixed": "b660420f449d094b1fabfa504889810b3a63cdd5"
                },
                {
                  "fixed": "3405f364f82d4f5407a8b4c519dc15d24b847fda"
                },
                {
                  "fixed": "75bab28ffd05ec8879c197890b1bd1dfec8d3f63"
                },
                {
                  "fixed": "b805cafc604bfdb671fae7347a57f51154afa735"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52859.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.13.0"
                },
                {
                  "fixed": "5.15.139"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.63"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.5.12"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.6.0"
                },
                {
                  "fixed": "6.6.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52859.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.095007337Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0e1e88bba286621b886218363de07b319d6208b2",
        "https://git.kernel.org/stable/c/3405f364f82d4f5407a8b4c519dc15d24b847fda",
        "https://git.kernel.org/stable/c/75bab28ffd05ec8879c197890b1bd1dfec8d3f63",
        "https://git.kernel.org/stable/c/b660420f449d094b1fabfa504889810b3a63cdd5",
        "https://git.kernel.org/stable/c/b805cafc604bfdb671fae7347a57f51154afa735",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52859.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52859",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52859.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52859",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 491317,
  "published_at": "2024-05-21T15:31:52.546+00:00"
}