CVE-2021-47055

mtd: require write permissions for locking and badblock ioctls

MEDIUM
5.5
CVSS Score
Published: February 29, 2024 at 10:37 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: mtd: require write permissions for locking and badblock ioctls MEMLOCK, MEMUNLOCK and OTPLOCK modify protection bits. Thus require write permission. Depending on the hardware MEMLOCK might even be write-once, e.g. for SPI-NOR flashes with their WP# tied to GND. OTPLOCK is always write-once. MEMSETBADBLOCK modifies the bad block table.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.7.15v ≥ 5.8.14.14.194 ≤ v < 4.14.2334.19.139 ≤ v < 4.19.1914.4.233 ≤ v < 4.4.2694.9.233 ≤ v < 4.9.2695.11 ≤ v < 5.11.215.12 ≤ v < 5.12.45.4.58 ≤ v < 5.4.1195.7.15 ≤ v < 5.85.8.1 ≤ v < 5.95.9 ≤ v < 5.10.375.9 ≤ v < 5.11.215.9 ≤ v < 5.12.45.9 ≤ v < 5.131c9f9125892a43901438bf704ada6b7019e2a88436a8b2f49235e63ab3f901fe12e1b6732f075c2e389c74c218d3b182e9cd767e98cee0e0fd0dabaa4.14.1944.19.1394.4.2334.9.2335.4.585.7.155.8.15.9583d42400532fbd6228b0254d7c732b771e4750d9a53e8bd59d9f070505e51d3fd19606a270e6b93ab1a602a9cea98aa37b2e6851b168d2a2633a58deb3d82abc335624a5e8ecfb75aba0b684e2dc4dbf7e6b19bc76471ba03725fe58e0c218a3d6266c3
Vendor states this is fixed in 077259f5e777c3c8821f6b41dee709fcda27306b (fixed)
Vendor states this is fixed in 1e97743fd180981bef5f01402342bb54bf1c6366 (fixed)
Vendor states this is fixed in 5880afefe0cb9b2d5e801816acd58bfe91a96981 (fixed)
Vendor states this is fixed in 75ed985bd6c8ac1d4e673e93ea9d96c9908c1d37 (fixed)
Vendor states this is fixed in 7b6552719c0ccbbea29dde4be141da54fdb5877e (fixed)
Vendor states this is fixed in 9625b00cac6630479c0ff4b9fafa88bee636e1f0 (fixed)
Vendor states this is fixed in a08799d3e8c8088640956237c183f83463c39668 (fixed)
Vendor states this is fixed in f4d28d8b9b0e7c4ae04214b8d7e0b0466ec6bcaf (fixed)
Vendor states this is fixed in f73b29819c6314c0ba8b7d5892dfb03487424bee (fixed)
Vendor states this is fixed in 4.14.233 (unaffected)
Vendor states this is fixed in 4.19.191 (unaffected)
Vendor states this is fixed in 4.4.269 (unaffected)
Vendor states this is fixed in 4.9.269 (unaffected)
Vendor states this is fixed in 5.10.37 (unaffected)
Vendor states this is fixed in 5.11.21 (unaffected)
Vendor states this is fixed in 5.12.4 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4.119 (unaffected)
Affected range stops below 5.8, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.9 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/077259f5e777c3c8821f6b41dee709fcda27306b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1e97743fd180981bef5f01402342bb54bf1c6366
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5880afefe0cb9b2d5e801816acd58bfe91a96981
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/75ed985bd6c8ac1d4e673e93ea9d96c9908c1d37
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7b6552719c0ccbbea29dde4be141da54fdb5877e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9625b00cac6630479c0ff4b9fafa88bee636e1f0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a08799d3e8c8088640956237c183f83463c39668
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f4d28d8b9b0e7c4ae04214b8d7e0b0466ec6bcaf

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card