CVE-2023-52462
bpf: fix check for attempt to corrupt spilled pointer
Reported by linux · Published February 23, 2024
In the Linux kernel, the following vulnerability has been resolved: bpf: fix check for attempt to corrupt spilled pointer When register is spilled onto a stack as a 1/2/4-byte register, we set slot_type[BPF_REG_SIZE - 1] (plus potentially few more below it, depending on actual spill size). So to check if some stack slot has spilled register we need to consult slot_type[7], not slot_type[0]. To avoid the need to remember and double-check this in the future, just use is_spilled_reg() helper.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 6.1.75-99.163.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.75-99.163.amzn2023 |
| Linux | Linux | 5.16, 5.10.209 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | cdd73a5ed0840da88a3b9ad353f568e6f156d417, 07c286c10a9cedbd71f20269ff3a4e73d9aab2fe, 27113c59b6d0a587b29ae72d4ff3f832f58b0651 |
| Linux | Linux | 5.16, 0, 5.10.209 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| Linux | Linux | 07c286c10a9cedbd71f20269ff3a4e73d9aab2fe, 27113c59b6d0a587b29ae72d4ff3f832f58b0651, 27113c59b6d0a587b29ae72d4ff3f832f58b0651 |
| amazon:2023 | perf | 0 |
| linux | linux_kernel | 5.16, 5.10.163, 5.16 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.1.75-99.163 | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-headers | 0 |
Timeline
- Feb 23, 2024 CVE Published
- Feb 24, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (8 in total, the first dated here)
- Jan 25, 2026 Security Advisory (134 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (122 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-52462
vulnetix vdb fixes CVE-2023-52462
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-52462/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart