Stack Corruption Vulnerability in Linux Kernel due to BPF Memory Allocation

linux Updated 02 Oct 2025

Summary

09/11/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-50253: In the Linux kernel, the following vulnerability has been resolved: bpf: Check the validity of nr_words in bpf_iter_bits_new() Check the validity of nr_words in bpf_iter_bits_new(). Affects linux versions < 6.11.7-1. Fixed in 6.11.7-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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for all other parts of the system. It manages hardware resources and enables communication between software and hardware. The kernel is crucial for system stability and performance. This vulnerability affects the BPF (Berkeley Packet Filter) subsystem, which is used for network packet filtering and monitoring. The issue arises from improper validation of memory allocation parameters, potentially leading to severe system instability.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the BPF subsystem, specifically in the function bpf_iter_bits_new(). The vulnerability stems from a lack of validation for the variable nr_words, which can lead to multiplication overflow. For instance, if nr_words is set to 0x0400-0001, it can cause nr_bits to become 64, resulting in stack corruption during memory read operations. This flaw can compromise system integrity and lead to unexpected behavior or crashes.

How To Fix

Minimum fixed version

6.11.7-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 as described above.

Conclusion

The vulnerability identified in the Linux kernel's BPF subsystem poses a significant risk due to potential stack corruption. Users are strongly encouraged to update their systems to the patched version to ensure stability and security. Monitoring tools like Vulert can assist in identifying vulnerabilities in open-source software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is a stack corruption issue in the Linux kernel's BPF subsystem due to improper validation of memory allocation parameters.

Exploitation of this vulnerability can lead to system instability, unexpected behavior, or crashes, potentially compromising the integrity of the system.

Yes, a patch is available in version 6.11.7-1 of the Linux package. Users are advised to update to this version or later.

While there are no specific workarounds, it is crucial to plan for an update as soon as possible to mitigate the risk associated with this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using a manifest file like package-lock.json. You can also check your application against this vulnerability using the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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