mtd: Require Write Permissions for Locking and Badblock IOCTLs

Kernel Updated 02 Oct 2025

Summary

31/05/2021
N/A
No i
Unrated
Not published

UVI-2021-1000475: mtd: require write permissions for locking and badblock ioctls. Affects Kernel versions >= 389c74c218d3b182e9cd767e98cee0e0fd0dabaa, < f73b29819c6314c0ba8b7d5892dfb03487424bee. 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 Kernel package in the Linux ecosystem is responsible for managing the core functionality of the operating system. It provides essential services and interfaces for hardware, software, and user applications. The MTD (Memory Technology Devices) subsystem within the Kernel is specifically designed to handle flash memory devices. It allows for efficient management and access to flash storage, including locking and badblock operations.

Vulnerability Detail

The vulnerability identified as UVI-2021-1000475 in the MTD subsystem of the Kernel allows unauthorized users to perform locking and badblock operations without requiring write permissions. This means that an attacker with read-only access to the flash memory device can manipulate its state, potentially leading to data corruption, denial of service, or other security breaches. The vulnerability was introduced in version v4.14.194 of the Linux Kernel and was fixed in version v4.14.233.

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 restrict access to the flash memory device by modifying the permissions or access control settings. By ensuring that only trusted users or processes have write permissions to the device, the risk of unauthorized manipulation can be mitigated. Here is an example of how to modify permissions using the 'chmod' command:

chmod o-w /dev/mtdX

Replace '/dev/mtdX' with the actual device path of the flash memory.

Conclusion

The vulnerability in the MTD subsystem of the Linux Kernel allows unauthorized users to perform locking and badblock operations without requiring write permissions. To mitigate this risk, it is crucial to update the Kernel to version v4.14.233 or later. Additionally, restricting write access to the flash memory device can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability allows unauthorized users to manipulate the state of flash memory devices, potentially leading to data corruption, denial of service, or other security breaches.

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 in real-time.

Yes, as a temporary workaround, you can modify the permissions or access control settings of the flash memory device to restrict write access. Refer to the 'workaround' section for more details.

Yes, this vulnerability has been fixed in Linux Kernel version v4.14.233. It is recommended to update to this version or later to ensure the security of your system.

You can find more information about this vulnerability in the Open Source Vulnerability Database (OSVDB) entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/UVI-2021-1000475.json

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