Skip to content
Heist/ feed
Back to feed
High

Use-after-free in Linux kernel's Performance Events subsystem

Type: advisorySources: OSV

A use-after-free vulnerability in the Linux Kernel Performance Events system can be exploited to achieve local privilege escalation. The perf_group_detach function did not check the event's siblings' attach_state before calling add_event_to_groups(), but remove_on_exec made it possible to call list_del_event() on before detaching from their group, making it possible to use a dangling pointer causing a use-after-free vulnerability. We recommend upgrading past commit fd0815f632c24878e325821943edccc7fde947a2.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-2235
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:45 UTC · Revision 1

Source evidence

Use-after-free in Linux kernel's Performance Events subsystem

core-osv · Original source

Published 1 May 2023, 12:51 UTC

A use-after-free vulnerability in the Linux Kernel Performance Events system can be exploited to achieve local privilege escalation. The perf_group_detach function did not check the event's siblings' attach_state before calling add_event_to_groups(), but remove_on_exec made it possible to call list_del_event() on before detaching from their group, making it possible to use a dangling pointer causing a use-after-free vulnerability. We recommend upgrading past commit fd0815f632c24878e325821943edccc7fde947a2.

osv:CVE-2023-2235
Complete source record
{
  "id": "8e41bf933cb6aa49a70be6a210800fcef51837cbf5cca53b5ce9a9d11eb732a8",
  "url": "https://osv.dev/vulnerability/CVE-2023-2235",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Use-after-free in Linux kernel's Performance Events subsystem",
    "summary": "A use-after-free vulnerability in the Linux Kernel Performance Events system can be exploited to achieve local privilege escalation. The perf_group_detach function did not check the event's siblings' attach_state before calling add_event_to_groups(), but remove_on_exec made it possible to call list_del_event() on before detaching from their group, making it possible to use a dangling pointer causing a use-after-free vulnerability. We recommend upgrading past commit fd0815f632c24878e325821943edccc7fde947a2.",
    "evidence": "osv:CVE-2023-2235",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-2235",
      "aliases": [
        "CVE-2023-2235"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "62fb9874f5da54fdb243003b386128037319b219"
                },
                {
                  "fixed": "457391b0380335d5e9a5babdec90ac53928b23b4"
                },
                {
                  "fixed": "fd0815f632c24878e325821943edccc7fde947a2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5.13"
                      },
                      {
                        "fixed": "6.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "fd0815f632c24878e325821943edccc7fde947a2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.3-rc1",
            "v6.3-rc7",
            "v6.3-rc2",
            "v6.3-rc3",
            "v6.3-rc5",
            "v6.3-rc6",
            "v6.3-rc4",
            "v6.2-rc6",
            "v6.2-rc1",
            "v6.2",
            "v6.2-rc2",
            "v6.2-rc8",
            "v6.2-rc5",
            "v6.2-rc4",
            "v6.2-rc7",
            "v6.2-rc3",
            "v6.1-rc1",
            "v6.1",
            "v6.1-rc8",
            "v6.1-rc3",
            "v6.1-rc6",
            "v6.1-rc7",
            "v6.1-rc4",
            "v6.1-rc2",
            "v6.1-rc5",
            "v6.0-rc1",
            "v6.0",
            "v6.0-rc7",
            "v6.0-rc3",
            "v6.0-rc2",
            "v6.0-rc6",
            "v6.0-rc4",
            "v6.0-rc5",
            "v5.19",
            "v5.19-rc1",
            "v5.19-rc5",
            "v5.19-rc8",
            "v5.19-rc6",
            "v5.18",
            "v5.19-rc2",
            "v5.19-rc7",
            "v5.19-rc3",
            "v5.19-rc4",
            "v5.18-rc1",
            "v5.18-rc7",
            "v5.18-rc2",
            "v5.18-rc5",
            "v5.17",
            "v5.18-rc4",
            "v5.18-rc3",
            "v5.18-rc6",
            "v5.17-rc6",
            "v5.17-rc4",
            "v5.17-rc8",
            "v5.17-rc7",
            "v5.17-rc1",
            "v5.17-rc3",
            "v5.17-rc2",
            "v5.17-rc5",
            "v5.16",
            "v5.16-rc1",
            "v5.16-rc8",
            "v5.16-rc5",
            "v5.16-rc6",
            "v5.16-rc7",
            "v5.16-rc3",
            "v5.16-rc2",
            "v5.16-rc4",
            "v5.15",
            "v5.15-rc2",
            "v5.15-rc1",
            "v5.15-rc4",
            "v5.15-rc7",
            "v5.15-rc3",
            "v5.15-rc5",
            "v5.15-rc6",
            "v5.14",
            "v5.14-rc3",
            "v5.14-rc1",
            "v5.14-rc2",
            "v5.14-rc7",
            "v5.14-rc6",
            "v5.14-rc5",
            "v5.14-rc4",
            "v5.13"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2235.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.418644522Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org",
        "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fd0815f632c24878e325821943edccc7fde947a2",
        "https://kernel.dance/fd0815f632c24878e325821943edccc7fde947a2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2235.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-2235",
        "https://security.netapp.com/advisory/ntap-20230609-0002/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-416"
        ],
        "cna_assigner": "Google",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2235.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-2235",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517861,
  "published_at": "2023-05-01T12:51:25.433+00:00"
}