Race Condition Vulnerability in ubifs Package

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001118: ubifs: Fix 'ui->dirty' race between do_tmpfile() and writeback work. Affects Kernel versions >= 474b93704f32163af4bfa728fddc570eba357353, < 52b18c0b28a58d7f83ed497abdf95c9361189f66. 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 component of the Linux Kernel, which is responsible for managing the UBIFS file system. UBIFS is a flash-based file system designed for use on NAND flash memory devices. It provides wear-leveling, compression, and other features optimized for flash storage. The package is widely used in embedded systems and devices that rely on flash memory for storage.

Vulnerability Detail

The identified vulnerability in the ubifs package is a race condition between the 'do_tmpfile()' function and the writeback work. This race condition can lead to a situation where the 'ui->dirty' flag is not properly synchronized, potentially resulting in data corruption or other unexpected behavior. An attacker could potentially exploit this vulnerability to manipulate or corrupt data stored on the UBIFS file system.

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 Linux Kernel is not immediately feasible, a possible workaround is to avoid scenarios where the 'do_tmpfile()' function and writeback work are executed concurrently. This can be achieved by carefully managing the sequence of operations or introducing synchronization mechanisms to prevent the race condition. However, applying the official fix by updating the Linux Kernel is highly recommended.

Conclusion

The identified race condition vulnerability in the ubifs package can potentially lead to data corruption or unexpected behavior. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The ubifs package is a component of the Linux Kernel that manages the UBIFS file system, designed for use on NAND flash memory devices.

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

The race condition in the ubifs package can result in data corruption or other unexpected behavior, potentially leading to system instability or loss of data.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.17.2 or later, which includes the necessary fix for the race condition.

If updating the Linux Kernel is not immediately feasible, a possible workaround is to carefully manage the sequence of operations or introduce synchronization mechanisms to prevent the race condition.

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