Vulnerability in Kernel: bpf, sockmap

Kernel Updated 02 Oct 2025

Summary

07/03/2023
N/A
No i
Unrated
Not published

GSD-2023-1002323: bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself. Affects Kernel versions < 7499859881488da97589f3c79cc66fa75748ad49. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces with hardware devices. It acts as a bridge between software applications and the computer's hardware. The bpf (Berkeley Packet Filter) and sockmap are features within the Kernel that allow for efficient packet filtering and socket manipulation. These features are widely used in networking applications and provide essential functionality for network communication.

Vulnerability Detail

The bpf and sockmap features in the Kernel suffer from a vulnerability that allows sock_map_close, sock_map_destroy, and sock_map_unhash functions to call themselves recursively. This recursive calling can lead to a stack overflow, potentially resulting in a denial-of-service (DoS) condition or arbitrary code execution. An attacker could exploit this vulnerability by sending specially crafted packets to a vulnerable system, causing the Kernel to enter an infinite loop and exhaust system resources.

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 the bpf and sockmap features if they are not essential for their system's functionality. This can be done by modifying the Kernel configuration or disabling relevant modules. However, it is strongly advised to apply the official fix by updating the Kernel as soon as possible.

Conclusion

The vulnerability in the Kernel's bpf and sockmap features can lead to a denial-of-service condition or arbitrary code execution. It is crucial to update the Kernel to version v6.1.13 or later to mitigate this vulnerability. Users can also use the Vulert Playground at https://vulert.com/scanner to check if their system is affected and obtain real-time alerts for open-source vulnerabilities. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can lead to a denial-of-service (DoS) condition or arbitrary code execution. An attacker could exploit this issue to crash the system or execute malicious code with elevated privileges.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will analyze it for potential vulnerabilities.

At the time of this report, there are no known public exploits targeting this specific vulnerability. However, it is important to apply the fix promptly to mitigate any potential risks.

While it is possible to temporarily disable the bpf and sockmap features as a workaround, it is strongly recommended to update the Kernel to the latest version. Disabling features may impact the functionality of certain applications or services that rely on these features.

You can refer to the Linux Kernel's official repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ for more details about the fix and the vulnerability. Additionally, the vulnerability details can be found in the Cloud Security Alliance's GSD database at https://github.com/cloudsecurityalliance/gsd-database.

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