Vulnerability in Kernel Package: bpf, sockmap

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001520: bpf, sockmap: Fix more uncharged while msg has more_data. Affects Kernel versions >= 604326b41a6fb9b4a78b6179335decee0365cd8c, < 87d532d41ef937e16f61b3d2094f3a2ac49be365. 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 Kernel package is a fundamental component of the Linux operating system that provides core functionalities and interfaces between the hardware and software layers. It includes various subsystems and modules, such as networking, memory management, and device drivers. The bpf (Berkeley Packet Filter) and sockmap modules within the Kernel package are responsible for packet filtering and socket mapping, respectively. These modules allow for efficient packet processing and manipulation within the kernel space. However, a vulnerability has been identified in the bpf and sockmap modules, which could lead to potential security risks.

Vulnerability Detail

The vulnerability in the bpf and sockmap modules arises from an issue where resources are not properly accounted for when processing messages with the 'more_data' flag set. This can result in uncharged resources, leading to potential memory leaks or other resource exhaustion scenarios. An attacker could potentially exploit this vulnerability to cause denial-of-service conditions or execute arbitrary code within the kernel context. The vulnerability was introduced in version v4.20 of the Linux Kernel and has been fixed in version v5.16.19.

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

As a temporary workaround, users can disable or restrict the usage of the bpf and sockmap modules if they are not essential for their system's functionality. This can be achieved by modifying the kernel configuration or blacklisting the modules. However, it is recommended to apply the official fix as soon as possible to ensure comprehensive security.

Conclusion

In conclusion, a vulnerability has been identified in the bpf and sockmap modules of the Kernel package, which could lead to potential denial-of-service conditions or arbitrary code execution. It is crucial to update the Kernel package to version v5.16.19 or later to mitigate this vulnerability. Users can also utilize the Vulert Playground (https://vulert.com/scanner) to check if their system is affected and receive real-time vulnerability alerts. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially lead to denial-of-service conditions or arbitrary code execution within the kernel context, posing a significant security risk.

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 and the Vulert platform will provide real-time alerts for open-source vulnerabilities, including this one.

At the time of this report, there is no known public exploit for this vulnerability. However, it is crucial to apply the fix promptly to mitigate any potential risks.

Yes, this vulnerability can be exploited remotely if an attacker can send specially crafted packets or messages to the affected system.

As a temporary measure, you can disable or restrict the usage of the bpf and sockmap modules if they are not essential for your system's functionality. However, it is strongly recommended to apply the official fix as soon as possible.

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.

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