Race Condition Vulnerability in ubi Package

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001430: ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl. Affects Kernel versions >= 714fb87e8bc05ff78255afc0dca981e8c5242785, < c32fe764191b8ae8b128588beb96e3718d9179d8. 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 UBI (Unsorted Block Images) 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 crucial for devices that utilize flash storage, such as embedded systems and IoT devices.

Vulnerability Detail

The race condition vulnerability in the ubi package occurs due to a race condition between the 'ctrl_cdev_ioctl' and 'ubi_cdev_ioctl' functions. This vulnerability can be exploited by an attacker to manipulate the state of the UBI subsystem, potentially leading to privilege escalation or denial of service. The vulnerability was introduced in version v4.8 of the Linux Kernel and has been fixed in version v5.16.19.

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 temporary workaround, users can disable the affected functionality by unloading the 'ubi' module. This can be done by running the following command as root:

rmmod ubi

However, this workaround will disable the UBI subsystem, which may impact the functionality of devices that rely on it.

Conclusion

The race condition vulnerability in the ubi package of the Linux Kernel can potentially allow an attacker to manipulate the UBI subsystem, leading to privilege escalation or denial of service. It is crucial to update the Linux Kernel to version v5.16.19 or later to fix this vulnerability. Alternatively, users can temporarily disable the affected functionality by unloading the 'ubi' module, but this may impact device functionality. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially allow an attacker to manipulate the state of the UBI subsystem, which may lead to privilege escalation or denial of service.

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 Vulert will analyze it for any open-source vulnerabilities, including this race condition vulnerability in the ubi package.

Yes, a patch for this vulnerability has been included in the Linux Kernel version v5.16.19. It is recommended to update to this version or later to fix the vulnerability.

As a temporary workaround, you can unload the 'ubi' module to disable the affected functionality. However, this may impact the functionality of devices that rely on the UBI subsystem.

At the time of this report, there are no known public exploits for this vulnerability. However, it is always recommended to apply security patches promptly 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