VDB

CVE-2023-52462

CVE-2023-52462 PUBLISHED

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.

PackageEcosystemFixed in
kernel-develAmazon Linux6.1.75-99.163.amzn2023
kernel-toolsAmazon Linux6.1.75-99.163.amzn2023
LinuxLinux5.16, 5.10.209

Affected products

VendorProductVersions
LinuxLinuxcdd73a5ed0840da88a3b9ad353f568e6f156d417, 07c286c10a9cedbd71f20269ff3a4e73d9aab2fe, 27113c59b6d0a587b29ae72d4ff3f832f58b0651
LinuxLinux5.16, 0, 5.10.209
amazon:2023kernel-devel0
amazon:2023kernel-tools0
LinuxLinux07c286c10a9cedbd71f20269ff3a4e73d9aab2fe, 27113c59b6d0a587b29ae72d4ff3f832f58b0651, 27113c59b6d0a587b29ae72d4ff3f832f58b0651
amazon:2023perf0
linuxlinux_kernel5.16, 5.10.163, 5.16
amazon:2023kernel-libbpf-devel0
amazon:2023kernel0
amazon:2023python3-perf0
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.1.75-99.1630
amazon:2023kernel-libbpf0
amazon:2023kernel-tools-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-modules-extra0
amazon:2023kernel-headers0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›