Integer Overflow or Wraparound Affecting github.com/cilium/ebpf/btf package, versions <0.22.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCILIUMEBPFBTF-17810931
  • published3 Jul 2026
  • disclosed3 Jun 2026
  • creditUnknown

Introduced: 3 Jun 2026

CVE-2026-10722  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade github.com/cilium/ebpf/btf to version 0.22.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the loadRawSpec function when parsing BTF collection specifications. An attacker can cause excessive memory allocation or parsing failures by supplying a malicious collection specification to a process that uses LoadCollectionSpec or LoadCollectionSpecFromReader.

CVSS Base Scores

version 4.0
version 3.1