CVE-2020-27786 is a use-after-free vulnerability in the Linux kernel MIDI implementation. A local user permitted to issue ioctl commands to MIDI devices can trigger freeing of an object and subsequently write to the freed memory before it is reused. This can alter control flow and cause memory corruption.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a local privilege escalation exploit for CVE-2020-27786, a use-after-free vulnerability in the ALSA rawmidi driver in the Linux kernel. The main exploit logic is implemented in two C files: 'exploit.c' (for systems with SMEP/SMAP) and 'exploit_nosmap.c' (for systems without SMAP). Both files orchestrate a complex attack involving userfaultfd, heap spraying, and manipulation of ALSA rawmidi device objects to achieve arbitrary code execution in kernel space. The payload is a root shell spawned via /bin/sh. The 'init' shell script sets up a minimal Linux environment, and 'start.sh' launches a QEMU virtual machine with the appropriate kernel and initramfs for testing the exploit. The exploit targets the device file /dev/snd/midiC0D0 and uses /dev/ptmx for heap spraying. The repository is operational and provides a working exploit for local privilege escalation on vulnerable Linux systems.
This repository contains a local privilege escalation exploit for CVE-2020-27786, a race condition in the Linux kernel's raw MIDI subsystem that leads to a write use-after-free. The exploit leverages userfaultfd to extend the race window and msg_msg to leak a kernel address, ultimately obtaining a write-what-where primitive. It overwrites the global kernel variable modprobe_path to point to a user-controlled script (e.g., /tmp/x), then triggers modprobe to execute this script as root, resulting in a root shell. The main exploit logic is implemented in 'exploit.c', which is a standalone C program. The exploit requires local access to the target system, access to /dev/snd/midiC0D0, and a vulnerable kernel. The README provides a high-level overview and a link to a detailed write-up. No network endpoints are involved; the attack vector is purely local. The repository is operational, providing a working exploit and payload for privilege escalation.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Linux kernel use-after-free vulnerability in the MIDI subsystem.
Use-after-free vulnerability in the Linux kernel MIDI subsystem.
Linux kernel use-after-free vulnerability in the MIDI subsystem.
Linux kernel use-after-free vulnerability in the MIDI subsystem.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.