Vulnerability in Kernel: userfaultfd release page in error path to avoid BUG_ON

Kernel Updated 02 Oct 2025

Summary

31/05/2021
N/A
No i
Unrated
Not published

GSD-2021-1000443: userfaultfd: release page in error path to avoid BUG_ON. Affects Kernel versions >= cb658a453b9327ce96ce5222c24d162b5b65b564, < 07c9b834c97d0fa3402fb7f3f3b32df370a6ff1f. 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 is a critical component of the Linux operating system that provides core functionality and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The userfaultfd feature in the Kernel allows user-space applications to handle page faults directly, providing flexibility and efficiency in memory management.

Vulnerability Detail

The userfaultfd vulnerability arises from a flaw in the error path of the release page function. When encountering an error condition, the page is not released properly, potentially leading to a BUG_ON assertion failure. An attacker could exploit this vulnerability to trigger a denial-of-service (DoS) attack or potentially execute arbitrary code with elevated privileges. The vulnerability was introduced in version v4.11 of the Linux Kernel and has been fixed in version v4.19.191.

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

If updating the Kernel is not immediately feasible, a temporary workaround is to disable the userfaultfd feature. This can be done by modifying the Kernel configuration and rebuilding it without the userfaultfd option enabled. However, disabling this feature may impact the functionality of certain applications that rely on it, so it should only be considered as a temporary measure until the Kernel can be updated.

Conclusion

The userfaultfd vulnerability in the Kernel can potentially lead to a denial-of-service attack or arbitrary code execution. It is crucial to update the Linux Kernel to version v4.19.191 or later to mitigate this vulnerability. If immediate updating is not possible, disabling the userfaultfd feature can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The userfaultfd feature in the Linux Kernel allows user-space applications to handle page faults directly, improving memory management efficiency.

This vulnerability can be exploited by an attacker to trigger a denial-of-service (DoS) attack or potentially execute arbitrary code with elevated privileges.

To fix this vulnerability, update the Linux Kernel to version v4.19.191 or later by downloading the latest stable version from the official Git repository and following the installation instructions.

A temporary workaround is to disable the userfaultfd feature by modifying the Kernel configuration and rebuilding it without the option enabled. However, this may impact the functionality of certain applications.

At the time of this report, no known exploits for this vulnerability have been identified. However, it is important to apply the necessary updates and security patches to mitigate the risk.

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