Excessive Memory Allocation Vulnerability in bpf

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1002863: bpf: Fix excessive memory allocation in stack_map_alloc(). Affects Kernel versions >= b936ca643ade11f265fa10e5fb71c20d9c5243f1, < a31729c945fdcb9b3eea6fe14a1e94e7d39bd8c6. 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 Penetration testing for web, API and mobile 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 is a virtual machine in the kernel that allows users to run custom programs for packet filtering, network monitoring, and other network-related tasks. It provides a flexible and efficient way to process network packets. However, a vulnerability has been discovered in the bpf package that can lead to excessive memory allocation.

Vulnerability Detail

The vulnerability, identified as GSD-2022-1002863, exists in the stack_map_alloc() function of the bpf package. This function is responsible for allocating memory for stack maps, which are used to track the state of the BPF virtual machine. Due to a flaw in the implementation, the stack_map_alloc() function can allocate excessive amounts of memory, potentially leading to a denial-of-service condition or other memory-related issues. The impact and attack plausibility of this vulnerability have not been proven yet.

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 →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

In conclusion, the bpf package in the Linux Kernel is vulnerable to excessive memory allocation due to a flaw in the stack_map_alloc() function. Users should update their Linux Kernel to version v5.18.2 or later to fix this vulnerability. For further support on vulnerability remediation, 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), providing a virtual machine for running custom programs for packet filtering and network-related tasks.

The impact of this vulnerability is not yet proven, but it could potentially lead to a denial-of-service condition or other memory-related issues.

To fix this vulnerability, update your Linux Kernel to version v5.18.2 or later.

No specific workarounds have been mentioned for this vulnerability.

For more details about this vulnerability, refer to the source link provided in the database_specific section of the vulnerability details.

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