CVE-2021-47055

mtd: require write permissions for locking and badblock ioctls

7.1 high EPSS 0.20%

Published 29 Feb 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2021-47055

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47055 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.1 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 1 Mar 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1c9f9125892a43901438bf704ada6b7019e2a884, before f4d28d8b9b0e7c4ae04214b8d7e0b0466ec6bcaf
affected from 583d42400532fbd6228b0254d7c732b771e4750d, before 9625b00cac6630479c0ff4b9fafa88bee636e1f0
affected from 389c74c218d3b182e9cd767e98cee0e0fd0dabaa, before f73b29819c6314c0ba8b7d5892dfb03487424bee
affected from ab1a602a9cea98aa37b2e6851b168d2a2633a58d, before 75ed985bd6c8ac1d4e673e93ea9d96c9908c1d37
affected from 9a53e8bd59d9f070505e51d3fd19606a270e6b93, before 5880afefe0cb9b2d5e801816acd58bfe91a96981
affected from f7e6b19bc76471ba03725fe58e0c218a3d6266c3, before 7b6552719c0ccbbea29dde4be141da54fdb5877e
affected from f7e6b19bc76471ba03725fe58e0c218a3d6266c3, before 077259f5e777c3c8821f6b41dee709fcda27306b
affected from f7e6b19bc76471ba03725fe58e0c218a3d6266c3, before a08799d3e8c8088640956237c183f83463c39668
affected from f7e6b19bc76471ba03725fe58e0c218a3d6266c3, before 1e97743fd180981bef5f01402342bb54bf1c6366
affected 36a8b2f49235e63ab3f901fe12e1b6732f075c2e
affected eb3d82abc335624a5e8ecfb75aba0b684e2dc4db
affected from 4.4.233, before 4.4.269
affected from 4.9.233, before 4.9.269
affected from 4.14.194, before 4.14.233
affected from 4.19.139, before 4.19.191
affected from 5.4.58, before 5.4.119
affected from 5.7.15, before 5.8
affected from 5.8.1, before 5.9
Other versions: unaffected
Linux
affected 5.9
unaffected before 5.9
unaffected from 4.4.269 up to and including 4.4.*
unaffected from 4.9.269 up to and including 4.9.*
unaffected from 4.14.233 up to and including 4.14.*
unaffected from 4.19.191 up to and including 4.19.*
unaffected from 5.4.119 up to and including 5.4.*
unaffected from 5.10.37 up to and including 5.10.*
unaffected from 5.11.21 up to and including 5.11.*
unaffected from 5.12.4 up to and including 5.12.*
unaffected 5.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47055 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47055

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47055
trivy image --scanners vuln IMAGE | grep CVE-2021-47055

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47055 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.