CVE-2021-47039 ataflop: potential out of bounds in do_format()
A missing bounds check in the Linux kernel ataflop driver allows out-of-bounds access, potentially leading to crashes or code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-47039?
CVE-2021-47039 is a high-severity memory corruption vulnerability in Linux kernel, published on 28 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:
ataflop: potential out of bounds in do_format()
The function uses "type" as an array index:
q = unit[drive].disk[type]->queue;
Unfortunately the bounds check on "type" isn't done until later in the function. Fix this by moving the bounds check to the start.
Weakness: CWE-125
Which versions are affected by CVE-2021-47039?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47039?
No fix has been published for CVE-2021-47039 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-47039 being exploited?
There is no known exploitation of CVE-2021-47039 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as GHSA-ffm2-8jrv-hhxj, UBUNTU-CVE-2021-47039.