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

GSD-2021-1000459: mtd: require write permissions for locking and badblock ioctls. Affects Kernel versions >= ab1a602a9cea98aa37b2e6851b168d2a2633a58d, < 75ed985bd6c8ac1d4e673e93ea9d96c9908c1d37. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The mtd package is a component of the Linux Kernel that provides support for Memory Technology Devices (MTDs). MTDs are a type of flash memory commonly used in embedded systems. The mtd package allows for the management and control of MTD devices, including operations such as locking and handling bad blocks. These operations are critical for ensuring the integrity and reliability of the flash memory.

Vulnerability Detail

The vulnerability identified in the mtd package allows for unauthorized access to locking and badblock IOCTLs (Input/Output Control) without requiring write permissions. This means that an attacker with read-only access to the MTD device can still perform locking and badblock operations, potentially leading to data corruption or denial of service. The vulnerability was introduced in version v4.19.139 of the Linux Kernel and was fixed in version v4.19.191.

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

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by updating the Linux Kernel.

Conclusion

The mtd package in the Linux Kernel is vulnerable to unauthorized access to locking and badblock IOCTLs without write permissions. This vulnerability can lead to data corruption or denial of service. It is crucial to update the Linux Kernel to version v4.19.191 or later to fix the issue. No known workaround is available. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability allows for unauthorized access to critical operations in the mtd package, potentially leading to data corruption or denial of service.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time alerts for open-source vulnerabilities.

At the time of this report, there is no known exploit for this vulnerability. However, it is crucial to apply the recommended fix to mitigate any potential risks.

No, this vulnerability requires local access to the MTD device. However, it is still important to address the issue to prevent any potential unauthorized access.

There are no reported incidents related to this vulnerability at the time of this report. However, it is recommended to apply the fix as a proactive measure.

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