CVE-2021-47055 mtd: require write permissions for locking and badblock ioctls
Local attackers can modify flash memory protection bits and bad block tables without write permissions, potentially compromising device integrity.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47055?
CVE-2021-47055 is a high-severity missing authorization vulnerability in Linux kernel, published on 29 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.
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.
Weakness: CWE-667
Which versions are affected by CVE-2021-47055?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47055?
Apply the vendor's patch.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2021-47055 being exploited?
There is no known exploitation of CVE-2021-47055 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47055, GHSA-x2mc-jwgp-h2fq, UBUNTU-CVE-2021-47055.