CVE-2021-47055
JSON

7.1high

mtd: require write permissions for locking and badblock ioctls

Severity
7.1high CVSS:3.1 by Linux
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 1c9f9125892a43901438bf704ada6b7019e2a884 before f4d28d8b9b0e7c4ae04214b8d7e0b0466ec6bcaf, from 583d42400532fbd6228b0254d7c732b771e4750d before 9625b00cac6630479c0ff4b9fafa88bee636e1f0, from 389c74c218d3b182e9cd767e98cee0e0fd0dabaa before f73b29819c6314c0ba8b7d5892dfb03487424bee, from ab1a602a9cea98aa37b2e6851b168d2a2633a58d before 75ed985bd6c8ac1d4e673e93ea9d96c9908c1d37, from 9a53e8bd59d9f070505e51d3fd19606a270e6b93 before 5880afefe0cb9b2d5e801816acd58bfe91a96981, from f7e6b19bc76471ba03725fe58e0c218a3d6266c3 before 7b6552719c0ccbbea29dde4be141da54fdb5877e, from f7e6b19bc76471ba03725fe58e0c218a3d6266c3 before 077259f5e777c3c8821f6b41dee709fcda27306b, from f7e6b19bc76471ba03725fe58e0c218a3d6266c3 before a08799d3e8c8088640956237c183f83463c39668 and 11 more
Not affected: before 5.9, from 4.4.269 up to 4.4.*, from 4.9.269 up to 4.9.*, from 4.14.233 up to 4.14.*, from 4.19.191 up to 4.19.*, from 5.4.119 up to 5.4.*
CVE List
linux linux_kernelfrom 4.4.233 before 4.4.269, from 4.9.233 before 4.9.269, from 4.14.194 before 4.14.233, from 4.19.139 before 4.19.191, from 5.4.58 before 5.4.119, from 5.9 before 5.10.37, from 5.11 before 5.11.21, from 5.12 before 5.12.4NVD

All scores

Linux7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-667

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux se ha solucionado la siguiente vulnerabilidad: mtd: requiere permisos de escritura para bloqueo y badblock ioctls MEMLOCK, MEMUNLOCK y OTPLOCK modifican los bits de protección. Por lo tanto, requiere permiso de escritura. Dependiendo del hardware, MEMLOCK podría incluso ser de escritura única, por ejemplo, para flashes SPI-NOR con su WP# vinculado a GND. OTPLOCK siempre se escribe una vez. MEMSETBADBLOCK modifica la tabla de bloques defectuosos.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47055 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47055 changed 2026-08-04Public domain