Race Condition Vulnerability in ubifs Package

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001441: ubifs: Fix 'ui->dirty' race between do_tmpfile() and writeback work. Affects Kernel versions >= 474b93704f32163af4bfa728fddc570eba357353, < f3bdd3b7415fe4e3337bc34a2842cf1adba5c378. 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 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 ubifs package is a file system designed for use on flash devices. It is a part of the Linux Kernel ecosystem. The package provides a reliable and efficient file system for flash storage, ensuring data integrity and minimizing wear on the flash memory. However, a race condition vulnerability has been identified in the package, which can lead to potential security risks.

Vulnerability Detail

The race condition vulnerability in ubifs arises due to a race condition between the 'do_tmpfile()' function and the writeback work. This vulnerability can be exploited by an attacker to manipulate the file system and potentially gain unauthorized access or execute arbitrary code. The vulnerability was introduced in version v4.9 of the Linux Kernel and has been fixed in version v5.16.19 by commit f3bdd3b7415fe4e3337bc34a2842cf1adba5c378.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.16.19 or later. This can be done by pulling the latest updates from the official Linux Kernel repository. Additionally, it is advisable to regularly update the kernel to ensure the latest security patches are applied.

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 possible workaround is to implement proper synchronization mechanisms in the affected code to prevent the race condition. This can involve using locks or other concurrency control techniques to ensure the integrity of the file system operations.

Conclusion

The race condition vulnerability in the ubifs package can pose significant security risks. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. Regularly updating the kernel and implementing proper synchronization mechanisms can help ensure the integrity and security of the file system operations. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ubifs is a file system designed for use on flash devices. It provides a reliable and efficient file system for flash storage, minimizing wear on the flash memory.

A race condition is a software vulnerability that occurs when multiple threads or processes access shared resources concurrently, leading to unexpected and potentially harmful behavior.

The race condition vulnerability in ubifs can be exploited by an attacker to manipulate the file system and potentially gain unauthorized access or execute arbitrary code.

The vulnerability was introduced in version v4.9 of the Linux Kernel.

Yes, the vulnerability has been fixed in version v5.16.19 of the Linux Kernel.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.16.19 or later. This can be done by pulling the latest updates from the official Linux Kernel repository. Additionally, it is advisable to regularly update the kernel to ensure the latest security patches are applied.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.