Race Condition Vulnerability in ubi Package

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001753: ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl. Affects Kernel versions >= 714fb87e8bc05ff78255afc0dca981e8c5242785, < 1a3f1cf87054833242fcd0218de0481cf855f888. 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 ubi package is a component of the Linux Kernel, which is responsible for managing the Unsorted Block Images (UBI) subsystem. UBI provides a way to manage flash storage devices in a flexible manner, allowing for wear-leveling, bad block management, and volume management. The ubi package is critical for devices that utilize flash storage, such as embedded systems and IoT devices.

Vulnerability Detail

The identified vulnerability in the ubi package is a race condition between the ctrl_cdev_ioctl and ubi_cdev_ioctl functions. A race condition occurs when multiple threads or processes access shared resources concurrently, leading to unexpected behavior or security vulnerabilities. In this case, the race condition can be triggered by specific ioctl operations, potentially allowing an attacker to manipulate the state of the UBI subsystem and execute arbitrary code or cause a denial-of-service condition. The vulnerability was introduced in version v4.8 of the Linux Kernel and has been fixed in version v5.15.33.

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, users can apply patches or backports provided by the Linux distribution they are using. These patches should address the race condition and mitigate the vulnerability without requiring a full kernel update. It is important to follow the instructions provided by the distribution's security advisories or support channels to ensure the proper application of the workaround.

Conclusion

The race condition vulnerability in the ubi package of the Linux Kernel can potentially allow attackers to manipulate the UBI subsystem and execute arbitrary code or cause denial-of-service conditions. It is crucial to update the Linux Kernel to version v5.15.33 or apply the recommended patches or backports provided by the Linux distribution to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially allow an attacker to manipulate the state of the UBI subsystem, leading to arbitrary code execution or denial-of-service conditions.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.

At the time of this report, there are no known public exploits for this vulnerability. However, it is important to apply the recommended fixes or workarounds to mitigate the risk.

The vulnerability itself does not provide remote exploitation capabilities. However, if an attacker already has access to a system with the vulnerable ubi package, they may be able to exploit the race condition to escalate privileges or disrupt system functionality.

For more details about this vulnerability, including the specific commits that introduced and fixed it, you can refer to the vulnerability database entry at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001753.json.

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