CVE-2026-10722: ebpf-go is vulnerable to integer overflow via LoadCollectionSpecFromReader
A vulnerability has been found in cilium ebpf up to 0.21.0. This affects the function loadRawSpec of the file btf/btf.go of the component LoadCollectionSpec/LoadCollectionSpecFromReader. Such manipulation of the argument offset leads to integer overflow. The attack can only be performed from a local environment. The exploit has been disclosed to the public and may be used.
Published Jun 3, 2026 · Updated Aug 17, 2026
Affected packages
github.com/cilium/ebpf
- Ecosystem
- Go
- Affected
- < 0.22.0
- Fixed in
- 0.22.0
- Check
go list -m github.com/cilium/ebpf
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability has been found in cilium ebpf up to 0.21.0. This affects the function loadRawSpec of the file btf/btf.go of the component LoadCollectionSpec/LoadCollectionSpecFromReader. Such manipulation of the argument offset leads to integer overflow. The attack can only be performed from a local environment. The exploit has been disclosed to the public and may be used. The name of the patch is 533dfc82fd228bfadf42ea7180c39de7d9af47fa. A patch should be applied to remediate this issue.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-10722
- https://github.com/cilium/ebpf/issues/2019
- https://github.com/cilium/ebpf/pull/2021
- https://github.com/cilium/ebpf/commit/533dfc82fd228bfadf42ea7180c39de7d9af47fa
- https://gist.github.com/thesmartshadow/256bff0f8042c584f993ace89074a815
- https://github.com/cilium/ebpf
- https://vuldb.com/cve/CVE-2026-10722
- https://vuldb.com/submit/818291
- https://vuldb.com/vuln/368091
- https://vuldb.com/vuln/368091/cti
- https://github.com/advisories/GHSA-xhgw-qwwf-pg32
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
