Integer Overflow Vulnerability in bpf Package

Kernel Updated 02 Oct 2025

Summary

19/10/2021
N/A
No i
Unrated
Not published

UVI-2021-1001584: bpf: Fix integer overflow in prealloc_elems_and_freelist(). Affects Kernel versions >= 557c0c6e7df8e14a46bd7560d193fa5bbc00a858, < b14f28126c51533bb329379f65de5b0dd689b13a. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The bpf package is a component of the Linux Kernel, which is responsible for implementing Berkeley Packet Filters (BPF). BPF provides a framework for executing custom programs within the kernel, primarily used for network packet filtering and analysis. It allows users to define and attach BPF programs to various kernel subsystems, enabling efficient and flexible packet processing. However, a vulnerability has been discovered in the bpf package that could potentially lead to security issues.

Vulnerability Detail

The identified vulnerability in the bpf package is an integer overflow in the prealloc_elems_and_freelist() function. This function is responsible for preallocating elements and creating a freelist for BPF maps. The integer overflow occurs when calculating the number of elements to allocate, leading to a potential buffer overflow or memory corruption. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. The vulnerability was introduced in version v4.6 of the Linux Kernel and has been fixed in version v5.4.153.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Conclusion

The integer overflow vulnerability in the bpf package of the Linux Kernel could allow attackers to execute arbitrary code or cause a denial-of-service condition. It is recommended to update the Linux Kernel to version v5.4.153 or later to fix this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability could allow an attacker to execute arbitrary code or cause a denial-of-service condition.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze and alert you in real-time.

No specific workaround has been provided for this vulnerability. It is recommended to update to the fixed version of the Linux Kernel.

The vulnerability was introduced in version v4.6 of the Linux Kernel and has been fixed in version v5.4.153.

There are no known exploits for this vulnerability at the moment. However, it is crucial to update to the fixed version to mitigate any potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback