Race Condition Vulnerability in ubifs Package

Kernel Updated 02 Oct 2025

Summary

03/08/2021
N/A
No i
Unrated
Not published

GSD-2021-1001294: ubifs: Fix races between xattr_{set|get} and listxattr operations. Affects Kernel versions >= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, < 38dde03eb239605f428f3f1e4baa73d4933a4cc6. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The ubifs package is a component of the Linux Kernel, which is responsible for the Unsorted Block Image File System. It provides a file system implementation for flash memory devices. The package allows for the storage of extended attributes (xattrs) on files and directories. However, a race condition vulnerability has been identified in the xattr_{set|get} and listxattr operations of ubifs, which can lead to potential security issues.

Vulnerability Detail

The race condition vulnerability in ubifs occurs when multiple threads or processes attempt to perform xattr_{set|get} and listxattr operations simultaneously. This can result in inconsistent or incorrect handling of extended attributes, potentially leading to data corruption or unauthorized access to sensitive information. The vulnerability was introduced in version v2.6.27 of the Linux Kernel and has been fixed in version v5.10.51.

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 workaround, it is advisable to avoid concurrent xattr_{set|get} and listxattr operations in ubifs. This can be achieved by implementing proper synchronization mechanisms, such as locks or semaphores, to ensure that only one operation is performed at a time. Here is an example of how to use a lock to prevent concurrent operations:

#include <linux/mutex.h>

static DEFINE_MUTEX(xattr_mutex);

void set_xattr(const char *path, const char *name, const void *value, size_t size)
{
    mutex_lock(&xattr_mutex);
    // Perform xattr set operation
    mutex_unlock(&xattr_mutex);
}

void get_xattr(const char *path, const char *name, void *value, size_t size)
{
    mutex_lock(&xattr_mutex);
    // Perform xattr get operation
    mutex_unlock(&xattr_mutex);
}

void list_xattr(const char *path, char *list, size_t size)
{
    mutex_lock(&xattr_mutex);
    // Perform listxattr operation
    mutex_unlock(&xattr_mutex);
}

Conclusion

In conclusion, the race condition vulnerability in ubifs can lead to data corruption or unauthorized access to sensitive information. It is crucial to update the Linux Kernel to version v5.10.51 or later to mitigate this vulnerability. Implementing proper synchronization mechanisms can also serve as a temporary workaround. 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 implementation for flash memory devices in the Linux Kernel. It provides a way to store and manage data on flash storage efficiently.

The race condition vulnerability in ubifs can lead to data corruption or unauthorized access to sensitive information. It is important to apply the fix to ensure the integrity and security of the system.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and it will analyze the dependencies for any known vulnerabilities.

Yes, a workaround is available for this vulnerability. It involves implementing proper synchronization mechanisms, such as locks or semaphores, to prevent concurrent xattr_{set|get} and listxattr operations.

You can find detailed instructions on how to update the Linux Kernel in the official documentation provided by the Linux Kernel community.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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