CVE-2015-3636: Use After Free

Published May 4, 2015
·
Updated

It was found that the Linux kernel's ping socket implementation didn't properly handle socket unhashing during spurious disconnects which could lead to use-after-free flaw.

On x86-64 architecture systems, a local user able to create ping sockets could use this flaw to crash the system.

On non-x86-64 architecture systems, a local user able to create ping sockets could use this flaw to increase their privileges on the system.

Note: By default ping sockets are disabled on the system (net.ipv4.pinggrouprange = 1 0) and have to be explicitly enabled by the system administrator for specific user groups in order to exploit this issue.

Upstream fix: https://github.com/torvalds/linux/commit/a134f083e79fb4c3d0a925691e732c56911b4326

References: http://www.openwall.com/lists/oss-security/2015/05/02/5

Other sources

The pingunhash function in net/ipv4/ping.c in the Linux kernel before 4.0.3 does not initialize a certain list data structure during an unhash operation, which allows local users to gain privileges or cause a denial of service (use-after-free and system crash) by leveraging the ability to make a SOCKDGRAM socket system call for the IPPROTOICMP or IPPROTOICMPV6 protocol, and then making a connect system call after a disconnect.

— Ubuntu

Affected Software

6 affected componentsFixes available
Linux Linux kernel<=4.0.2
Debian Debian Linux=7.0
redhat Enterprise Linux=6.0
Canonical Ubuntu Linux=12.04
Google Android
debian/linux
3.2.68-1+deb7u23.16.7-ckt11-14.0.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 3.2.68-1+deb7u2Fixed in 3.16.7-ckt11-1Fixed in 4.0.2-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.0.3

Event History

May 2, 2015
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Aug 6, 2015
CVE Published
via MITRE·01:00 AM
Data Sourced
via MITRE·01:00 AM
Description
Sep 9, 2015
Data Sourced
via Android·12:00 AM
SeverityAffected Software
Sep 12, 2015
Exploit Published
via GitHub·01:31 AM
Apr 22, 2019
Data Sourced
via NVD·05:48 PM
DescriptionSeverityAffected Software
Updated
05:48 PM
Affected Software
Feb 17, 2021
Data Sourced
via Red Hat·05:20 AM
DescriptionSeverityAffected Software
Nov 21, 2024
Updated
via NVD·02:29 AM
Affected Software
Apr 12, 2025
Updated
via NVD·10:46 AM
Affected Software
Jun 17, 2026
Updated
via NVD·12:26 AM
Affected Software
Jul 4, 2026
Updated
via Ubuntu·12:00 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2015-3636?

CVE-2015-3636 is considered a high severity vulnerability due to its potential to crash affected systems through a local user exploiting a use-after-free flaw.

2

How do I fix CVE-2015-3636?

To mitigate CVE-2015-3636, update the Linux kernel to a version that is not affected, specifically versions later than 4.0.2.

3

Which systems are affected by CVE-2015-3636?

CVE-2015-3636 affects Linux kernel versions up to 4.0.2, Debian GNU/Linux 7.0, Red Hat Enterprise Linux 6.0, and Ubuntu Linux 12.04.

4

What can an attacker do with CVE-2015-3636?

An attacker can use CVE-2015-3636 to create ping sockets that may lead to system crashes on vulnerable x86-64 architecture systems.

5

Is CVE-2015-3636 specific to a particular architecture?

Yes, CVE-2015-3636 is primarily a concern for systems running on the x86-64 architecture.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203