CVE-2016-4557 is a use-after-free vulnerability in the Linux kernel's eBPF subsystem, specifically in the replace_map_fd_with_map_ptr function in kernel/bpf/verifier.c prior to version 4.5.5. The flaw is due to improper reference counting and double fdput() of file descriptors when handling BPF instructions, leading to a use-after-free condition on struct file objects. This can be exploited by local unprivileged users via crafted BPF instructions to gain root privileges or cause a denial of service. The vulnerability is present when CONFIG_BPF_SYSCALL is enabled and unprivileged BPF is not disabled. The issue was introduced by commit 1be7f75 and fixed by commit 8358b02.
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.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository contains a single Metasploit module (modules/exploits/linux/local/bpf_priv_esc.rb) that exploits CVE-2016-4557, a use-after-free vulnerability in the Linux kernel's eBPF subsystem (versions 4.4 < 4.5.5). The exploit enables local privilege escalation to root by abusing improper reference counting of file descriptors. The module uploads and executes exploit binaries and a payload (default: meterpreter reverse shell) on the target. It achieves persistence and privilege escalation by overwriting the first lines of /etc/crontab to schedule the payload for execution as root, which requires manual cleanup. The exploit is weaponized, supporting customizable payloads and automated cleanup routines. The only fingerprintable endpoints are the /etc/crontab file (modified) and the /tmp directory (used for file drops). The module is intended for use on vulnerable Linux systems where the attacker already has local code execution.
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.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
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.