Integer Overflow Vulnerability in bpf Package

Kernel Updated 02 Oct 2025

Summary

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

GSD-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The bpf package is a component of the Linux Kernel, which is responsible for implementing Berkeley Packet Filters (BPF). BPF is a virtual machine that allows user-defined programs to run in the kernel, enabling efficient packet filtering and network monitoring. The bpf package provides the necessary infrastructure and APIs for managing BPF programs and maps. However, a vulnerability has been discovered in the package that can lead to an integer overflow.

Vulnerability Detail

The integer overflow vulnerability in the bpf package occurs in the prealloc_elems_and_freelist() function. This vulnerability can be exploited by an attacker to cause a heap buffer overflow, potentially leading to arbitrary code execution or denial of service. The vulnerability was introduced in version v4.6 of the Linux Kernel and has been fixed in version v5.4.153. The impact and attack plausibility of this vulnerability have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.153 or later. This update includes the commit b14f28126c51533bb329379f65de5b0dd689b13a, which addresses the integer overflow issue. Users can obtain the updated kernel from the official Linux Kernel repository: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/

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

Conclusion

In conclusion, the bpf package in the Linux Kernel is vulnerable to an integer overflow issue. This vulnerability can potentially lead to arbitrary code execution or denial of service. It is crucial to update the Linux Kernel to version v5.4.153 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The bpf package is a component of the Linux Kernel that implements Berkeley Packet Filters (BPF), allowing user-defined programs to run in the kernel for efficient packet filtering and network monitoring.

The impact of this vulnerability can be severe, potentially leading to arbitrary code execution or denial of service if exploited by an attacker.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.153 or later, which includes the necessary fix for the integer overflow issue.

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

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.153 or later. This update includes the commit b14f28126c51533bb329379f65de5b0dd689b13a, which addresses the integer overflow issue. Users can obtain the updated kernel from the official Linux Kernel repository: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.