Critical Vulnerability in Linux Kernel: bpf may_goto Negative Offset Issue

linux Updated 02 Oct 2025

Summary

29/07/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-42072: In the Linux kernel, the following vulnerability has been resolved: bpf: Fix may_goto with negative offset. Affects linux versions < 6.9.8-1. Fixed in 6.9.8-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 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 Linux kernel is the core component of many operating systems, managing hardware and system resources. It provides essential services for all other parts of the operating system. The kernel is known for its robustness and flexibility, but like any software, it can have vulnerabilities. This specific issue affects the bpf (Berkeley Packet Filter) functionality within the kernel, which is crucial for network packet filtering and monitoring.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the bpf implementation related to the may_goto function. This issue arises when a crafted bpf program exposes bugs in the way may_goto handles negative offsets. The first bug pertains to the incorrect patching method for negative offsets, while the second bug involves the verifier's handling of infinite loops. When the current state of may_goto_depth equals the visited state, it indicates an actual infinite loop, which should not be pruned during program exploration. This vulnerability could lead to unexpected behavior or crashes in systems relying on bpf for packet filtering.

How To Fix

Minimum fixed version

6.9.8-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 mentioned for this vulnerability. The best course of action is to apply the patch by updating the package.

Conclusion

The vulnerability in the Linux kernel's bpf may_goto function poses significant risks to systems relying on this functionality. It is crucial for users to update their Linux packages to the patched version 6.9.8-1 or later to ensure system integrity and security. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability involves incorrect handling of negative offsets in the bpf may_goto function, which can lead to infinite loops and unexpected behavior.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to install any software.

If exploited, this vulnerability could lead to system crashes or erratic behavior in applications relying on the bpf functionality for network operations.

Yes, versions prior to 6.9.8-1 are affected by this vulnerability. It is recommended to upgrade to the patched version to mitigate risks.

Detailed information can be found in the official Debian CVE database or by visiting the Vulert website, which provides real-time monitoring for open-source vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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

Minimum fixed version

6.9.8-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