CVE-2021-47055
mtd: require write permissions for locking and badblock ioctls
HIGH 7.1
At a glance
- Source
- NVD
- EPSS
- EPSS 0.20 % · percentile 10 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-667 — Improper Locking
References
- https://git.kernel.org/stable/c/f4d28d8b9b0e7c4ae04214b8d7e0b0466ec6bcaf
- https://git.kernel.org/stable/c/9625b00cac6630479c0ff4b9fafa88bee636e1f0
- https://git.kernel.org/stable/c/f73b29819c6314c0ba8b7d5892dfb03487424bee
- https://git.kernel.org/stable/c/75ed985bd6c8ac1d4e673e93ea9d96c9908c1d37
- https://git.kernel.org/stable/c/5880afefe0cb9b2d5e801816acd58bfe91a96981
- https://git.kernel.org/stable/c/7b6552719c0ccbbea29dde4be141da54fdb5877e
- https://git.kernel.org/stable/c/077259f5e777c3c8821f6b41dee709fcda27306b
- https://git.kernel.org/stable/c/a08799d3e8c8088640956237c183f83463c39668
- https://git.kernel.org/stable/c/1e97743fd180981bef5f01402342bb54bf1c6366
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2021-33703
- GCVE · GCVE-0-2021-47055
CERT-FR advisories
- CERTFR-2024-AVI-1080 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0741 — Multiples vulnérabilités dans Juniper Secure Analytics · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0646 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0471 — Multiples vulnérabilités dans le noyau Linux de Red Hat · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0458 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0440 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0420 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0363 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 4.4.233 < 4.4.269cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 4.9.233 < 4.9.269cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 4.14.194 < 4.14.233cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 4.19.139 < 4.19.191cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.4.58 < 5.4.119cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.9 < 5.10.37cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.11 < 5.11.21cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.12 < 5.12.4
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 1c9f9125892a43901438bf704ada6b7019e2a884 < f4d28d8b9b0e7c4ae04214b8d7e0b0466ec6bcaf ; affected 583d42400532fbd6228b0254d7c732b771e4750d < 9625b00cac6630479c0ff4b9fafa88bee636e1f0 ; affected 389c74c218d3b182e9cd767e98cee0e0fd0dabaa < f73b29819c6314c0ba8b7d5892dfb03487424bee ; affected ab1a602a9cea98aa37b2e6851b168d2a2633a58d < 75ed985bd6c8ac1d4e673e93ea9d96c9908c1d37 ; affected 9a53e8bd59d9f070505e51d3fd19606a270e6b93 < 5880afefe0cb9b2d5e801816acd58bfe91a96981 ; affected f7e6b19bc76471ba03725fe58e0c218a3d6266c3 < 7b6552719c0ccbbea29dde4be141da54fdb5877e |
| Linux · Linux | affected 5.9 ; unaffected 0 < 5.9 ; unaffected 4.4.269 ≤ 4.4.* ; unaffected 4.9.269 ≤ 4.9.* ; unaffected 4.14.233 ≤ 4.14.* ; unaffected 4.19.191 ≤ 4.19.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |