BPF Program Deletion Restriction in Linux Kernel: CVE-2024-38662

linux Updated 02 Oct 2025

Summary

21/06/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-38662: In the Linux kernel, the following vulnerability has been resolved: bpf: Allow delete from sockmap/sockhash only if update is allowed We have seen an influx of syzkaller reports where a BPF program attached to a tracepoi... Affects linux versions < 5.10.221-1. Fixed in 5.10.221-1. 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 Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It supports various functionalities, including process management, memory management, and device control. The kernel's BPF (Berkeley Packet Filter) subsystem allows for advanced packet filtering and network monitoring. However, it has been found vulnerable to improper handling of deletion operations in sockmap and sockhash, which can lead to security violations.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified where BPF programs could improperly delete entries from sockmap and sockhash without the necessary permissions. This issue arose from a lack of verification in the BPF verifier, which allowed certain programs to bypass restrictions intended to prevent locking rule violations. The ramifications of this vulnerability include potential system instability and security risks, as unauthorized deletions could disrupt network operations and lead to data integrity issues.

How To Fix

Minimum fixed version

5.10.221-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. It is recommended to apply the patch as soon as it is available to mitigate any risks associated with this issue.

Conclusion

The vulnerability CVE-2024-38662 in the Linux kernel poses significant risks related to BPF program operations on sockmap and sockhash. Users are strongly advised to update their kernel packages to the patched versions to ensure system security and stability.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-38662 is a vulnerability in the Linux kernel that allows BPF programs to delete entries from sockmap and sockhash without proper permissions.

This vulnerability can lead to system instability and security risks, as unauthorized deletions may disrupt network operations and compromise data integrity.

The vulnerability affects multiple Debian versions, including Debian 11, 12, 13, and 14, with specific fixed versions available.

You can use Vulert, which monitors open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without needing to sign up.

While there are no specific workarounds, it is crucial to monitor your system for any unusual behavior and plan to apply the patch as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.10.221-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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.