Vulnerability · Published Feb 29, 2024 · Assigned by Linux
CVE-2021-47055mtd: require write permissions for locking and badblock ioctls
High 7.1
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-kvm | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-kvm | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-modules-extra | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-tools | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump-core | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump-devel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump-modules | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump-modules-extra | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | perf | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | python3-perf | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| Debian:12 | linux | 5.10.38-1 | DEBIAN-CVE-2021-47055 |
| Debian:13 | linux | 5.10.38-1 | DEBIAN-CVE-2021-47055 |
| Debian:14 | linux | 5.10.38-1 | DEBIAN-CVE-2021-47055 |
| Rocky Linux:8 | kernel | 0:4.18.0-553.5.1.el8_10 | RLSA-2024:3618 |
| Rocky Linux:8 | kernel-rt | 0:4.18.0-553.5.1.rt7.346.el8_10 | RLSA-2024:3627 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2021-47055 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2021-47055 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1c9f9125892a43901438bf704ada6b7019e2a884 – before f4d28d8b9b0e7c4ae04214b8d7e0b0466ec6bcaf583d42400532fbd6228b0254d7c732b771e4750d – before 9625b00cac6630479c0ff4b9fafa88bee636e1f0389c74c218d3b182e9cd767e98cee0e0fd0dabaa – before f73b29819c6314c0ba8b7d5892dfb03487424beeab1a602a9cea98aa37b2e6851b168d2a2633a58d – before 75ed985bd6c8ac1d4e673e93ea9d96c9908c1d379a53e8bd59d9f070505e51d3fd19606a270e6b93 – before 5880afefe0cb9b2d5e801816acd58bfe91a96981f7e6b19bc76471ba03725fe58e0c218a3d6266c3 – before 7b6552719c0ccbbea29dde4be141da54fdb5877ef7e6b19bc76471ba03725fe58e0c218a3d6266c3 – before 077259f5e777c3c8821f6b41dee709fcda27306bf7e6b19bc76471ba03725fe58e0c218a3d6266c3 – before a08799d3e8c8088640956237c183f83463c39668 |
| Linux | Linux | 5.9 |
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