CVE-2023-2235
Use-after-free in Linux kernel's Performance Events subsystem
Reported by google · Published May 1, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 6.1.21-1.45.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.21-1.45.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.21-1.45.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.21-1.45.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.21-1.45.amzn2023 |
| kernel | Amazon Linux | 6.1.21-1.45.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.21-1.45.amzn2023 |
| kernel-livepatch-6.1.21-1.45 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.21-1.45.amzn2023 |
| python3-perf | Amazon Linux | 6.1.21-1.45.amzn2023 |
| bpftool | Amazon Linux | 6.1.21-1.45.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.21-1.45.amzn2023 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | 5.13 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.21-1.45 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| Linux | Linux Kernel | 5.13 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-tools | 0 |
Timeline
- May 1, 2023 CVE Published
- May 2, 2023 EPSS Score (30 in total, the first dated here)
- Apr 10, 2025 CVE Updated
- Mar 21, 2026 Distribution Patch (55 in total, the first dated here)
- Mar 21, 2026 Security Advisory (59 in total, the first dated here)
- May 19, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-2235
vulnetix vdb fixes CVE-2023-2235
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-2235/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart