Linux eBPF Verifier Sign-Extension Privilege Escalation
CVE-2017-16995 is an incorrect sign-extension vulnerability in the Linux kernel eBPF verifier's check_alu_op() function, affecting kernels described as through version 4.4. Incorrect handling of arithmetic instructions causes verifier assumptions to diverge from runtime behavior, allowing a local user to submit a crafted eBPF program that bypasses intended safety checks. Exploitation can cause kernel memory corruption, denial of service, or escalation to root privileges.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can elevate an unprivileged local user to root, compromising system confidentiality and integrity. Kernel memory corruption can also crash the system and disrupt workloads. In containerized environments, exploitation may compromise the shared host kernel and defeat container isolation if the vulnerable BPF interface is accessible.
If you can’t patch tonight, do this now.
Disable unprivileged BPF by setting kernel.unprivileged_bpf_disabled=1 where supported. Restrict access to the bpf() system call for untrusted workloads, including through container seccomp policies. These measures reduce exposure but do not replace a patched kernel.
Patch, then assume compromise.
Install the distribution vendor's kernel update addressing CVE-2017-16995 and reboot into the patched kernel. Confirm that the running kernel includes the fix; upstream version numbers alone may not reflect distribution backports. An exact fixed package version is not established by the available information.
3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.