CVE-2020-27786 Use after free in kernel
A local attacker with MIDI device permissions can trigger a use-after-free in the Linux kernel, potentially leading to privilege escalation 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
- Available
What is CVE-2020-27786?
CVE-2020-27786 is a high-severity use after free vulnerability in Linux kernel, published on 11 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A flaw was found in the Linux kernel’s implementation of MIDI, where an attacker with a local account and the permissions to issue ioctl commands to midi devices could trigger a use-after-free issue. A write to this specific memory while freed and before use causes the flow of execution to change and possibly allow for memory corruption or privilege escalation. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Weakness: CWE-416
Which versions are affected by CVE-2020-27786?
It affects 6 products.
Products include Linux kernel, Netapp Cloud Backup, Netapp Solidfire Baseboard Management Controller, Redhat Enterprise Linux, Redhat Enterprise Mrg, Redhat Openshift Container Platform.
How do I fix CVE-2020-27786?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2020-27786 being exploited?
There is no known exploitation of CVE-2020-27786 in the wild and no public exploit code.
Public exploit code: 4 proofs of concept on GitHub.
Other vulnerabilities in Linux kernel
Sources
Also known as A-175769013, DEBIAN-CVE-2020-27786, GHSA-3mfq-6299-p3w3, PUB-A-175769013, UBUNTU-CVE-2020-27786.