Stack Overflow Vulnerability in pidfd

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000407: pidfd: fix test failure due to stack overflow on some arches. Affects Kernel versions < 531a56c2e0bfe7269b90eb68035e4d602847ca8b. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel package is a crucial component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The pidfd feature in the Kernel allows processes to be identified and managed using file descriptors. However, a vulnerability has been discovered in the pidfd implementation that can lead to a stack overflow on certain architectures.

Vulnerability Detail

The stack overflow vulnerability in pidfd arises due to insufficient stack space allocation during certain operations. This can be exploited by an attacker to overwrite critical memory regions, potentially leading to arbitrary code execution or system crashes. The impact of this vulnerability depends on the attacker's ability to trigger the stack overflow and the privileges they possess. It is important to note that the actual attack plausibility and impact have not been proven yet.

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 limit the usage of the pidfd feature if it is not essential for their system's functionality. This can be achieved by modifying the system configuration or kernel parameters to prevent processes from obtaining pidfd file descriptors. However, it is important to note that this workaround may impact certain applications or functionalities that rely on the pidfd feature.

Conclusion

The stack overflow vulnerability in pidfd can pose a significant security risk to Linux systems. It is crucial to promptly update the Kernel to the latest version that includes the fix for this vulnerability. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel package is a critical component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software.

pidfd is a feature in the Kernel that allows processes to be identified and managed using file descriptors.

A stack overflow vulnerability occurs when a program's call stack exceeds its allocated stack space, leading to memory corruption and potential code execution.

The stack overflow vulnerability in pidfd can potentially allow an attacker to execute arbitrary code or cause system crashes, depending on their ability to trigger the vulnerability and their privileges.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.102 or later, which includes the necessary fix for the stack overflow issue in pidfd.

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