Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2015-3636: Use-After-Free in Linux Kernel ping_unhash (CVE-2015-3636)

Published Aug 6, 2015 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS4.9Medium · v2
EPSS2.5%85th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendors
Debian ProjectLinuxRed HatCanonical
IdentifiersCVE-2015-3636CWE-416

CVE-2015-3636 is a use-after-free vulnerability in the Linux kernel's ping_unhash function (net/ipv4/ping.c) prior to version 4.0.3. The vulnerability arises because the function does not properly initialize a list data structure during the unhash operation. Local attackers can exploit this by creating a SOCK_DGRAM socket for IPPROTO_ICMP or IPPROTO_ICMPV6, then disconnecting and reconnecting, leading to use-after-free conditions. This can result in local privilege escalation or denial of service (system crash). The vulnerability is notable for being used in Android privilege escalation exploits, including by advanced spyware such as Skygofree.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows local attackers to gain root privileges or cause a denial of service (system crash) on affected Linux systems, including Android devices. The vulnerability has been weaponized in the wild, notably by advanced spyware such as Skygofree, to achieve privilege escalation and full device compromise.

Mitigation

If you can’t patch tonight, do this now.

Restrict local access to untrusted users where possible. On Android, limit the installation of untrusted applications and ensure SELinux is enforced. Monitor for vendor security updates and apply them promptly. Consider using kernel hardening features to reduce the risk of exploitation.

Remediation

Patch, then assume compromise.

Upgrade the Linux kernel to version 4.0.3 or later, where the ping_unhash function has been corrected to properly initialize the list data structure and prevent use-after-free conditions. For Android devices, apply vendor security updates that include the relevant kernel patches.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
CVE-2015-3636This repository contains a local privilege escalation exploit targeting ARM-based Android devices running vulnerable Linux kernels. The main files are 'poc.c' (the exploit driver) and 'getroot.c' (the kernel credential modification payload). The exploit works by manipulating kernel memory structures associated with process credentials, ultimately setting all user and group IDs to 0 and granting all capabilities. The exploit then spawns a root shell at '/system/bin/sh'. The attack vector is local, requiring code execution on the target device. The Makefile ('Android.mk') is provided for building the exploit as a static binary. No network endpoints or remote attack surfaces are present; the exploit is purely local. The code is operational and provides a working root shell if the target is vulnerable.fi01 · Disclosed Sep 12, 2015 · c · localOperationallibpingpong_exploitThis repository contains a local privilege escalation exploit targeting the Linux kernel, specifically for Android devices. The main exploit logic is implemented in 'exploit.c', which manipulates kernel memory via a race condition involving ICMP sockets (pingpong vulnerability). The exploit creates a large number of sockets and uses memory mapping and process forking to trigger the vulnerability, allowing arbitrary kernel memory read and write. The 'pingpong.c' and 'pingpong.h' files provide an interface for reading and writing kernel memory at arbitrary addresses, and for running the exploit with a callback. The build file 'Android.mk' is used to compile the code as a static library for Android. The exploit is operational and can be used to escalate privileges on vulnerable systems, but does not include a weaponized, customizable payload. The attack vector is local, requiring code execution on the target device. The only fingerprintable endpoint is the use of device files and sockets, typical for kernel exploits.android-rooting-tools · Disclosed Oct 7, 2015 · c · localOperationalCVE-2015-3636This repository contains a local privilege escalation exploit targeting ARM-based Android devices running a vulnerable Linux kernel. The main files are 'poc.c' (the exploit driver) and 'getroot.c' (the kernel credential manipulation logic). The exploit works by abusing kernel structures and socket manipulation to gain arbitrary kernel read/write, then locates and modifies the current process's credentials to escalate privileges to root. Upon success, it spawns a root shell by executing '/system/bin/sh'. The code is written in C and is intended to be compiled as a static binary for execution on the target device. No network endpoints or remote attack vectors are present; the exploit must be run locally on the device. The repository is structured for Android NDK builds, as indicated by the 'Android.mk' file.a7vinx · Disclosed Jan 2, 2017 · c · localOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
LinuxLinux Kerneloperating_system
Red HatRed Hat Enterprise Linuxoperating_system
FAQ

Frequently asked questions

Is CVE-2015-3636 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2015-3636?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2015-3636, the earliest disclosed Sep 12, 2015.
Is there a patch for CVE-2015-3636?
Upgrade the Linux kernel to version 4.0.3 or later, where the ping_unhash function has been corrected to properly initialize the list data structure and prevent use-after-free conditions. For Android devices, apply vendor security updates that include the relevant kernel patches.
What products are affected by CVE-2015-3636?
Linux Kernel, Debian Project Debian Linux, Red Hat Enterprise Linux, and Canonical Ubuntu Linux.
How severe is CVE-2015-3636?
CVE-2015-3636 has a CVSS v2 score of 4.9 (Medium) and an EPSS score of 2.5% (85th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.